unmessagable display on node list and details

This commit is contained in:
Garth Vander Houwen 2025-05-23 20:17:26 -07:00
parent d40a4f0942
commit 9050bf9523
3 changed files with 21 additions and 0 deletions

View file

@ -32899,6 +32899,9 @@
}
}
}
},
"Unmonitored or Infrastructure" : {
},
"Unset" : {
"localizations" : {

View file

@ -151,6 +151,19 @@ struct NodeDetail: View {
}
.accessibilityElement(children: .combine)
}
if node.user?.unmessagable ?? false {
HStack {
Label {
Text("")
} icon: {
Image(systemName: "iphone.slash")
.symbolRenderingMode(.multicolor)
}
Spacer()
Text("Unmonitored or Infrastructure")
}
.accessibilityElement(children: .combine)
}
if let dm = node.telemetries?.filtered(using: NSPredicate(format: "metricsType == 0")).lastObject as? TelemetryEntity, let uptimeSeconds = dm.uptimeSeconds {
HStack {

View file

@ -172,6 +172,11 @@ struct NodeListItem: View {
let role = DeviceRoles(rawValue: Int(node.user?.role ?? 0))
IconAndText(systemName: role?.systemName ?? "figure",
text: "Role: \(role?.name ?? "Unknown".localized)")
if node.user?.unmessagable ?? false {
IconAndText(systemName: "iphone.slash",
renderingMode: .multicolor,
text: "Unmonitored")
}
if node.isStoreForwardRouter {
IconAndText(systemName: "envelope.arrow.triangle.branch",
renderingMode: .multicolor,