From f7d0c9aea686ae5ebc8fda7754f0974e399036d7 Mon Sep 17 00:00:00 2001 From: Yvette Carlisle Date: Thu, 21 May 2026 09:38:45 +0800 Subject: [PATCH] {"schema":"decodex/commit/1","summary":"Use compact account fallback placeholders","authority":"manual"} --- .../Sources/DecodexApp/AccountPanelView.swift | 6 +++--- .../src/orchestrator/operator_dashboard.html | 18 +++++++++--------- .../tests/operator/status/dashboard.rs | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift b/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift index 9f0803f5..2716401a 100644 --- a/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift +++ b/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift @@ -791,7 +791,7 @@ struct AccountUsageMeterView: View { private var remainingText: String { guard let remainingPercent else { - return "n/a" + return "-" } return "\(remainingPercent)%" @@ -878,9 +878,9 @@ private struct UsageResetDisplay { static func make(resetAtUnixEpoch: Int?) -> UsageResetDisplay { guard let seconds = resetAtUnixEpoch, seconds > 0 else { return UsageResetDisplay( - short: "not reported", + short: "-", date: "", - accessibility: "reset not reported" + accessibility: "reset unavailable" ) } diff --git a/apps/decodex/src/orchestrator/operator_dashboard.html b/apps/decodex/src/orchestrator/operator_dashboard.html index 883f0ce9..829a80da 100644 --- a/apps/decodex/src/orchestrator/operator_dashboard.html +++ b/apps/decodex/src/orchestrator/operator_dashboard.html @@ -6139,7 +6139,7 @@

Run History

} function codexAccountPlanLabel(account) { - return account?.plan_type ? humanizeToken(account.plan_type) : "not reported"; + return account?.plan_type ? humanizeToken(account.plan_type) : "-"; } function codexAccountTokenLabel(refreshStatus) { @@ -6297,9 +6297,9 @@

Run History

const distance = codexAccountResetDistance(data.resetAt); if (resetAt === "unknown" && distance.short === "unknown") { return { - short: "not reported", + short: "-", date: "", - aria: "reset not reported", + aria: "reset unavailable", }; } @@ -6445,7 +6445,7 @@

Run History

return balance; } if (account.credits_has_credits === true) { - return "not reported"; + return "-"; } return null; @@ -6515,18 +6515,18 @@

Run History

const data = codexAccountWindowData(account, prefix); const label = codexAccountWindowLabel(data.windowSeconds); const remaining = - data.remainingPercent == null ? "not reported" : `${data.remainingPercent}%`; + data.remainingPercent == null ? "-" : `${data.remainingPercent}%`; const reset = codexAccountResetDisplay(data); const windowTone = codexAccountWindowTone(data.remainingPercent); const toneClass = windowTone ? ` is-${windowTone}` : ""; - const isUnreported = data.remainingPercent == null && reset.short === "not reported"; + const isUnreported = data.remainingPercent == null && reset.short === "-"; const resetTitle = `${label} ${remaining}, ${reset.aria}`; if (isUnreported) { return ` -
+ `; } @@ -6570,7 +6570,7 @@

Run History

${renderCodexAccountPoolWindow(account, "secondary")}