shangyuan0818 on X asked for exact numbers on the Overview's quota
curves when hovered, and for the trend to take any "last N days".
- Usage → Overview, the allowances' "Trends: …" button: the menu now
has 7 days and 30 days beside Off, 2 days and Cycle, and "Other number
of days…", which turns the button into a field for 1 to 45 (the days
of history magpie keeps). Enter or leaving the field keeps it; Escape
leaves the range as it was; a number out of range says so and keeps
the old one. A custom N stays in the menu, and is kept across a reload
(magpie.quotaRange).
- Hovering a quota curve shows a small tip at the reading nearest the
pointer: when it was read, then each window's left to two decimals
(70.46%), with a hairline at that time. A balance curve shows the
balance in the card's currency. The curve's own tooltip (what the
dashes mean) waits while the tip shows. A touch still zooms, as before.
- The trend menu, the days field and the hover live in the usage
plugin's page.js, so app.js stays inside its budget.
- No animation: the tip follows the pointer, which a movement would lag.
Run, at d597b4d01 + this change, on mote and mica:
- quota-trend-days.test.cjs (new), 5 languages x 2 engines: red on
2d106b5c1 ("7 and 30 days are offered"), green 10/10.
- The 18 GUI files that draw or pick the allowances' curves, i18n-keys
and i18n-en-no-cjk, plus usage-exact-cost and quota-holds: 201 pass. The 6 reds are red alike on origin/main 2d106b5c1, each filed:
quota-curve's "quota cards draw what was left over time" (#6789) and
usage-fold's "17 subscriptions and 29 accounts" (#3415, #6003).
- go test ./internal/gui: ok (app.js 228 bytes inside appScriptBudget)
Not tried: Windows (WebView2) and the panel's Allowances tab by hand, a
real account's history, a touch screen.