Repository navigation
Extension: the quota meter stays inside the account card - #265
Merged
Merged
Conversation
The signed-in card drew one pip per analysis. At the monthly 60 the row asked for about 1800px: the pips shrank to slivers, and the counter wrapped to three lines in monospace and was pushed past the card's right edge, leaving a tall empty band above the sign-out button. The meter is now one track filled to what remains, with the counter beside it on one line in the card's own type. Same element for the three-analysis trial.
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 problem
Signed in with an active subscription, the side panel's account card showed the counter "51 / 60" outside the card on the right, in monospace, on three lines (51 / / / 60), with a tall empty band between "Il vous reste 51 analyses ce mois-ci." and "Se déconnecter".
The card drew one 24px pip per analysis. That was fine for the three-analysis trial, but at the monthly 60 the row asked for about 1800px: the pips shrank to slivers (or to nothing on a narrow panel), and the counter, squeezed to its minimum width, wrapped and was pushed past the card's edge. The wrapped counter is what made the row tall.
Present in 0.1.11 (the store version) and unchanged on
main, so 0.1.12 has it too.The change
HostedAccountCard: the meter is one track filled to what remains (remaining / limit, clamped), with the counter beside it on one line (shrink-0,whitespace-nowrap, tabular figures in the card's own type instead of monospace). Same element for the trial and the subscription.tests/HostedAccountCard.test.tsx: the meter is two elements whatever the limit, the fill is 85% at 51 / 60, the counter cannot wrap, and an overdrawn quota empties the track rather than going negative.Verification
Reproduced end to end, not in isolation: the extension built at
v0.1.11and atmain, loaded unpacked in a fresh Chrome for Testing profile, signed in through the real pont flow (/pontredirect tosquiggle-auth.html, signed/v1/accountcall) against a local stand-in for the hosted origin answering an active plan at 51 / 60. Screenshots at 330px and 560px, dark and light (prefers-color-scheme; 0.1.11 predates the light theme).npx vitest run: 634 passed (afterbuild:chromeandbuild:firefox, which the packaging tests read)npx tsc --noEmit: cleanNo version bump: 0.1.12 is in store review.