fix(antigravity): label quota rows by group and move the prose to meta - #913
Merged
Conversation
The row label was the group name joined to the upstream's bucket wording, producing "Gemini Models · Weekly Limit Remaining". That is too long for a card row, and being upstream prose it could not be localised — so the card showed an English sentence where every other provider shows a short localised label. The label now carries the group name alone. The window is already in WindowSeconds, which lets the card render it in the operator's language and compose the row itself. The upstream's own description of a group — typically which models draw on it — moves into Meta, joined with the bucket's description when the two differ. The card shows it behind a hint icon rather than printing it, so a full sentence cannot crowd out the numbers. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Backend half of showing both Antigravity quota windows the way the upstream client does. Pairs with codeProxy — merge this first, see below.
The problem
The row label joined the group name to the upstream's bucket wording:
Too long for a card row, and being upstream prose it could not be localised — the card showed an English sentence where every other provider shows a short localised label.
The change
WindowSeconds, so the card can render it in the operator's language and compose<group> · <window>itself.Meta, joined with the bucket's own description when the two differ. The card puts it behind a hint icon instead of printing it, so a full sentence cannot crowd out the numbers.Nothing here decides presentation: the group name and both descriptions are the upstream's own strings, and the window is a duration rather than a phrase.
Merge order
New backend + old panel would render two rows both labelled "Gemini Models" with nothing to tell them apart. Old backend + new panel degrades safely — the rows keep their existing labels and simply do not group.
So: merge this, then the codeProxy PR. Both deploy in minutes, and the intermediate state is only reachable in the gap between them.
Verification
go build ./...andgofmtclean; fullgo test ./...green. New test pins that every row in a group is labelled with the group name alone, and that a bucket describing itself contributes to the hint alongside the group description.Still not verifiable against production: the host has no antigravity accounts (
ai_account_statusholds only xai, codex and claude).🤖 Generated with Claude Code