Skip to content

fix(web): pooled limit refill shows when it lands again - #42499

Merged
juliusmarminge merged 1 commit into
mainfrom
t3/investigate-missing-quota-increase-timestamp
Nov 24, 2026
Merged

juliusmarminge merged 1 commit into
mainfrom
t3/investigate-missing-quota-increase-timestamp

Conversation

@juliusmarminge

Copy link
Copy Markdown
Member

The pooled Limits card on web showed ↻ +13% for the next refill, but not when that refill arrives. The time was dropped in #10409, a usage-history PR that had nothing to do with this line. Mobile still shows it.

The in 5h is back after the percentage, in muted text, as it was before #10409. It reuses the existing formatResetsIn(…, "in") copy, so there are no new translation strings. #42037 already skips resets that have passed, so this line always shows a future time. The existing refill browser test now also checks for ↻ +30% in 30m.

Before After
before after

Done with Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 24, 2026
@juliusmarminge
juliusmarminge enabled auto-merge (squash) November 24, 2026 23:52
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pooled usage card now shows the time until a qualifying future refill alongside the restored percentage. The browser test expects the countdown in the refill indicator.

Changes: Pooled usage refill display

Layer / File(s) Summary
Display and verify refill countdown
apps/web/src/components/usage/UsageLimitsPooled.tsx, apps/web/src/components/usage/UsageLimitsPooled.browser.test.tsx
PoolWindowCard uses useMessages() to format and display the next refill time alongside the restored percentage when the refill restores more than 0% and the pool has multiple columns. The browser test expects ↻ +30% in 30m.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: hanmin6, maria-rcks

Merge Risk: Minimal · up to 73d82

This change restores the next-refill time beside the pooled refill percentage on the web Limits card. It is a low-risk display change with an updated test, and no merge-blocking issues were found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(web): pooled limit refill shows when it lands again" matches the main change: the pooled Limits card on web now shows the time of the next refill after the refill percentage. It uses a …
Description check Passed The description follows the template's main sections. It explains the problem (the refill time was dropped in #10409 while mobile still shows it), the change (restores the muted 'in 5h' text using the…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(web): pooled limit refill shows when it lands again" matches the main change: the pooled Limits card on web now shows the time of the next refill after the refill percentage. It uses a conventional commit prefix and names the web surface and the behavior.

Full details: Description check

Explanation

The description follows the template's main sections. It explains the problem (the refill time was dropped in #10409 while mobile still shows it), the change (restores the muted 'in 5h' text using the existing formatResetsIn copy), and verification (the existing refill browser test now checks for '↻ +30% in 30m', plus before/after screenshots). Scope is only partly addressed: it cites #42037 and the removal in #10409 but does not explicitly link a bug issue or explain why no issue is needed. The Verification section does not describe the observed test results beyond the updated assertion, and it does not state anything that could not be checked. The agent attribution line is present. These gaps are non-critical, so the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a49ccc1 and 73d8257.

Files selected for processing: 2

  • apps/web/src/components/usage/UsageLimitsPooled.browser.test.tsx
  • apps/web/src/components/usage/UsageLimitsPooled.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@juliusmarminge
juliusmarminge merged commit 7380740 into main Nov 24, 2026
39 checks passed
@juliusmarminge
juliusmarminge deleted the t3/investigate-missing-quota-increase-timestamp branch November 24, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant