Skip to content

Show per-account usage bars inline in the launch account popover - #1235

Merged
h0x91b merged 1 commit into
mainfrom
fix/dev3-account-usage-bars-always-visible
Aug 3, 2026
Merged

Show per-account usage bars inline in the launch account popover#1235
h0x91b merged 1 commit into
mainfrom
fix/dev3-account-usage-bars-always-visible

Conversation

@h0x91b

@h0x91b h0x91b commented Aug 3, 2026

Copy link
Copy Markdown
Owner

The launch picker's account popover kept each account's quota behind a per-row chevron, so every account comparison cost a click per row — the bars are the reason the popover gets opened at all.

Now every row renders its own quota inline: one label · bar · % used · resets in line per limit window, for all accounts at once.

  • Dropped the chevron, its expand state, and the redundant max-severity headline percentage (the bar lines carry the numbers). The ∞ unlimited chip stays — an unlimited account has no bar to draw.
  • Capture age moved from a full line per account to a compact suffix on the last bar line (· 15h), warning-tinted once the reading is older than STALE_AFTER_MS, with the full sentence in the title. New shared CapturedAgeSuffix in rate-limit-ui.tsx.
  • Panel widened 21rem → 25rem with min-w on the bar: at the old width the right-hand text squeezed the bar down to ~40px. The row list now scrolls (max-h-[min(28rem,60vh)]) instead of growing past its dialog; header and provenance hint stay pinned.
  • Each row is again exactly one focusable element, so the popover's Tab ring shrank. Bars stay aria-hidden; the percentages are real text.
  • Removed launch.accountShowUsage / launch.accountHideUsage and added rateLimits.capturedAgeNow across en/ru/es.

Verified in headless Chromium at 1440px and 390px (clamps to 374px, nothing wraps or clips), no console errors; full test suite green.

@h0x91b
h0x91b enabled auto-merge (squash) August 3, 2026 09:48
@h0x91b
h0x91b merged commit d557387 into main Aug 3, 2026
9 checks passed
@h0x91b
h0x91b deleted the fix/dev3-account-usage-bars-always-visible branch August 3, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant