b4267de59 (a provider's fallback can be a routing group) raised app.js's
budget to 1,311,922 and the core scripts' to 1,531,060. Size budgets are
not raised (LESSONS.md, "A size budget raised whenever a change reaches it
bounds nothing"), so both go back to 1,311,735 and 1,530,861, and room is
made instead.
The account's usage cap pill, a window's own cap meter and an account's
requests-at-once pill each built the same input in the pill's place: the
same class, numeric mode, aria label, finish-once, Enter/Escape/blur
handling and refusal message. They now call one helper, pillNumber, with
a parser (capOf for the two caps, 1 to 99 with an optional %; a whole
number to 1000 for the lanes) and their own label, message, value and
setter. No behaviour changes. app.js goes from 1,311,922 to 1,310,926
bytes (996 fewer, 809 under the old budget); core scripts 1,530,064.
Run (at 0daf36332, and again at origin/main 85d159a28 after the rebase:
the same sizes, the budget test and the six GUI files below ok again):
- mote: go test -run Budget ./internal/gui: ok (TestCoreScriptBudget and
the app.js budget at the restored values).
- Linux (WSL magpie-desktop), chromium and webkit: fallback-group,
fallback-more, i18n-keys, account-cap, window-cap and lane-limit: 104 of
104 ok.
- Broken by hand: pillNumber saving only when not asked to: account-cap,
window-cap and lane-limit red in both engines; restored.
- The refusal path (a number out of range) has no GUI test; the old and
new parsing were compared in node over "", 0, 1, 50, 50%, " 50 % ", 99,
100, -3, abc, 12abc, 1e2, 1000, 1001, 007, 3.5 and "%": the same
refusals and the same saved values for both caps and the lanes.
- gofmt -l: clean (no Go code changed but the budget constants).
Not tried: the real app; Windows.