Files
magpie/internal
yetone f9678cebe2 gui: Routing's quota bars are Usage's, and every account in a Usage card has a line over it
normalcoder_ on X: Routing's remaining/total bars were grey and black
while the Usage overview's are blue, and in a Usage card with several
accounts two accounts ran together with no divider.

Routing's bars were never Usage's: af5889085 drew them grey (--muted),
black (--fg) for the account that answered, on --card-2, from the start.
It was not a regression. Now the stage's rows, a fold's row and each
account's row under the requests carry Usage's .quota-track, so the track
and fill come from that one rule (--pill, --accent) in light and dark.
routing.css keeps only their size and place. The account that answered
still shows by its frame and dot.

The Usage dividers came from six rules spread over app.css, each naming
one kind of row that could end an account (windows, error, balance, read
time, credit days, curve, resets, key line, auto-reset, credits). A
brief account's check-in row (Trae, WorkBuddy, MiniMax Code) and
magpie's own requests line (quota-own) were never named, so the account
after one had no line. One rule now draws the hairline over every
account that follows anything but the card's head or its "All accounts"
box.

Tested: new quota-bars-alike.test.cjs, in Chromium and WebKit, en zh
zh-TW ja de, light and dark, 1100 and 420px. It checks that every
account after the first in a card has a 1px solid --line border, the
first has none, and every visible Routing bar (stage and account list)
has the same track and fill colours as Usage's .quota-track: 10/10.
Broken by hand: the old app.css fails it, the old routing.css fails
it, and the old client.js (no quota-track class) fails it.
Screenshots before and after in both engines, both themes, 1100 and
420px: Routing's bars are accent on the pill track, and the Trae card's
t2/t3 have the line that was missing.
The GUI files that reach Routing, Usage, quota cards and accounts (354
files, every routing-*, usage-*, panel-usage*, quota-*, plus the
subscription-account/rt-acct users, i18n-keys and old-webkit) on mica:
5854 pass, 141 fail. The failures are in 23 files. Rerun at
concurrency 2 on origin/main 51b98b1a8 and on this tree, they fail the
same (130 at base, 133 here, the same files). The extra ones are
tray-cell-click, which fails 2 of 4 on base when run alone, and a
rest-try-now case. old-webkit's red is app.css:~422 :has(), not this
change. go test -tags nogui ./internal/gui -run Budget: ok.
At the pushed head 4176025f4 (rebased): quota-bars-alike, routing-quota-left,
usage-accounts-fold and i18n-keys pass, 30/30.
Not tried: the real app on Linux WebKitGTK (colours only, no motion).
2026-11-13 18:11:09 +08:00
..
…
…
…
…
…
…
…
…
…
…
…