With many keys the Routing page's Accounts and keys ran on and on: each
card held every window, the models it answered and a meter. Now a card
keeps its name, one line of what is left (or its rest) and how it fares,
with Try now or Sign in again when it needs one. The models it answered
are in its tooltip under its id, and a subscription's other windows are
on hover over its figure.
A list longer than 8 rows shows the first 8 and puts the rest behind
"Show N more" at its foot (kept across a reload in
magpie.routingActsAll). Never behind it: a row to sign in again, a
resting account or model, failures with no answer, a remote whose
allowance can't be read, rows under a fold the reader opened, and the
heading of a provider with a row shown. Two more alone aren't folded.
The button clicked stays where it is on the screen. "View usage" beside
it opens Usage's Overview, where each account's card says it all,
without making that tab the reader's own (window.openUsageOverview).
The foot writes only what changed, so an idle page writes nothing
(routing-live-calm).
Tests: routing-acts-compact.test.cjs (new; chromium and webkit, en zh
zh-TW ja de, 1300px and 420px). routing-account-windows,
routing-read-allowances, routing-wallet-lapse, routing-accounts-narrow
and routing-columns follow the card's new shape and the foot.
Run on mote via mote-run, worktree based on origin/main c7bbd3faf:
- Whole Routing GUI set (routing-*, panel-routing*) + i18n-keys,
chromium and webkit: 2487 pass, 29 fail, every red one of those
below (many-keys and routing-levels #3620 too)
- Same reds on clean origin/main c7bbd3faf (11 files run there): the
routing-rule-remove (#3096), rule-drag (#3789), row-swap (#3799),
order-unknown (#4627), rules-line (#3593), steady, steps-cap and
story-shrinks reds of #5088, in different languages run to run.
- routing-folder went red 2 of 3 with this change (30/30 on main):
its press() clicked Save while the group editor was still growing
open, and the foot moved .rt-gsec 8px. press() now waits for the
button to hold still: 3 runs x both engines 20/20, webkit alone
10/10.
- TestCoreScriptBudget red, 1534154 > 1533802, identical on clean
c7bbd3faf (#5139): this change adds nothing to the core scripts.
- routing-acts-compact twice, alone and beside 5 files: 22/22, 20/20.
- Rebased onto origin/main 14f6d10de (its routing client.js changes
merged clean), at this commit, both engines: routing-remote-windows,
week-low, free-expiring, group-strategy, acts-compact, live-calm,
folder, account-windows, read-allowances, accounts-narrow,
wallet-lapse, columns and i18n-keys all green.
Pushed on c4245c4c2, which changes only internal/gateway's
object_root and its doc after 14f6d10de; not run again on it.
Broken by hand:
- rows needing the reader no longer kept out of the collapse (m.keep
ignored): routing-acts-compact red (Show 4 more never shown).
- a row to sign in again under a shut fold not drawn: red (Zed's fold
row 0 !== 1).
- the foot's hidden/aria-expanded written every draw: routing-live-calm
red in both engines (attrs: 6 !== 0), as in an earlier run of this.
- the button's hold removed: routing-acts-compact red (chromium en
1300px, "the click moved the button: 572.9 → 592.1").
Not tried: the real app with a real long key list (fixtures only), the
Linux WebKitGTK app, Windows.