The owner asked (10-23) for iOS-like motion when a routing group opens and
folds, and for a save animation. drawGroups now measures each slot (a
group's row or its editor, data-gslot) before replaceKeeping and, where a
slot changed between row and editor, animates its height from the old one
to the new: opening on SPRING (570ms) with the editor's parts coming in
staggered from 6px above, folding on IOS_EASE (420ms) with the row's
content fading in. A new group's editor grows from nothing. Save shows a
spinner while the gateway saves; the saved row folds from the editor's
height and lights up, with a check that pops in by its name and goes
after ~1.5s. With reduced motion asked for nothing moves.
Folding from the editor's foot (where Save and Cancel are) would let the
browser clamp the shorter page and leave the row above the window
(WebKit showed it). foldInSight moves the page up with the fold, step
for step with the slot's height, as the reader's scroll; groupAction's
own keep-the-saved-row-in-sight check is skipped when the fold did it.
Run at this head (rebased on origin/main), Chromium and WebKit:
- group-morph.test.cjs (new): en, zh, zh-TW, ja, de at 1100 and 420px;
the editor grows from the row's height, the row folds from the
editor's, Save spins, the saved row folds from the editor's height
with its check, the row is in sight after each fold; reduced motion
has no height animation.
- routing-save, group-fold, routing-group-fold, routing-save-blank,
routing-save-keeps-the-row, group-editor-align, group-editor-fits,
i18n-keys.
- go test ./internal/gui -run 'Budget|Plugin|Asset': ok.
Broken by hand: without morphSlots the new test is red ("the editor grows from the row's 57px, not null", Chromium); without foldInSight it is red in WebKit ("the folded row is in sight").
Not tried: the real Linux (WebKitGTK) app.