With no provider, the Providers page opens its add sheet itself once
/api/providers is in (app.js renderProviders), and the add button goes
away. The test pressed #addProvider right after goto: when the list came
first, as it does on a busy machine, the press waited 30s for a button
that was gone. It was red 1 of 2 runs at f35c721c4~1 (load ~310) and
3 of 4 in the 112-file #modal run; the test now waits for the sheet's
tile instead.
Run: segment-press-dialog, chromium and webkit, en and zh, 3 runs in a
row: 4/4 ok each. No other test that presses #addProvider has an empty
list.
The owner (10-23, a screenshot of Kimi Code's add dialog): every click
on a Plan segment moved the dialog a few pixels down.
The dialog's hold (modalMark at pointerdown, holdModal on the redraw)
keeps what was pressed where it was. A pressed .opt scales (.opt:active,
a .14s transition) and is still scaled when its click redraws; an element
that scales was measured by its parent, the .segs strip, 2px (its
padding) above the button's own top marked at the press. The dialog
went 2px down at every click. modalDepth now measures a scaled element
by its own top as drawn unscaled, from its matrix and transform-origin;
one that turns or skews is measured by its parent as before.
Run at this tree (base eee9ece29):
- Reproduced with presses held 120ms as a hand does, Kimi's four plans,
eight presses: 262→264→…→278 in Chromium and WebKit; with the fix
262.1 throughout. Instant Playwright clicks never showed it.
- segment-press-dialog.test.cjs (new): 4/4 green; on the old app.js 4/4
red ("press 1: the dialog moved from 262.09 to 264.09").
- Every GUI file that opens a dialog (109 files, grep '#modal'): 1467
pass, 3 red. plugin-github-filter passed rerun. modal-morph chromium
420 ("the strip's top on the row's", 401 vs 404-406) is red on the old
app.js too, 2 of 2: it measures the row before the page settles. Fixed
in its own commit next.
- gofmt -l clean.