Skip to content

Stack provider tabs in the provider usage All tab - #4621

Merged
ymichael merged 1 commit into
mainfrom
bb/refine-the-provider-usage-plugin-s-all-tab-thr_4z6pf726ua
Oct 1, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/refine-the-provider-usage-plugin-s-all-tab-thr_4z6pf726ua

Conversation

@ymichael

@ymichael ymichael commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The All tab added in #4571 squeezed every account onto one 24px row with per-cell window labels, percentages and hairline bars. It was dense and hard to scan, and reset times were only in tooltips. The provider tabs already had a readable per-account layout. The All tab didn't reuse it, so the two views showed the same data in different shapes.

What changed

All changes are in plugins/provider-usage. No wire, SDK, or CLI changes.

  • All tab (app.tsx): stacks each provider tab's account blocks in provider order. Each account's title line carries its provider icon, and a divider separates providers. There are no separate provider headings, so M4's four providers (Codex, Claude Code, opencode, Cursor) fit without scrolling. The compact table and its shared-first window ranking (CompactUsageTable, CompactUsageCell, windowPriority, compactWindowLabel, compactStatus) are deleted.
  • Account blocks (used by both the All tab and the provider tabs):
    • The title is the account label, then the email, then the provider name, so host accounts no longer show "Codex" under the Codex tab.
    • The plan badge stays.
    • Every usage window sits on one card-wide grid (label, bar, percent, time until reset), so columns line up across all accounts in the card.
    • The percent text turns orange at 80% and red at 95%, matching the bar.
    • Status messages (signed out, expired, not reported) are a single text-2xs line.
    • Clicking a window still expands the full reset date.
  • Stories (app.stories.tsx): the live scenario and a new Live server story seed M4, M5, Intel (offline) and Account Pooler from a real bb server's getUsage response. That data includes Cursor and opencode with their logos. Emails are anonymized and resets are relative to load time.
  • README describes the stacked All tab.

How you verified

  • pnpm exec turbo run lint typecheck test --filter='...[origin/main]': pass (20 provider-usage tests). The footer test now asserts the All tab's account order through the account regions and the account headings on provider tabs.
  • Visual QA in Ladle (plugins/Provider usage → Live server, Disclosure), screenshotting every tab on each machine plus the existing mixed-pool, loading, offline, and error scenarios.

AGENT GENERATED

🤖 Generated with Claude Code

The All tab's one-line-per-account rows were dense and hid reset times
in tooltips. It now stacks each provider tab's account blocks, with the
provider icon on the account title line and dividers between providers.

Account blocks, shared by the All tab and the provider tabs, title each
account by its email, keep the plan badge, and lay out every usage
window on one card-wide grid (label, bar, tone-colored percent, time
until reset) so columns align across accounts.

The live story now seeds every machine from a real bb server's usage
with emails anonymized.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit 9f745c6 into main Oct 1, 2026
20 checks passed
@ymichael
ymichael deleted the bb/refine-the-provider-usage-plugin-s-all-tab-thr_4z6pf726ua branch October 1, 2026 17:01
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