Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): show each pooled limits account on its own row #14751

ClosedBombatomica64(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/14751/headopened View on GitHub

With two or more accounts on one provider, the pooled limits bar splits one strip into columns. Each account gets a fraction of the width, so the bars are short and hard to compare, and only a small name tells them apart.

Replaces the layout half of #13089, split under the one-problem rule. It is independent of the Claude org fix and applies to any provider with several accounts.

Change

  • Each account gets its own full-width row in the window card, labelled <provider> · <instance> ("Claude · Work"), with its narrow-width legend row attached to it.
  • An instance with no name of its own carries the provider's name, so the suffix is dropped rather than printing "Claude · Claude".
  • A provider with a single account shows no name on its bar, as on main.
  • When an account has no reading for a window, its row keeps an empty slot of the same height. That keeps each account on the same row in every card of the provider.

Only UsageLimitsPooled.tsx changes.

Before / after

Same accounts, same page.

Before: two Claude accounts share one strip as half-width columns.

Before: two half-width columns

After: one full-width row per account.

After: Claude and Claude · Work on separate rows

Verification

  • UsagePage.test.tsx passes.
  • Web typecheck, plus lint and format on the changed file.

Made with Claude Code (Claude Opus 5.5).

🤖 Generated with Claude Code

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. @@ -480,3 +514,18 @@
      480- ) : null,
      481- )}
      482- </div>
      514+ <div className="@container/pool flex min-w-0 flex-col gap-1">
      515+ {pool.columns.map((member, position) =>
      516+ member.window ? (
      517+ <PoolSegment
      518+ key={member.account.key}
      519+ account={member.account}
      520+ providerLabel={providerLabel}
      521+ window={member.window}
      522+ reset={restores.get(member.account.key)}
      523+ color={color}
      524+ now={now}
      525+ index={position + 1}
      526+ showAccountName={pool.columns.length > 1}
      527+ />
      528+ ) : (
      529+ // The account reports nothing in this window, but keeps its place:
      530+ // a row holds the same account across every card of this provider.
      531+ <div key={member.account.key} aria-hidden className="h-5 min-w-0 @2xl/pool:h-8" />
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium usage/UsageLimitsPooled.tsx:531

      At narrow widths, an empty account row is shorter than a populated PoolSegment, so subsequent accounts shift upward and no longer align across cards. The placeholder needs to reserve the segment, LegendRow, and wrapper-gap height before the @2xl/pool breakpoint.

      Suggested change
      531- <div key={member.account.key} aria-hidden className="h-5 min-w-0 @2xl/pool:h-8" />
      531+ <div key={member.account.key} aria-hidden className="h-13 min-w-0 @2xl/pool:h-8" />
      🤖 Copy this AI Prompt to have your agent fix this:
      In file @apps/web/src/components/usage/UsageLimitsPooled.tsx around line 531:
      
      At narrow widths, an empty account row is shorter than a populated `PoolSegment`, so subsequent accounts shift upward and no longer align across cards. The placeholder needs to reserve the segment, `LegendRow`, and wrapper-gap height before the `@2xl/pool` breakpoint.

      Valid. At narrow widths a populated row is the h-5 bar plus the h-7 compact legend button, and the placeholder only reserved the bar. Fixed in 11f9d7b23 by mirroring both parts. The suggested h-13 would overshoot: the gap-1 between rows already applies to the placeholder too.

      Sorry, I'm unable to act on this request because you do not have permissions within this repository.

    3. Approvability

      Verdict: Would Approve

      Macroscope's review found this PR approvable — This is a contained, one-file web presentation change that stacks pooled accounts into clearer rows without changing usage calculations or account actions. An unresolved Medium finding identifies a narrow-width alignment defect for empty rows, which is a contained visual issue in the changed component.

      Not approved because:

      • 1 blocking correctness issue found at or above your repo's Minimum Blocking Severity
      Adjust the Minimum Blocking Severity for this repo — including turning it Off — in [Settings](https://app.macroscope.com/pingdotgg/settings#Repos). You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Note

      This comment is posted by Julius' dot

      This replaces the default account-column layout with stacked rows for every provider. The split resolves the scope issue in #13089, but the layout is an independent product change and no maintainer approval is linked. I'm closing it under the prior-approval rule. Please discuss the short, hard-to-compare bars in Ideas and get approval for the direction and scope before requesting reconsideration.

    5. juliusmarminge closed this

    6. Opened #14755 in Ideas for the direction and scope. I'll request reconsideration once a maintainer approves it there.

Sign in to join this conversation.