From 32bd29fe8e84f22642f08c04a399eabf09c23d52 Mon Sep 17 00:00:00 2001 From: Yvette Carlisle Date: Tue, 2 Jun 2026 16:33:59 +0800 Subject: [PATCH] {"schema":"decodex/commit/1","summary":"Stabilize app status freshness","authority":"manual"} --- apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift b/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift index 890cdb77..63b7dd45 100644 --- a/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift +++ b/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift @@ -2396,6 +2396,7 @@ struct OperatorStatusStripView: View { let snapshot: OperatorSnapshotResponse let updatedAt: Date? let currentTime: Date + private let liveFreshnessWindow: TimeInterval = 5 @Environment(\.colorScheme) private var colorScheme var body: some View { @@ -2430,6 +2431,7 @@ struct OperatorStatusStripView: View { .font(PanelFont.tertiary) .foregroundStyle(PanelPalette.secondaryText(colorScheme).opacity(0.68)) .monospacedDigit() + .frame(minWidth: 38, alignment: .trailing) } .frame(height: 16) } @@ -2479,7 +2481,7 @@ struct OperatorStatusStripView: View { } let age = max(0, Int(currentTime.timeIntervalSince(updatedAt).rounded())) - if age < 2 { + if TimeInterval(age) < liveFreshnessWindow { return "live" }