Repository navigation
feat(providers): show shorter usage limits as their own bars - #1358
Merged
Merged
Conversation
The Provider usage popover gets a bar per shorter general window (e.g. 5-hour) above the weekly bar. Each account keeps the same column in every bar, so an account without a five-hour limit leaves an empty gap there. Every bar's caption carries its own reset and % left; the header keeps the provider, account count and Low/Extra usage. The sidebar indicator now fills to the weekly window like the popover bar instead of the binding five-hour window; a binding shorter window still sets its tone. Related: #763 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Provider usage popover (web and mobile)
% left. The header keeps the provider, account count andLow/Extra usage.Sidebar indicator
Lowlabel.Implementation
usage-summary.tsbuilds per-account columns.CapacitySegmentnow carries its proxy account, so accounts line up across bars and equal ids on two proxies stay apart.UsageSummaryMeterrenders one bar plus its caption on web and on mobile.docs/proxies.mdis updated.Related: #763
Verification
Ran locally:
bun test packages/domain/src/sidebar-usage.test.ts packages/domain/src/proxy-capacity.test.ts. The summary test now checks the aligned 5-hour columns, the empty column for an account without that limit, and that the sidebar indicator follows the weekly window.apps/webtypecheck (svelte-check).apps/mobiletypecheck.Left to CI: the full gate. Not checked: mobile on a device.
Copy audit (docs/copy.md §8)
5-hour · Resets in 3 h,3% left,Weekly · …).% leftmoved from the header to the weekly caption, so it is not shown twice. The binding-only5-hour: 3% leftline is replaced by the 5-hour bar's caption.Lowword next to the colour. The accessible label lists each window as text, e.g.5-hour: 3% left · Resets in 3 h.🤖 Generated with Claude Code