The owner, 10-20: a provider's editor "从右上角弹出" and should open from
the provider's row and close back into it, as iOS does. openModal scaled
the dialog from the row's rect, but a row is wider than the dialog, so
scale alone left a full-size dialog sliding in from the row's middle.
Now the dialog starts as a strip the row's size (transform plus a
clip-path inset, morphFrom), grows into the dialog on the spring, and
closeModal runs it back into the row. The backdrop fades its own
background and blur (VEIL_OFF) instead of the modal's opacity, which
faded the dialog with it, so a dialog folding back stays visible until
it lands. A ResizeObserver keeps the start on the row when an editor
settles its size after it was measured. Reduced motion still only fades.
Every page's dialogs open through the core, so app.js's budget rises
(1,271,683 bytes).
Run on origin/main 75e769a9f + this commit, macOS, playwright 1.62.0:
- modal-morph.test.cjs (new): 6/6, chromium and webkit at 1240 and 420px;
it fails without the change in webkit.
- gofmt -l clean; go test ./internal/gui/ -run TestCoreScriptBudget ok.
- Full GUI suite (814 files, --test-concurrency=4) on this commit with
the two after it, on 75e769a9f before the rebase: 11,385 pass, 90
fail. The morph's own reds (modal-morph chromium 1240 and 420) were
under load: 6/6 run alone on the rebased head. The rest are the agent
settings commit's (fixed there) or red alone on origin/main a9304efe0
too: codex-predictions 420px (#2624), quota-count-wrap and
quota-name-translated (#2228), routing-bodies, routing-request-metrics,
s3-sync (#2658), usage-agents-hide, usage-fold (#2399), usage-checkin
webkit and rail-tip (#3091). agy-launch and name-suffix-remote were red
only in the full run and pass alone.
- An earlier full run on this commit alone was cut short, not finished.