fix(web): remember usage page selection - #10189
Open
extoci wants to merge 1 commit into
Open
Conversation
Contributor
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused Usage page fix that persists user-selected metric and time-window options while preserving the existing defaults and supported query behavior. The production impact is limited to local preference storage and page initialization, with no broader API, infrastructure, security, or billing changes. You can add or adjust custom eligibility rules. Learn more. |
extoci
force-pushed
the
t3code/remember-usage-page-selection
branch
from
September 5, 2026 19:33
f70c64a to
4c0d6b0
Compare
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 Usage page forgot the selected metric and time range whenever you navigated away.
This persists both choices in browser storage so returning to Usage restores the last view. This now lets people use the Usage page to quickly view their Usage Limits without too many clicks.
Implemented with GPT 6 in T3 Code with the Codex harness.
Note
Persist
UsagePagemetric and window selections in local storageUsagePagenow restores the selected usage metric and reporting period from persisted preferences on mount, falling back to defaults when no preference exists.isUsageWindowDaystype guard and a schema restricting stored metric and window-period values to configured options.selectWindowandselectMetrichandlers now write through theuseLocalStoragepreference setter; invalid window values are ignored.useLocalStorageto supply metric and window preferences toUsagePage.Macroscope summarized 4c0d6b0.