zwm_vincent on X: with two subscription accounts, Accounts and keys
showed one window per row, 5H on one and 7D on the other, so neither
row said what was left in the other window or when it reset.
A subscription account's row now has one line per window Usage read:
the short name (5h, 7d), a small bar, what is used or left, and when
it resets. Each part's column is as wide as the widest down the list
(in ch, CJK counted double), so the names, bars, values and resets
start at the same place on every row. Where a row is too narrow (the
list in columns at a phone's width, under 215px) the bar is left out
and the reset wraps under, alike on every row. The hover still has
each window in full with the day and time it resets and when it was
read. The single-figure status, the windows line and the bottom bar
are not drawn for such a row; wallets and accounts with no windows
keep their one line.
Tests: routing-account-windows.test.cjs adds a second account whose
binding window is the week and checks both rows show both windows with
their bars (40%/12%), the hover text, every column's left (and the
reset's right) equal across lines and rows, nothing cut, no sideways
scroll; en, zh, zh-TW, ja, de at 1100px and 420px, Chromium and WebKit.
routing-pooled-card and routing-read-allowances read the new lines.
Run at this head, rebased on origin/main aa358555f, on mote:
- The 7 routing GUI files (routing-answer-figures, routing-account-windows,
routing-pooled-card, routing-read-allowances and the routing files they
share helpers with): 108/108 ok, Chromium and WebKit, en/zh/zh-TW/ja/de,
1100px and 420px.
- Both new tests on the old code: 86 fail, 2 pass.
- Every GUI file that loads routing or app.css (313 files): chromium 51
and webkit 50 reds, each red on origin/main aa358555f too (#5872,
#5262 zero-priced-free, #6561 text-size webkit, red 3 of 3 on main
on mica). ctx-route-align was red here only, from a fractional
min-height; fixed (54px) and green.
- go vet ./internal/gui, go test ./internal/gui: ok (160.8s).
Rebased on origin/main 171fce511 (app.js, i18n.js changed): ctx-route-align,
i18n-keys, quota-credits and the 4 routing files above, 108/108 ok,
Chromium and WebKit, on mote.
Broken by hand: the old client.js/routing.css under the new tests (above).
Not run: the whole GUI suite, the Go suite (no Go change), the real app
with a real account's windows (fixtures carry the reporters' figures).