The group editor's "Slow to start" (迟迟不出字) row offered only Wait,
30 s, 1 min and 2 min. Kismet Alan wanted a longer time of their own.
What changed:
- routing.js: the row gets a Custom segment, the same pattern as the
Context row's Custom: picking it shows a small minutes box beside the
segments (5 from Wait, else what was picked), focused to type in.
Decimals are taken (2.5 is 150 s; a comma is read as a point). Anything
else marks the box aria-invalid and the hint says "{v} is not a number
of minutes"; the last good value is kept. A saved time that is none of
the presets opens as Custom with its minutes. firstToken is still sent
in seconds, and the card's "Next after 150 s without a first token"
and the gateway are unchanged (provider.Group.FirstToken takes any
seconds >= 0).
- routing.css: the box and its "min" unit inside the existing ctx-wrap.
- i18n.js: Custom was already there; "e.g. 5", "Minutes", "min" and the
error in zh, zh-TW, ja and de.
- group-first-token.test.cjs: now five languages (en, zh, zh-TW, ja, de)
at 1100 and 420 wide in Chromium and WebKit. It adds the Custom flow:
no box until Custom, 5 to start and focused, "abc" refused with the
hint naming it, 2.5 saved as 150 and shown on the card, reopened as
Custom 2.5, back to 1 min hides the box, and the row stays inside the
editor with no horizontal scroll. At 420 the editor runs past the
window's foot and WebKit doesn't scroll the page's scroller to a
click, so the test wheels each control into view.
What was run:
- NODE_PATH=<playwright@1.62.0> node --test group-first-token.test.cjs:
20 of 20 pass (2 engines x 5 languages x 2 widths).
- Break check: with routing.js at the old code the test fails waiting
for the Custom segment.