Repository navigation
feat(Resizable): a pull past a limit rubber-bands and only the lift closes - #10292
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| SideNav | 🔴 110.6 kB (+16.7 kB) · 11.3 kB CSS (0) | — | — · — · — |
| ResizeHandle | 21.5 kB (+784 B) · 4.3 kB CSS (0) | — | ✓ · ✓ · ✓ |
| PowerSearch | 281.4 kB (+68 B) · 23.5 kB CSS (0) | — | — · — · — |
17 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| AppShell | 89.3 kB (+39 B) · 13.4 kB CSS (0) | — | — · — · — |
| TreeList | 43.2 kB (+37 B) · 5.6 kB CSS (0) | — | — · — · — |
| List | 17.6 kB (+36 B) · 651 B CSS (0) | — | — · — · — |
| Table | 116.1 kB (+34 B) · 17.7 kB CSS (0) | — | — · — · — |
| Collapsible | 26.7 kB (+32 B) · 4.5 kB CSS (0) | — | — · — · — |
| Markdown | 179.2 kB (+31 B) · 20.0 kB CSS (0) | — | — · — · — |
| lab/TransferListSelector | 112.9 kB (+31 B) · 1.9 kB CSS (0) | — | — · — · — |
| ContextMenu | 106.0 kB (+30 B) · 17.0 kB CSS (0) | — | — · — · — |
| TableCell | 107.2 kB (+29 B) · 17.4 kB CSS (0) | — | — · — · — |
| lab/CommentThread | 322.5 kB (+29 B) · 2.4 kB CSS (0) | — | — · — · — |
| CheckboxList | 67.8 kB (+27 B) · 8.1 kB CSS (0) | — | — · — · — |
| TableHeaderCell | 106.8 kB (+27 B) · 17.2 kB CSS (0) | — | — · — · — |
| lab/TransferList | 106.1 kB (+26 B) · 1.7 kB CSS (0) | — | — · — · — |
| lab/Comments | 329.2 kB (+21 B) · 2.5 kB CSS (0) | — | — · — · — |
| DropdownMenu | 95.4 kB (0) · 17.1 kB CSS (0) | — | — · — · — |
| MoreMenu | 95.7 kB (0) · 17.1 kB CSS (0) | — | — · — · — |
| LayoutPanel | 21.0 kB (−1 B) · 4.9 kB CSS (0) | — | — · — · — |
Package size: @astryxdesign/core 6.97 MB packed (+13.5 kB); no new dependencies.
API changes: none in this pull request
Committed API report behind this build: cli 21 rows, core 39 rows; run pnpm api:report.
Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
This stack waits on an engineering owner's spec decision for #10292, which also needs two fixes; #9989 is approved pending CI.
#9989: approved pending CI
No blocking findings; CI has not run on this draft yet, so once it is ready for review a maintainer adds the ci:run label so CI runs.
#10292: waiting on a spec decision, changes required
- The pull request rewrites
component:ResizableFR8 and its Collapse row (a pull past either limit drawn up to about 8 px and sprung back, a close decided only on the lift, a re-grab that catches the edge), so an engineering owner needs to record that decision by commenting/approve-spec d76c9431de0f047eced8eb18833c1202a7889aa8(the author may do so as an engineering owner), and the decision should also say whether it covers mouse and trackpad input and whether an arrow key at a limit should play the band. - A re-grab 120 to 200 ms into a lift-close leaves the panel drawn at its full 120 px minimum under the content beside it (about 97 px of overlap in Chromium), because the catch measures the pane before it renders its reopened width (
createResizable.tsline 1099,resizablePane.tsline 597); measure from the reopened size and add a browser case for it. - The
NOT FOR LANDINGtry-it commit puts a page-global switch in Core (resizablePane.tsline 423) that changes how everyResizeHandledraws a pull past a limit, so please drop it before approval.
Whole stack
No cross-PR problems were found; a pull request lands only when it and every pull request below it are approved.
[Automated review]
d76c943 to
8bd49da
Compare
|
/approve-spec b46e81f |
|
/approve-spec 4d75aab |
4d75aab to
f78b423
Compare
|
/approve-spec f78b423 |
There was a problem hiding this comment.
Changes are requested on #10292; #9989 is approved pending CI.
#9989: approved pending CI
No blocking findings. CI has not run on this draft yet: once it is ready for review, a maintainer adds the ci:run label so CI runs.
#10292: changes requested
- Miss: the close now plays the shared layout glide on
springs.settleand only on the lift, butspec:AST-105FR4 ("The glide is curve tokens, never a spring"), DEC-2 and FR9 ("A drag that crosses the collapse threshold plays the conceal") are unchanged, so please amend them in this pull request for an engineering owner's/approve-spec, or keep the close on the theme's curve tokens. - A re-grab while the panel slides shut puts the handle and the content about 90 px past the pointer and then leaves the handle up to 69 px inside the reopened panel (
createResizable.ts:1079), against the approved FR8 "takes the Handle where it shows"; please land the running glides at the catch and assert with the motion still running, since the browser case finishes it before measuring (paneSlide.interaction.browser.spec.ts:1028). - Miss: the handle's spring-back samples the spring into
translatekeyframes by hand (resizablePane.ts:531) beside the sharedanimatorForanimator, which already springstranslatefrom a release velocity and reads presentation values for a catch, so please play it through that animator.
Non-blocking: three comments still say the pane's edge moves past a limit, where at this head only the handle does.
Whole stack
The stack fails on net spec conformance, from #10292's spec:AST-105 contradiction. A pull request lands only when it and every pull request below it are approved.
[Automated review]
There was a problem hiding this comment.
Changes are requested.
- Miss: the close now plays the shared layout glide on
springs.settle(animatedLayout.ts:170, throughcloseOnRelease), butspec:AST-105FR4 ("The glide is curve tokens, never a spring"), DEC-2 and FR9 ("A drag that crosses the collapse threshold plays the conceal") are unchanged, so please amend them in this pull request for an engineering owner's/approve-spec, or keep the close on the theme's curve tokens. - Miss: a closing lift from under the minimum clears the drawn band before the slide starts (
createResizable.ts:1338), so on a slow lift the handle hops about 5 px back toward the minimum on the first frame before it slides shut (Chromium with a mouse: 130.4, then 135.5, then 130.6 px), so please start the slide from where the handle shows and assert that no frame after a closing lift moves it toward open.
Non-blocking: two new comments still say the pane's edge moves past a limit (createResizable.ts:189 and :474), and the first changeset still lists "a drag past the collapse threshold" where the lift now closes the pane. The re-grab while the panel slides shut and the hand-sampled spring-back from the last review are fixed. #10333 is not rebased onto this head yet, and CI has not run on this draft.
[Automated review]
A grab while a pane slides shut between snap points rounded the pane to the nearest snap, and the first move inside the bounds made the edge jump up to half a snap gap. A unit case catches a pane showing about 175 px between snaps at 150 and 300 px: the edge follows the finger 10 px from there, the snaps hold again past 300 px, and a lift before a snap lands on the nearest one. The first case fails until the next commit. A browser case holds the closing slide at 120 ms, grabs the handle where it shows, moves 1 px while the slide holds, then lets the slide go: the handle stays under the finger within 1 px, and follows it 30 px.
A catch while the pane slides shut kept the edge where it showed, but rounded the pane's size to the nearest snap point. Now the caught pane opens at the size it shows, and the edge follows the finger until the finger reaches a snap point; from there the snaps hold again. A lift before that glides the pane to the snap nearest its edge.
During a spring-back, a catch follows the pointer 1:1 back toward the limit and over the overshoot it held, then resists again. Between snap points, a caught pane follows the pointer to the next snap point. The table keeps its column widths.
The browser case for a grab while the pane slides shut now lifts with no velocity, holds the slide at 120 ms, grabs the handle where it shows and moves 1 px while the slide holds. Once the slide lets go, the handle sits under the finger within 1 px and the pane's drawn edge stays clear of the content, as at rest; it fails on the previous build, where the pane was drawn 44 px under the content. A new case presses End, then ArrowRight at the maximum: the handle shows no drawn offset and plays no motion of its own.
A catch while the pane slides shut drew the pull before the pane rendered its reopened size, so the drawing measured 0 and left the pane at its minimum under the content beside it. The drawing now takes its extent from the size the pane lays out at. The catch now reads how far the slide has run from the slide's own motion on the pane: a held slide keeps its time, and a landed one, still in its hold tail, reads past its end and has nothing to catch. Without the animation API, the time since the lift decides. A key step at a limit neither draws a pull nor catches a slide or a spring-back: only a pointer does, as FR8 says. The band's extent is the constant itself.
The owner picked the handle-only overshoot: past the maximum, the pane's drawn edge and the content's start stay where they lie, and the handle passes over the content by at most 8 px. It fails until the next commit, while the pane still stretches and the content moves with the edge.
A pull past a limit stretched the pane from its far edge and moved the content beside it with the edge. The owner picked the handle-only overshoot: now the handle alone moves past the limit, over the content beside it, and the panes keep their sizes. The drawing no longer needs the pane's size, and the changeset says the handle moves.
FR8 now says the Handle moves past the limit, and records the owner's direction verbatim: the rubber band's extra length does not change the panes' widths; it extends the handle and overlaps the content a little. The verification row names the handle-only case. The table keeps its column widths.
The spec owners ruled that the rubber band is a drag's give for every pointer (mouse, trackpad, pen and finger), and that an arrow key at a limit does not band. FR8 says both, its basis cites the decision, and its verification row names the arrow-key case and the source review that the resize gesture takes every pointer type alike. The changeset says the same. The Collapse row again says a region collapses on the drag's lift, as FR8 does. An earlier commit that kept the table's column widths dropped that change.
A re-grab while the panel slides shut reopened it at its minimum and drew the handle back to the finger, while the slide kept playing over the reopened layout: the handle and the content jumped about 94 px past the finger, and the handle rested about 42 px off the pane's edge. The browser case that covered it finished the held slide before it measured. The new cases hold the slide 120 ms in and never finish it. The finger moves the slide 10 px: the handle follows it within 1 px, and the pane's shown edge and the content keep their places beside the handle, with the panel still collapsed underneath. Past the 120 px minimum the pane opens at the finger's size, its edge and the content where an open pane has them, with no slide left. A lift under the collapse threshold shuts it, and a lift above it opens it to the minimum. The unit cases say the same. The first browser case and the first unit case fail until the next commit.
A re-grab while the pane slides shut opened it at its minimum at once, while the slide went on playing over the reopened layout. Now the catch pauses the slide's motions, and the finger moves them: the pane's edge, the handle and the content stay together under the finger, with the pane still collapsed underneath. Past the minimum the slide lands and the pane opens at the finger's size, with no slide. A lift before that plays the slide on to shut under the collapse threshold; above it the pane opens to its minimum, reversing from what it shows. A slide that lands lands what glides beside the pane with it. The handle's spring-back after a pull past a limit plays on the handle's own animator, the shared compositor animator, instead of keyframes sampled here, and a catch reads its value from that animator.
A closing lift cleared the drawn band before the slide measured the handle, so the handle hopped about 5 px back toward open on the first frame, then slid shut: 130.4, 135.5, then 130.6 px for a start panel, and the same toward the end for an end panel. The new cases pull each panel past its minimum, where the handle bands, and under the collapse threshold, then lift with no velocity and record every frame until the slide settles. No frame may move the handle toward open by 0.5 px or more. Both fail until the next commit, by 5.07 and 5.05 px.
A closing lift kept the overshoot drawing only until the lift and dropped it before the slide measured the handle, so the slide started from the handle's laid-out place. The lift now keeps the drawing until the pane's reveal has measured what shows, and drops it before the layout changes; the commit that renders the change, and the next gesture, drop it too if no measure ran. The handle's slide starts from where it is drawn. The closing slide's start size is the size the handle shows, so a re-grab reads the slide from there. A close the owner keeps open, a controlled isCollapsed that stays false, renders no slide: by the next frame the handle springs back from where it is drawn. A unit case covers it. Comments say the handle, not the pane's edge, moves past a limit.
The slide's changeset listed a drag past the collapse threshold among the changes that slide the panel. A collapsible region collapses only on the lift, so it names a lift past the collapse threshold.
FR4 and DEC-2 carry one carve-out: a gesture's release settles on `spec:AST-094`'s spring from its release velocity; curve tokens govern glides that no gesture releases. FR9 says only a lift closes a resizable pane, and its conceal settles from the lift's release velocity. The verification rows name the lift; the table keeps its column widths.
FR45 and the motion-roles paragraph above it said AST-105's glide, swap and edge reveal play the theme's curve tokens. AST-105 FR4 now carves out a gesture's release, which settles on its spring, so both sentences carry the same exception. The generated motion-roles page takes the sentence from the table script and says the same.
The Resizable entry now carries the gesture system's velocity tracker (1,653 B, via ResizeHandle and the resize gesture): the lift's close and the handle's spring-back start from the release velocity. INV13 lists velocity tracking among the gaps that components reach directly, so the bundle test lists Resizable among the imports that use a gesture, with that reason. It failed with the Resizable entry unlisted.
FR8's longer cells left three tables in the Resizable spec unpadded: the public concepts, the behavioral and layout contract, and the verification map. Prettier re-pads them; no cell text changes.
A key step that ends under collapsedSize reaches the lift's close in end(), so the pane collapses on the 735 ms settle spring from no release at all. Curve tokens govern glides that no gesture releases. A fixture story sets the hook's default minimum, 50 px, so one more Shift+ArrowLeft from it ends at 0, and the case wants that collapse to take the duration a collapse from inside takes.
start() records whether a pointer drives the gesture. A key step that ends under collapsedSize closes as collapse() does, on the theme's curve, and restores the size it started from for the next open. A lift still closes on the settle spring. The collapsedSize JSDoc names the lift and the key step, and the separator's comment says what its value clamp keeps.
89d06a1 to
60dc91e
Compare
|
/approve-spec 60dc91e |
There was a problem hiding this comment.
Approved. A pull past a resizable LayoutPanel's limit now gives about 8 px and springs back, and a collapsible region closes only on the lift, for every pointer. An engineering owner approved every rewritten record for this head, and CI passes.
#9989 has landed, so this pull request no longer depends on it and can land on its own.
Two non-blocking notes, for this pull request or a follow-up:
- The release glide is timed by one CSS
linear()easing (animatedLayout.ts:214). Older iOS Safari does not composite that, so sampling the spring into keyframes, asmotion/animator.tsdoes, would keep the close smooth on a busy main thread. component:LayoutPanel's FR7/AR2 verification row still says "a drag past the threshold", while the matching Resizable and AST-105 rows now say "a lift past the threshold".
[Automated review]
Behavior module: the resize controller's limits and lift.
User need
A pull past a resizable LayoutPanel's limit stops dead, reading as a bug; crossing the collapse threshold closes it mid-drag.
Problem and solution fit
collapsedSize, or a flick resting below it; other lifts return to the minimum.Current specification
component:ResizableFR8,component:LayoutPanelFR7,spec:AST-105FR4, FR9 and DEC-2, andspec:AST-094FR45.Authority: Owner direction, Nov 5 2026 (Cindy): "rubber band at the limits on both sides, so hitting a limit doesn't read as a bug"; Owner direction, Nov 6 2026 (Cindy): "the extra length of the rubber band should ideally not affect the widths of the content but be kind of treated as just extending the handle and overlapping a bit"; Owner direction, Nov 6 2026 (Cindy): "rubber-band travel for a panel resize is at most about 8 px; the panel closes only on release"; Specs decision, Nov 5 2026: snap-to-close decided on lift, with resistance below the minimum; Specs decisions, Nov 6 2026: the band is every pointer's; an arrow key at a limit doesn't band; "A gesture's release settles on
spec:AST-094's spring from its release velocity; curve tokens govern glides that no gesture releases." For every pointer: Cindy's decision on #8783, Oct 31 2026, verbatim: "edge reveal A".Public delta and caller burden
No prop, option or export; size, persistence and ARIA keep to the limits. Resizable's entry gains the velocity tracker (+1,653 B). Changeset:
[feat].Design and alternatives
springs.settle.Evidence
Writing rubric results
Over
component:Resizable(FR8; the Collapse row),spec:AST-105(FR4/DEC-2 carve-out; FR9; two rows) andspec:AST-094(FR45's exception). R3: rows name tests. R1, R2, R4–R6: none.Scope
Testing
Restacked onto main 46d1813, after #9989's squash: this pull request's own 38 commits, replayed one by one with their messages. The own diff is unchanged, and the range-diff differs only in two context lines that main changed. Local checks at this head, 60dc91e: core typecheck; the Resizable, Layout and motion units (1,395 passed);
CI=true pnpm lint(0 errors); check:knowledge, check:changesets and check:motion-roles; the Storybook build;paneSlide,grabZone,collapsedPanel, the animated-layout specs andListUpdatesin Chromium (191 passed) and in WebKit under the CI profile (178 passed, 13 skipped); the key-step case 4 of 4 in each engine; test:node (17,447 passed).A key step that ends under
collapsedSize(Shift+ArrowLeft from a pane at the hook's default 50 px minimum) collapses on the theme's curve, as a collapse from inside does: no gesture releases it (spec:AST-105FR4,spec:AST-094FR45). A lift still closes on the settle spring. Red at 352b5e8 (before the restack), in Chromium and WebKit: the key step's collapse lasted 734.8 ms, the settle spring, against 300 ms. Fix at 89d06a1:start()records whether a pointer drives the gesture, and a key step closes ascollapse()does. Local checks at 89d06a1: core typecheck; the Resizable, Layout and motion units (1,372 passed);CI=true pnpm lint(0 errors); check:knowledge; the new case 4 of 4 in each engine;paneSlide,grabZone,collapsedPanel, the animated-layout specs andListUpdatesin Chromium (180 passed) and in WebKit under the CI profile (170 passed, 10 skipped).On #9989's head fa3bfea (main 3bd058c): #9989's 13 rubber-band and lift-close commits from before the split, cards 81c and 81d, the owner's handle-only overshoot, FR8's records, the re-grab hold mid-close, the closing slide from the drawn handle, AST-105's carve-out, AST-094's matching exception, and two CI fixes. No try-it commit is in this history.
paneSlidein Chromium (28) and in WebKit under the CI profile (28).gestures/VelocityTracker.ts, +1,653 B); it was red with Resizable unlisted. Prettier re-pads the Resizable spec's three tables (public concepts, behavioral and layout contract, verification map): whitespace only, no cell text changes.