Add dupes to bad labels to make it clear these are not all errors

This commit is contained in:
Garth Vander Houwen 2024-08-25 09:08:49 -07:00
parent 799f06f873
commit b9d7c15883

View file

@ -38,7 +38,7 @@ struct WidgetsLiveActivity: Widget {
.fixedSize()
Spacer()
}
Text("\(context.state.nodesOnline) online")
Text("\(context.state.nodesOnline) nodes online")
.font(.caption)
.foregroundStyle(.secondary)
.fixedSize()
@ -66,15 +66,15 @@ struct WidgetsLiveActivity: Widget {
.fixedSize()
Spacer()
}
Text("Sent \(context.state.sentPackets)")
Text("Sent: \(context.state.sentPackets)")
.font(.caption)
.foregroundStyle(.secondary)
.fixedSize()
Text("Received \(context.state.receivedPackets)")
Text("Received: \(context.state.receivedPackets)")
.font(.caption)
.foregroundStyle(.secondary)
.fixedSize()
Text("Bad \(context.state.badReceivedPackets)")
Text("Dupe / Bad: \(context.state.badReceivedPackets)")
.font(.caption)
.foregroundStyle(.secondary)
.fixedSize()
@ -196,19 +196,19 @@ struct NodeInfoView: View {
.foregroundStyle(.secondary)
.opacity(isLuminanceReduced ? 0.8 : 1.0)
.fixedSize()
Text("Packets Sent \(sentPackets)")
Text("Packets Sent: \(sentPackets)")
.font(.caption)
.fontWeight(.medium)
.foregroundStyle(.secondary)
.opacity(isLuminanceReduced ? 0.8 : 1.0)
.fixedSize()
Text("Packets Received \(receivedPackets)")
Text("Packets Received: \(receivedPackets)")
.font(.caption)
.fontWeight(.medium)
.foregroundStyle(.secondary)
.opacity(isLuminanceReduced ? 0.8 : 1.0)
.fixedSize()
Text("Bad Packets Received \(badReceivedPackets)")
Text("Dupe / Bad Packets: \(badReceivedPackets)")
.font(.caption)
.fontWeight(.medium)
.foregroundStyle(.secondary)