Show account usage reset countdowns and banked resets - #756
Open
katulevskiy wants to merge 2 commits into
Open
katulevskiy wants to merge 2 commits into
katulevskiy wants to merge 2 commits into
Conversation
Contributor
Author
|
will redo design, my clanker messed it up |
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.
The composer account popover showed usage percentages without telling users when their allowance returns. Reset countdowns now fit directly in each meter label, such as
Week (3d)orSession (2h), preserving the original 400px card and two-line account rows. The label uses the largest whole unit rounded down (days, hours, minutes;<1mbelow a minute). Hover shows the exact local reset date and time.Codex accounts show banked resets as a small reset icon and count beside the plan and “In use,” with an explanatory tooltip. The optional count comes from the existing usage response and travels through the account RPC and persisted usage cache. Missing counts stay unknown; zero counts add no indicator. Claude gets separate session and weekly countdowns; its current usage parser does not report reset credits. Redemption is managed in provider usage settings.
Countdowns repaint locally every 30 seconds while the popover is open. Crossing a reset time requests fresh usage through the existing throttle/backoff. Expired or missing timestamps leave the meter label plain; expired timestamps show “reset pending” in the tooltip until fresh usage arrives.
Validation
git diff --checkpassed.The reproducible offline fixture and refreshed captures are documented in
docs/screenshots/account-usage/README.md. No live credentials are used by the fixture or tests.Screenshots