codeburn/mac/Sources/CodeBurnMenubar/Data
ozymandiashh 8222c734d9 fix(menubar): make the quota warning legible and name the window it means
The popover's quota warning painted its text in the same system yellow,
orange or red as its 12% pill. In light mode that measured 1.23:1 to 1.43:1
for yellow and at best 3.04:1 for red, and dark-mode red fell to 3.33:1. The
pill keeps its hue; the text and its glyph now take a per-appearance
foreground from QuotaWarningPalette that measures at least 5.29:1, and a test
holds every severity at WCAG AA against the pill composited over both ends of
the popover's background in both appearances.

The sentence named no window. AggregateQuotaStatus reduced each provider to
its worst window and kept only the percentage, so "Claude 70% of quota used"
was the 5-hour limit read next to a weekly 34%, and looked wrong. Each warning
now carries the winning window's label and reset, and the row reads
"Claude · 5-hour 71% · resets in 3h 12m" with the Capacity Dock's countdown,
one line per provider. The countdown is left off when there is no reset time
or it has passed, and "over limit" is kept for a window at or past 100%
instead of everything the danger band (90% and up) covers. The windows
compared, the 70% threshold and the flame's severity are unchanged.

"%@ of quota used" has no caller left and is retired; "resets in %@" is added
for en and zh-Hans.
2026-09-13 06:29:21 -07:00
..
AntigravityQuotaPresentation.swift feat(menubar): live Antigravity quota — local language-server probe, Settings pane, Plan tab 2026-08-24 09:40:04 -07:00
AntigravitySubscriptionService.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CapacityDockGlanceWindow.swift feat(menubar): switch the Capacity Dock gauge between usage windows 2026-09-12 06:38:34 -07:00
CapacityDockInteractionState.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CapacityDockPreferences.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
CapacityDockProviderCredential.swift fix(menubar): give the pasted Copilot token a GitHub host of its own 2026-09-12 12:02:13 -07:00
CapacityDockProviderQuotaService.swift feat(mac): add native Grok Build provider 2026-09-01 18:46:02 +05:30
CapacityEstimator.swift feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
ClaudeCredentialStore.swift fix: isolate overridden Claude credential homes 2026-08-29 23:38:37 +05:30
ClaudeSubscriptionService.swift fix(menubar): make a failed disconnect leave a consistent state 2026-08-19 11:43:44 -07:00
CLIClaudeConfig.swift feat(menubar): configure CLAUDE_CONFIG_DIRS via Settings (#434) (#436) 2026-06-06 02:30:46 +02:00
ClinePassSubscriptionService.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CLIWatchdog.swift fix(menubar): no-output watchdog, lock signal cleanup, dead-pid takeover, serve orphan reaping 2026-08-23 05:35:17 -07:00
CodeBurnCacheDirectory.swift perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
CodexBankedResets.swift feat(menubar): translate the Codex banked-reset copy and the cache-read tooltip 2026-09-12 16:12:11 -07:00
CodexCredentialStore.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CodexSubscriptionService.swift feat(codex): read the per-credit fields the reset-credits payload already carries 2026-09-12 14:37:24 -07:00
CodexUsage.swift feat(menubar): translate the strings the two new menubar features added 2026-09-12 15:22:47 -07:00
CopilotExplicitDisconnect.swift fix(mac): preserve explicit Copilot disconnect across refreshes 2026-09-09 16:17:15 +05:30
CopilotHostEndpoint.swift fix(menubar): follow GH_HOST and gh's own host for the Copilot env and gh rungs 2026-09-12 12:02:13 -07:00
CopilotQuotaPresentation.swift fix(menubar): carry the localization catalog onto current main 2026-09-12 16:12:11 -07:00
CopilotSubscriptionService.swift fix(menubar): follow GH_HOST and gh's own host for the Copilot env and gh rungs 2026-09-12 12:02:13 -07:00
CursorSubscriptionService.swift fix(menubar): harden the Cursor quota adapter 2026-08-29 14:17:15 -07:00
DataClient.swift fix(menubar): refresh(key:) reported failure instead of joining an in-flight fetch 2026-09-02 07:52:18 -07:00
EarlyQuotaReset.swift feat(menubar): translate the early-reset notification, band and history 2026-09-12 16:12:11 -07:00
EarlyQuotaResetMonitor.swift feat(mac): decide early quota resets in pure, testable types 2026-09-12 14:58:17 -07:00
GeminiQuotaPresentation.swift feat(menubar): live Gemini quota — service, Settings pane, popover Plan tab 2026-08-24 08:43:47 -07:00
GeminiSubscriptionService.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
GrokBuildSubscriptionService.swift fix(mac): scope Grok's omitted-percent-is-zero rule to unified billing; finish the fixture scrub 2026-09-04 01:38:08 -07:00
KimiQuotaPresentation.swift fix(menubar): keep showing Kimi quota when the login is idle, stamp stale data 2026-07-26 06:35:13 -07:00
KimiSubscriptionService.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
LanguagePreference.swift feat(menubar): add a language picker to Settings 2026-09-12 16:12:11 -07:00
MenubarPayload.swift Merge origin/main into cache-read and quota pace 2026-09-12 20:27:33 +03:00
MenubarStatusCache.swift perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
ProviderConnectionCatalog.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
ProviderReconnectPresentation.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
ProviderStripPagingState.swift harden provider period and cache contracts 2026-09-02 16:18:05 +05:30
QuotaPace.swift menubar: linear pace on Codex quota windows — deficit/reserve, projection, run-out ETA (#726) (#728) 2026-07-20 05:21:43 -07:00
QuotaPacePresentation.swift feat(menubar): translate the Capacity Dock pace captions 2026-09-12 16:12:11 -07:00
QuotaSummary.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
QuotaWarningPresentation.swift fix(menubar): make the quota warning legible and name the window it means 2026-09-13 06:29:21 -07:00
ServeConnection.swift fix(menubar): no-output watchdog, lock signal cleanup, dead-pid takeover, serve orphan reaping 2026-08-23 05:35:17 -07:00
SubscriptionRefreshCadence.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
SubscriptionSnapshotStore.swift perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
SubscriptionUsage.swift fix(menubar): provider-correct plan tab copy; surface model-scoped weekly limits 2026-07-02 19:37:51 +02:00
UpdateChecker.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
UpdateNotifier.swift feat(mac): notify when an update is available 2026-09-10 12:39:38 -07:00
UsageDataChangeGuard.swift docs(dsh): finish the provider registration checklist 2026-08-17 10:59:58 -07:00
UsageRefreshCadence.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
ZaiSubscriptionService.swift fix(mac): map Z.ai body auth errors 2026-08-31 13:51:46 -03:00