GeezerVison is showing github.com — feat(usage): mark the even-pace point on pooled limit bars by badmike · Pull Request #11063 · pingdotgg/t3code
Conversation
badmike
commented
Sep 10, 2026
•
edited by juliusmarminge
Loading
Uh oh!
There was an error while loading. Please reload this page.
Discussion: #11120 — filed after this PR, per CONTRIBUTING. Treat this branch as the reference implementation for that idea; happy to close it if the direction is not wanted.
The problem
Usage → Limits tells you how much quota is left, but not whether that is a lot or a little for the time still to run. A weekly window at 40% left is comfortable on day six and alarming on day two, and the bar reads the same either way. You have to know the reset time, do the division in your head, and compare.
The change
Each account segment now carries a tick above and below it at the point even spending would have reached. The distance between the tick and the fill edge is the headroom. The tick is drawn in the provider colour that fills the bar, and only when the window reports both a duration and a reset — without a timeframe there is nothing to compare against and nothing is drawn.
In the screenshots below, Claude's weekly window (40% left, 39% at even pace) sits right on the line, while Fable's (65% left, same clock) has a visible margin. Same numbers, different stories, and now you can see which is which without reading the countdown.
The segment popover carries the exact figures: Even pace 39% · 1 pts of headroom.
Before

After

Narrow variant
The compact numbered strip gets the same treatment, scaled to the shorter bar.

Notes
evenPacePercent and paceGapLabel live in packages/shared/src/usageLimits.ts so web and mobile agree on the maths, and the two views that already drew this marker inline now call them instead of repeating the arithmetic. Mobile gets the same ticks on its pool segments and the figures on the account detail screen.
No new dependencies, no contract changes, no docs change — the tick is a reading aid on an existing view, not a new feature to explain.
Verified with vp test run packages/shared/src/usageLimits.test.ts apps/web/src/components/usage (99 pass, four new cases cover the maths and the no-timeframe case), plus typecheck and lint on web, mobile, and shared.
Written by Claude Opus 5 driving T3 Code.
🤖 Generated with Claude Code
Closes discussions
Summary by CodeRabbit
- New Features
- Added even-pace indicators to usage-limit bars and pooled usage segments across web and mobile.
- Usage details now show the expected even-pace percentage and whether usage has headroom, is on pace, or is ahead of pace.
- Pooled usage details include an “Even pace” breakdown and clearer segment accessibility labels.
- Bug Fixes
- Standardized even-pace positioning across usage-limit displays for more consistent progress tracking.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Jardo-51 and iskandersierra reacted with thumbs up emoji
The pooled bars on Usage → Limits show how much quota is left but not
whether that is a lot or a little for the time still to run. A weekly
window at 41% left is comfortable on day six and alarming on day two,
and the bar reads the same either way.
Each account segment now carries a tick above and below it at the point
even spending would have reached, so the distance between the tick and
the fill edge is the headroom. The tick is drawn in the provider colour
that fills the bar, and only when the window reports both a duration and
a reset; without a timeframe there is nothing to compare against and no
tick appears. The segment popover gains the exact figures.
The maths lives in the shared usageLimits module, so web and mobile
agree on it, and the two views that already drew this marker inline now
call it instead of repeating the arithmetic.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Approvability
Verdict: Approved at 16c8742
Macroscope's review found this PR approvable — This is a bounded presentation enhancement to existing usage-limit views: the shared math is small and tested, while web and mobile changes add only even-pace markers, labels, and layout space. It does not alter APIs, defaults, data flow, or production side effects.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Sep 10, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
 
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID: d4b4c627-70f2-4e1e-a2c6-a0e2bcfbfc4b
📥 Commits
Reviewing files that changed from the base of the PR and between d29c56a and 16c8742.
📒 Files selected for processing (6)
apps/mobile/src/features/usage/UsageLimitsPooled.tsx
apps/mobile/src/features/usage/UsageLimitsSection.tsx
apps/web/src/components/usage/UsageLimits.tsx
apps/web/src/components/usage/UsageLimitsPooled.tsx
packages/shared/src/usageLimits.test.ts
packages/shared/src/usageLimits.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough
The change adds shared even-pace calculations and pace-gap labels. Web and mobile usage views use them for hairlines, pooled-segment ticks, accessibility labels, popovers, and account details. Tests cover timed and untimed windows.
Changes
Even-pace usage tracking
| Layer / File(s) |
Summary |
Shared even-pace helpers packages/shared/src/usageLimits.ts, packages/shared/src/usageLimits.test.ts |
Adds evenPacePercent and paceGapLabel. Tests cover headroom, on-pace, ahead-of-pace, and missing timing data. |
Standard window indicators apps/mobile/src/features/usage/UsageLimitsSection.tsx, apps/web/src/components/usage/UsageLimits.tsx |
Standard usage windows use evenPacePercent for the hairline position. |
Pooled usage surfaces apps/mobile/src/features/usage/UsageLimitsPooled.tsx, apps/web/src/components/usage/UsageLimitsPooled.tsx |
Pooled segments render even-pace ticks and expose pace-gap details in labels, popovers, and account details when timing data is available. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Suggested reviewers: juliusmarminge, chrisdeeming
Merge Risk: ⚪ Minimal · up to 16c87
This change adds even-pace indicators and details across web and mobile usage views. Timing data is handled consistently, including suppression for untimed windows, with no merge-blocking risk identified.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Docstring Coverage |
✅ Passed |
Docstring coverage is 91.67% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 12 functions across 6 files. |
| 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. |
| Title check |
✅ Passed |
The title clearly identifies the main change: adding even-pace markers to pooled usage limit bars. It is concise and specific. |
| Description check |
✅ Passed |
The description explains the problem, implementation, shared helpers, scope, validation, and UI changes. It includes before/after screenshots and a narrow variant. The required Checklist section is mi… |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Filed the Ideas discussion this should have started as: #11120
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note This comment is posted by Julius' dot
The focused tests and before/after captures show the pooled pace markers. The remaining question is scope: #13242 accepts a wording fix and mentions this proposal, while the related design review asks for iteration. Under the prior approval requirement, can a maintainer confirm whether that direction includes these per-account pooled ticks and the new pace-gap copy? Please link that scope decision in the description. This remains open pending that answer.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for this, @badmike. Closing it for now because nobody has confirmed the direction yet. Julius asked on Oct 1 whether the accepted usage-bar work includes these per-account pace ticks and the new pace-gap copy, and the idea discussion (#11120) still has no maintainer answer. CONTRIBUTING.md asks for that approval before a feature lands.
This isn't a rejection of the code. If a maintainer approves the idea, we can reopen the PR and catch it up with main.
|
badmike reacted with thumbs up emoji
iskandersierra reacted with eyes emoji
All reactions
-
👍
1 reaction
-
👀
1 reaction
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:L
100-499 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|