codeburn/mac/Sources/CodeBurnMenubar/Data
ozymandiashh 610cae48c7 feat(menubar): plain pace verdict, also on the agent-tab quota card
Ports the two parts of #1287 the maintainer asked to keep, expressed
through this branch's `QuotaPacePresentation` rather than through
`QuotaPace.Verdict`:

- Placement: `QuotaDetailRow` in the agent-tab quota hover card becomes
  a VStack and draws the pace line under the bar, indented past the
  label column, with the three tones the dock already uses. The card is
  fitted, so a silent caption collapses there instead of reserving a
  slot the way the dock's computed frame must.
- Wording: the long-window caption drops "est. N% at reset" /
  "est. out in X" for the plain "Lasts until reset" / "Runs out in X",
  and the exhausted state becomes "Limit reached". The projected
  percentage it came from stays in the hover text, which has room for
  the reasoning. Short windows keep the on-pace / deficit / reserve
  stage (#726), and the freshness, connection and duration gates are
  untouched.

`QuotaPace.inferredWindowSeconds(label:)` is deliberately NOT ported.
Grok Build chooses its window label from the distance to the reset, so
a monthly cycle passing through the 4-12 day band is labeled "Weekly"
and a label round trip paces a month's budget against seven days. The
adapter's real `windowSeconds` is the only source here, and a new test
pins that shape: 72% used with six days to a monthly reset reads
"Lasts until reset", while the same sample against an inferred 7-day
window overflows and would have printed "Runs out in 9h 20m". The same
test asserts a window with no duration metadata stays silent rather
than falling back to its label.

Verified with a standalone swiftc harness over QuotaPace,
QuotaPacePresentation and QuotaSummary: this host has Command Line
Tools only, so `swift test` cannot load the Testing module.

Closes #1267
2026-09-12 20:32:14 +03: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): switch the Capacity Dock gauge between usage windows 2026-09-12 06:38:34 -07:00
CapacityDockProviderCredential.swift fix(mac): document the main-queue serialization and harden the deadlock test cleanup 2026-09-01 04:58:16 -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
CodexCredentialStore.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CodexSubscriptionService.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CodexUsage.swift feat(codex): show the credit limit on credit-metered ChatGPT workspaces 2026-07-27 08:19:59 -04:00
CopilotExplicitDisconnect.swift fix(mac): preserve explicit Copilot disconnect across refreshes 2026-09-09 16:17:15 +05:30
CopilotHostEndpoint.swift fix(quota): reject a Copilot host carrying a URL delimiter 2026-09-12 06:14:26 -07:00
CopilotQuotaPresentation.swift fix(menubar): follow the credential's GitHub host for Copilot quota 2026-09-12 05:56:05 -07:00
CopilotSubscriptionService.swift fix(menubar): follow the credential's GitHub host for Copilot quota 2026-09-12 05:56:05 -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
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
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(mac): add native Grok Build provider 2026-09-01 18:46:02 +05:30
ProviderReconnectPresentation.swift fix menubar provider usage contracts 2026-09-02 16:17:28 +05:30
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): plain pace verdict, also on the agent-tab quota card 2026-09-12 20:32:14 +03:00
QuotaSummary.swift Add cache-read usage and quota pace to Capacity Dock 2026-09-07 05:22:35 +03: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): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -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(mac): notify when an update is available 2026-09-10 12:39:38 -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 menubar: skip unchanged background refreshes, 120s AC idle cadence, utility QoS for tick spawns (#703) (#704) 2026-07-16 15:11:25 -07:00
ZaiSubscriptionService.swift fix(mac): map Z.ai body auth errors 2026-08-31 13:51:46 -03:00