Repository navigation
feat(usage): consistent quota card grid + scannable reset tracking - #11
Merged
Merged
Conversation
… limits page Operator-reported: providers with one account stretched their card across the full row while multi-account providers showed a narrow card grid, and the reset dates were tiny gray strings stranded at the right edge — the board was inconsistent and expiration was impossible to scan. - Per-group grid: auto-fit → auto-fill. auto-fit collapses empty tracks, so a provider's lone card ate the whole row; auto-fill keeps every provider on the SAME card geometry regardless of account count. - Header reset chip: every card now shows its soonest future quota reset (⏱ countdown) in the same spot — urgency-colored (<1h rose, <6h amber, else muted) with the absolute reset time in the tooltip, so expiration reads across a whole column of cards at a glance. - Row countdowns: urgency colors + absolute-time tooltip; finite rows without a reset render an aligned em-dash so the right column keeps its rhythm on every row. - Guard tests updated: diegosouzapw#7072 mobile guard and diegosouzapw#6815 density guard now pin auto-fill (their guarantees — single column on phones, multi-column on wide containers — are unchanged; auto-fit is rejected outright since it caused the stretch). New test pins the shared getSoonestResetInfo / resetUrgency helpers; hardened the sort-stability test against minute- boundary flake. Dashboard typecheck: same 3 pre-existing merge-inherited errors (EngineConfigPage/jsonView/useTimestampTitles), none in touched files.
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.
Problem (operator report, with screenshot)
Changes
auto-fit→auto-fillin the per-group card grid. auto-fit collapses empty tracks, so a lone card expanded full-width. auto-fill gives every provider section the same card geometry (280px tracks) no matter the account count. (This is the one-word root-cause fix.)⏱ 2h 14m— urgency-colored (<1h rose / <6h amber / muted) with the absolute time on hover. Scannable down a whole column of cards.—so the right column stays rhythmic.Guard tests
auto-filland rejectauto-fitoutright — their original guarantees unchanged.quota-soonest-reset-chip.test.tspinsgetSoonestResetInfo/resetUrgency(soonest-future selection, null handling, threshold buckets).Verification