Render dashboard detail text
This commit is contained in:
parent
ffb53fe456
commit
08645f1650
2 changed files with 21 additions and 4 deletions
|
|
@ -99,6 +99,10 @@ Eve renders and edits dashboard trees natively; each provider owns accepted
|
|||
state and command handling. Eve is the operator's hand on the scene graph, not a
|
||||
second compositor and not a remote WebKit runtime.
|
||||
|
||||
The broker includes a native VoidBot tab/provider. Eve renders its CTB rail,
|
||||
agent status cards, and selected Face state detail from the same VoidBot
|
||||
`swarm-state.json` projection used by the web dashboard.
|
||||
|
||||
## Build Shape
|
||||
|
||||
The project is a Theos-style iOS application:
|
||||
|
|
|
|||
|
|
@ -620,10 +620,23 @@ static int64_t EVEHostTimeNowNs(void) {
|
|||
|
||||
UILabel *label = (UILabel *)[view viewWithTag:1001];
|
||||
if ([label isKindOfClass:UILabel.class]) {
|
||||
label.text = [NSString stringWithFormat:@"%@\n%@ %@",
|
||||
node[@"label"] ?: nodeId,
|
||||
node[@"kind"] ?: @"source",
|
||||
node[@"health"] ?: @""];
|
||||
NSString *detail = [node[@"detail"] isKindOfClass:NSString.class] ? node[@"detail"] : @"";
|
||||
if (detail.length > 0) {
|
||||
label.text = [NSString stringWithFormat:@"%@\n%@ %@\n%@",
|
||||
node[@"label"] ?: nodeId,
|
||||
node[@"kind"] ?: @"source",
|
||||
node[@"health"] ?: @"",
|
||||
detail];
|
||||
label.font = [UIFont monospacedSystemFontOfSize:10.0 weight:UIFontWeightMedium];
|
||||
label.numberOfLines = 6;
|
||||
} else {
|
||||
label.text = [NSString stringWithFormat:@"%@\n%@ %@",
|
||||
node[@"label"] ?: nodeId,
|
||||
node[@"kind"] ?: @"source",
|
||||
node[@"health"] ?: @""];
|
||||
label.font = [UIFont monospacedSystemFontOfSize:12.0 weight:UIFontWeightMedium];
|
||||
label.numberOfLines = 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue