Skip to content

feat(core): swipe actions come from createSwipe on the shared drag path - #8690

Merged
cixzhang merged 52 commits into
meta:mainfrom
vjeux:uikit/c12-swipe-every-pointer
Nov 14, 2026
Merged

cixzhang merged 52 commits into
meta:mainfrom
vjeux:uikit/c12-swipe-every-pointer

Conversation

@vjeux

@vjeux vjeux commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

It uses #9720's shared drag path and #9261's next-frame start, both now in main.

Own change, over main 98d8401640: vjeux/astryx@98d8401...c8e90a6. This round: vjeux/astryx@f8951e5...e5a00bf, vjeux/astryx@976cc67...360bcde (after a merge of #9720's head), vjeux/astryx@360bcde...b03bae5, after main's merges vjeux/astryx@5c8d29f...3d56f54 and vjeux/astryx@3d56f54...b934e38, since vjeux/astryx@b934e38...5735a53, and since vjeux/astryx@5735a53...5065ab4, before a merge of main. Then vjeux/astryx@2e5dfab...4bf1e6c, before another. This commit: vjeux/astryx@3ab858d...f3a428f.

Status: draft. Size reduction and the swipe's feel follow later.

User need

A finger, a pen or a trackpad's swipe drags a row aside to uncover its actions.

Problem and solution fit

  • swipe={createSwipe({…})} brings the swipe's code with the constructor; an app that never imports it ships none.
  • Each action has an id; onActivate receives {id, itemKey}, so one module-scope definition serves every row.
  • From the 8 px claim to the lift, a finger's row is at the finger's travel. Past the confirm point, a lead grows to the confirmation offset on UIKit's tracking spring.
  • The row runs the shared drag path; each settle plays on the compositor. A landing finger catches the row; Reduce Motion keeps the cross-fade.

Current specification

  • spec:AST-057: DEC-8, DEC-10 and FR1–FR11 (the constructor, its ids and the row), DEC-9 (the two-entry rule and the cover), DEP-0017 (the deprecated props).
  • spec:AST-094: FR5 (a release on the compositor), FR43 and DEC-24 (the shared drag path), FR45 and DEC-32 (a held row stays under the finger).
  • spec:AST-017 FR28, FR29 and DEC-17: a patch deprecation adds no runtime warning.

Public delta and caller burden

Callers pass swipe instead of the deprecated props; astryx upgrade rewrites static uses. The API section lists each change.

Design and alternatives

  • The compositor settle lives with the shared drag and its tests. Rejected: a swipe-local settle, and a release that jumps to its end.
  • The confirm lead plays on the drag's own clock. A per-move rebase restarts the animator's curve, and WebKit holds a new curve until its start time.

Evidence

Testing lists each proof.

Scope

Components: Item, ListItem, createSnapDrag, and the ./Swipe entry (createSwipe and its types)

Behavior module: Swipe (@astryxdesign/core/Swipe).

  • One capability is added.
  • Unrelated fixes, cleanup, and policy changes were removed or split.
  • Consumer docs, focused tests, and migration evidence ship with the feature.
  • Public text and artifacts contain no internal Meta context.

Testing

At 244e56d143, at 1 worker, with Storybook built from it. Over it, this head adds records, a changeset line, comments, a lint baseline and the two swipe stories. It also adds a refactor with two tests, three test fixes, and twelve merges of main. The last merge's own checks follow the table. WebKit runs through webkit-container.mjs with CI's four CPUs.

The history: 665a9ef90f merges #9720's head 81c8831753 and #11054's head cb4fd63faf, and 29c7323334 merges main d08ce652ef into it. bde8808df5 then merges main 04a0e6c111 over it, 71c82998b0 merges main ebb9ddecc0, and f8951e585e merges main 08b74222fe. The one conflict, main's removal of packages/core/api-report.md, takes main's side. Two commits follow: 353682ce1d (a held row stays under the finger) and e5a00bfba6 (the API delta). 976cc67391 merges #9720's head a1a2db3a3e, whose fold moves createSnapDrag into createDragToSnapPoints.ts; this change's edits to it move with it. 14a13b0da0 folds this change's modules and routes a row's key events through the layer's bridge on both paths. 508e783755 updates the CLI's records, 22e99f15e6 tightens the lead test, and 360bcdec15 is docs only. 20eb8ca3af puts the swipe's doc comments back on their declarations. 0d04d74ad1 lets a touch that lands on a side's outermost entry confirm a full swipe, as the two-entry rule says. So a scroll that starts the row's close no longer stops it. 5a5c0cbb49 returns FR7 and the code to main's close by a touch tap. A mouse's or a pen's press on an open row's content reaches the row. d747726603 gives the swizzle proof a sample that renders the Swipe folder. c0a060b20c returns FR7's verification row to main's words. b03bae50b9 counts a press on the outermost entry only while the row is open on that side. 5c8d29fdb7 merges main d9d7b105f1. Its two conflicts keep both main's Scroll Edge Taps page and this change's Swipe Actions Cases, in the sandbox's hydration policy and its route test. After it, c31e0383f8 notes that press in the pan's own shouldReceiveTouch. 244e56d143 says a touch tap in the swipe prop's doc comment, the changeset and AST-057. ced7a9b27b is docs only: AST-094 FR6 cites the animator's internal next-frame start, from #9261, for this row's close. 8a0c2a9ff9 corrects the gesture changeset and the swipe constants' notes to the held row. 1e40e64616 names Swipe/SwipeActionsLayer.tsx in AST-057, with why it stands alone. 3d56f54531 says in AST-107 FR7 what createPan and createSnapDrag take that their public factories do not; #9720 carries the same commit. b934e3801e merges main 5398a993c1, which carries #11054 as a squash of cb4fd63faf, already in this change, and #11169. The two old swipe files stay deleted; Item.tsx, Item.test.tsx, Item.doc.mjs and the a11y spec keep this change's lines and gain #11169's. The no-icon-set search goldens are regenerated: 21 matches, main's 20 and createSwipe. a1e65a924b adds DEP-0017's decider row, an FR7 sentence and a header fix. 5735a53d51 makes that row quote the owner's decision and adds a pen case to FR7's checks. 1d75331846 regenerates the comment-provenance lint baseline, which still listed the deleted ItemSwipeLayer.tsx. 5065ab42f6 makes the two Item swipe stories define each swipe once, in useMemo, with handlers that read the row's itemKey. 2e5dfab3dd merges main 24abd1df, which carries #9720's squash of 36ebfcf220, #9261's squash of 2c412cbe13 and #11387's Codemod Verify fix. Two conflicts, createDragToSnapPoints.ts and createSnapDrag.test.ts, keep this change's lines. Main changed neither file beyond #9720's final version, which this change's edits apply to. The test file takes main's wrapped type import. Two, animator.ts and animator.test.ts, take main's: this change carried an earlier copy of #9261's commit, which differs only in comments and test titles. a9db7aee51 reads the swipe's options and its drag model through useCommittedRef, and the shared drag's Effect lists what it reads. 4bf1e6c663 corrects AST-057 and the runtime record: Item's deprecated path keeps one key forwarder and no click guard. 0b2f06189f merges main 50beab9610, and the two no-icon-set search goldens are regenerated: main's 19 matches and createSwipe. 975626a087 changes only two tests: they read each frame against the moves the page had handled, counted, not timed. 3ab858d641 makes the lead test measure the lead, not the frame rate. Every frame drawn must name one start, and the lead's end comes from the confirm move. f3a428fc3e makes the flick test check the settle against the release the page read, not the script's speed. b411bbb546 merges main b300313cbd with no conflict, and this change's own lines are as they were. e174cf254d merges main 7e8a670006 the same way, fc77d8dd78 merges main f5b5f96604, 96a2ee31eb merges main ca36b56789, and eeb975607a merges main 2b85c722f9. 3bce832f7f merges main 8e39a4a422, and b360a5ea5f merges main 96ea82334e. 0722e453ca merges main 4beeb8a36b. c8e90a654d merges main 98d8401640.

Check Result
pnpm exec vitest run --project ui (every package's UI tests) 24,607 of 24,608 pass in 998 files. Toast's sharedIds test hit its 30 s limit while both gate jobs ran at once
pnpm exec vitest run --project node (scripts, codemods, the bundle guards) 19,554 pass. 3 hit a 30 s limit while both gate jobs ran at once: the CLI's interactive guard, text-json-parity's theme editor new, and active-release's real-patch test
pnpm lint:strict (includes check:repo; strict ESLint, ASTRYX_STRICT_LINT=1), pnpm check:knowledge, pnpm check:component-import-boundaries 0 errors, and none in this change’s files; pass; pass
tsc, strict, on the codemod's output for a fixture, against this change's sources 0 errors. The same output without its generated ids: 3 errors, one per entry
ItemSwipeActions.a11y.chromium.spec.ts 15 of 15 at ×3
ItemSwipePinchZoom.a11y.chromium.spec.ts 15 of 15 at ×3
ItemAudit.a11y.chromium.spec.ts Beside the other job, 2 failed: that job’s cleanup removed the evidence folder in the same checkout mid-run
ItemStateOverlay.a11y.chromium.spec.ts 36 of 36 at ×3
ItemSwipeActions.interaction.browser.spec.ts Chromium: 27 pass, 8 skip. WebKit: 28 pass, 7 skip
The touched modules' other 17 browser specs: List's 8, createDragToSnapPoints, hitArea, motion's 7 Chromium: 265 pass, 1 skip; ListRowPress's blocked-release proof hit its 60 s limit while both jobs ran at once. WebKit: 222 pass, 45 skip
The busy-thread proof on the Chromium pin (2 cores), ×3 3 of 3 pass
The new two-entry test (a touch on Delete, a scroll, a full swipe), Chromium, ×3 3 of 3 pass
The mouse click on a row a trackpad opened, WebKit, ×3 3 of 3 pass
The swizzle proof's 8 slices with the base at 360bcdec15 (at d747726603; the node project's run above covers 244e56d143's own commit) 169 of 169 targets eject, type-check, bundle and render, the Swipe folder included
pnpm review:pre 0 findings, on 244e56d143's tree over 4ac0654230, which merges #9720's and #11054's heads with main d9d7b105f1

Chromium skips the trackpad cases, which WebKit runs. WebKit skips the rendering traces, the storyboards, and the inputs its test context cannot drive. The busy-thread proof judges only the settle's own frames, now 92–109 ms (6 or 7 frames). A row held one for one releases near its rest, so its settle is short.

Mouse, pen and trackpad, on main and at 244e56d143. Main's current spec:AST-057 DEC-7 decides the trackpad: "A trackpad swipes a row; a mouse drag does not."

Input on a row with swipe actions main 244e56d143 Proof here
A trackpad's horizontal two-finger scroll The row stays: it takes touch only The row follows the fingers one for one and settles at the release; a long fast swipe fires the outermost entry WebKit's trackpad cases (Chromium's driver wheels read as a mouse wheel)
A mouse wheel's notches The row stays The row stays Chromium's notch case; the gesture unit tests
A mouse drag The row stays The row stays The unit test "never swipes under a mouse"
A pen's sideways drag The row stays The row opens as for a finger (main's FR4 names a finger or a pen) Chromium's pen case
A mouse's or a pen's press on an open row's content The click reaches the row, which stays open, and the press paints The click reaches the row, which stays open. Under a coarse primary pointer the press paints nothing, as a finger's does on an open row. Where the primary pointer is fine, CSS :active still paints it Two unit tests for the click. The press controller's "paints nothing on a held surface…" and "paints nothing for a mouse press on a held surface". WebKit, on a row a trackpad opened

Red first:

  • On f8951e585e, commit 1's two new browser tests fail. In a 350 px/s drag the row trails the finger by up to 37.7 px. On the last moving frame the finger is at 115 px and the row at 83 px.
  • On 353682ce1d, commit 2's tests fail. Under TypeScript 6.0.3, strict, tsc reports 5 errors in the type tests. Swipe is not generic, and a handler that reads id does not fit () => void. Two expected errors never fire: an action with no id, and a comparison with an id the swipe lacks. The module-scope test's handler gets no {id: 'archive', itemKey: 7}. Under other ids the row stays open at 72 px. The same-ids test fails on the handler's arguments; its keep-open half held already. The memoization test sees no keyed copy.
  • The lead test's spring check, against a build whose lead is set at once, fails. No frame falls between 10 % and 70 % of the lead (6 needed).
  • The folds move code: the tests that covered the moved code pass unchanged, at their new imports.
  • 0d04d74ad1's browser test fails 3 of 3 on 360bcdec15's code. A touch lands on Delete, the page scrolls, the drag passes the confirm point, and Delete does not fire.
  • b03bae50b9's unit test fails 2 of 2 on c0a060b20c's code. A scroll and a press on the outermost entry in one task, then a drag past the confirm point, fires the entry.
  • 5a5c0cbb49's tests fail on 0d04d74ad1's code. The unit tests for a mouse's and a pen's press fail, 2 of 2. So does the WebKit case for a mouse click on a row a trackpad opened: the click reaches the row 0 times, not once.
  • a9db7aee51's two tests cannot fail on the code before it, since behavior does not change. Each fails on a mutation: options frozen at mount fail the first, and a drag rebuilt on each render fails both.
  • Mutated builds fail the lead test in 3 of 3 runs, under the old check and under d15e829480's. A lead that jumps leaves no frame between 10 % and 70 %. A linear lead, and one on a spring twice as fast, spread their starts past 34 ms. 3ab858d641 keeps the 34 ms bound, and its 3-frame minimum still fails a jump. Judged from the first frame past the confirm point, the lead's end missed by 4 px in 1 of 50 loaded runs. Judged from the confirm move, it missed by 0 px in all 50 runs at d15e829480.
  • f3a428fc3e's flick check fails a build that hands the settle 0.75 times the release, in 3 of 3 runs; the old check passed it. Builds that hand it 0.5 and 0.01 times fail both checks.

Red first, on 1ab48f2152 (the rebase before the DEC-9 port):

  • Item.test.tsx: the 6 tests of the two-entry rule and the cover fail. So does the test of a pointer and a scroll that an app's later window listener stops: the row stays open at 72 px.
  • ItemSwipeActions.a11y.chromium.spec.ts: 2 tests fail. A slow two-entry drag from the closed row fires, and Archive draws at opacity 0.98, 0.96 and 0.88 over Delete's colour.
  • The busy-thread proof fails: during the 1 s block, the row moved on 0 of the 57 frames the compositor control moved.

On 479bf573e3, one test fails: a press outside the row in the same task as the release that opens it. The row stays open at 72 px. The row's closes now subscribe in the transition itself.

Touch device. iOS 26.2 simulator, iPhone 17 Pro, Safari, on the Swipe Actions Cases page. Each gesture is one continuous touch at 60 Hz on row 1 (Archive, then Delete). The screen is recorded at 60 fps, and a frame shows Delete when its band is red.

At e01b53ef75. The fixes since then change no path these takes use. No take scrolls or uses a mouse, and each touch on Delete begins on an open row:

Gesture Takes Delete shown, in video frames Frames without Delete Result
With the row open, a 190 pt drag that starts on Delete itself 3 492–710, 282–506, 299–523, until the row leaves 0 Delete fires, and the row goes
Flick: 200 pt in 0.23 s 2 180–845, 292–1034, each to the last frame 0 Rests open; nothing fires

Tracking, read in the page on every frame Safari drew while the finger held: the row's travel against the finger's travel since touch-down. Each take holds the finger still for 0.6 s before the lift.

Gesture Takes Largest gap from the 8 px claim on, same frame Row movement while the finger is still Lead
Slow drag from the closed row: 140 pt at about 190 pt/s 2 0 px 0 px none
Fast drag from the closed row: 140 pt at about 625 pt/s 1 0 px 0 px none
From Delete on the open row, past the confirm point 1 0.02 px before the lead 0 px for the base; the lead finishes its last 19 px grows from 0 to 34.7 px with no dip; its 12 frames fit UIKit’s tracking spring within 17 ms

The same takes at f8951e585e came before this change. There the row trails the finger by up to 60 px in the slow drag and 109 px in the fast one. It also moves 25 to 68 px while the finger is still.

Physical phones. A Pixel 8 and an iPhone 14, on the preview of the Swipe Actions Cases page; its version.json names 244e56d143. Each gesture is one scripted touch, run twice on each phone (the tap once). The finger and the row's edge are read from each recorded frame. At those rows' widths, the mail row's confirm point sits at about 168 px and 153 pt of finger travel from the open row.

Gesture Pixel 8 iPhone 14
Mail row, open: a touch on Delete, a slow drag of 215 px or 200 pt, a 1 s hold The row follows the finger one for one to about 170 px of travel. Then the lead grows smoothly, with no dip, and holds at 40.4 px The full swipe confirms at 151.5 pt of travel, 2 of 2, and Delete covers Archive in that frame. The lead grows smoothly and holds at about 32 pt
The same, then 80 px or 80 pt back, and the lift The lead shrinks below the confirm point. Nothing fires, and the row closes (FR5), 2 of 2 The same, 2 of 2
The same, with the lift at the hold Delete fires, and the row slides out, 2 of 2 The same, 2 of 2
One-entry row, closed: a drag of 330 px or 310 pt, the lift at the hold The lead starts at 291–293 px of travel and grows smoothly. Delete fires, 2 of 2 Delete fires, 2 of 2
Mail row, closed: the same drag from where Delete would be The row follows one for one, with no lead, and settles open at 144 px. Nothing fires, 2 of 2 The row rests open, and nothing fires, 2 of 2
Mail row, closed: a tap where Delete would be Delete does not fire, 1 of 1 Delete does not fire, 1 of 1

Physical phones at b411bbb546 (spec:AST-094 DEC-31). That head's merge of main changed two of this change's files, so the same phones ran again. They ran the same gestures at b411bbb546 and at 244e56d143, the head the spec owner's swipe check passed. Each phone read version.json on both previews. Each phone ran 2 takes per head in default motion and 1 with reduced motion, interleaved. Pages: the Swipe Actions Cases page's mail and commit cases, and row 1 of the core-item--swipe-actions and core-item--swipe-commit stories.

Device or emulator Browser Heads Animation scale Result
Pixel 8 Chrome 157 b411bbb546 against 244e56d143 Default No difference. Reveal (80 px slow drag): rests open on Archive and Delete in 691 and 691 ms, against 682 and 699 ms. Flick (60 px in 60 ms): rests open and fires nothing. The row leaves at 980–1,207 px/s, against 990–1,088, from a finger at 937–1,196 px/s. It settles in 431–514 ms at both. Rubber-band (80 px past open): stretches 79–80 px, against 79, and springs back in 710–728 ms at both. Full-swipe commit (300 px): the row slides out and goes in 278–293 ms, against 286 and 286
Pixel 8 Chrome 157 b411bbb546 against 244e56d143 Remove animations No difference. Every change completes in 112–125 ms with no slide, and commits are gone in 133–145 ms, at both heads
iPhone 14, iOS 26.2 Safari b411bbb546 against 244e56d143 Default No difference. Reveal: about 17 frames to rest. Flick: 2 frames. Rubber-band: the same curve frame for frame, 36 pt past open and back. Full-swipe commit: 24–25 frames
iPhone 14, iOS 26.2 Safari b411bbb546 against 244e56d143 Reduce Motion No difference. The row fades out and back in at the open position, with no slide, at both heads

On the stories, b411bbb546 reads each row from itemKey, with one swipe per story. Pixel 8: the reveal rests in 686–687 ms, against 683–699. The flick settles in 466–524 ms, against 515–551, with release points a few px apart. The commit takes 292–302 ms, against 290–296.

e174cf254d then merges main once more. That merge changes Layer/useLayer.tsx (#11258, #11337), one of the shared layer modules DEC-31 lists. It also changes two of this change's files, Popover.stories.tsx and the comment-provenance baseline, and five index files the root index.ts imports. So these runs do not carry to e174cf254d (spec:AST-094 DEC-31).

Physical phones at e174cf254d (spec:AST-094 DEC-31). The same phones ran the same gestures at e174cf254d and at 244e56d143, the head the spec owner's swipe check passed. Each phone read version.json on both previews. Each phone ran 2 takes per head in default motion and 1 with reduced motion, interleaved. The pages are the same as at b411bbb546.

Device or emulator Browser Heads Animation scale Result
Pixel 8 Chrome 157 e174cf254d against 244e56d143 Default No difference. Reveal (80 px slow drag): rests open on Archive and Delete, 1,130 and 1,139 ms after the first move, against 1,134 and 1,140. Flick (60 px in 60 ms): rests open and fires nothing, in 517 and 438 ms, against 532 and 456. Rubber-band (80 px past open, held 300 ms): back to open in 1,399 and 1,405 ms, against 1,398 and 1,396. Full-swipe commit (300 px): the row goes in 916 and 895 ms, against 897 and 915
Pixel 8 Chrome 157 e174cf254d against 244e56d143 Remove animations No difference. Reveal 658 ms, against 652. Flick 183 ms, against 173. Rubber-band back in 889 ms, against 874. Commits gone in 772 and 774 ms, against 767 and 766
iPhone 14, iOS 26.2 Safari e174cf254d against 244e56d143 Default No difference. Reveal: 23 and 24 moving frames, against 23 and 23. Flick: 7 and 7 frames, against 7 and 7. Rubber-band: rests open after it at both. Full-swipe commit: 26 and 27 frames, against 27 and 27
iPhone 14, iOS 26.2 Safari e174cf254d against 244e56d143 Reduce Motion No difference. The row fades out and back in at the open position, with no slide, at both. Reveal: 22 frames, against 20. Commit: 25 frames, against 26

On the stories, Pixel 8: the reveal rests in 1,141 and 1,123 ms, against 1,132 and 1,140. The flick settles in 469 and 483 ms, against 514 and 474. The commit takes 899 and 891 ms at both heads. On the iPhone, the row opens with Archive at x 228 pt, and 5 rows become 4, at both.

fc77d8dd78 then merges main f5b5f96604. That merge changes three of this change's files: the sandbox route manifest (its swipe-actions-cases entry unchanged), the shadcn registry lockfile and a CLI fixture. It changes no shared module, and no other file this change imports by a relative path.

Physical phones at fc77d8dd78 (spec:AST-094 DEC-31). The same phones ran the same gestures at fc77d8dd78 and at 244e56d143, the head the spec owner's swipe check passed. Each phone read version.json on both previews. Each phone ran 2 takes per head in default motion and 1 with reduced motion, interleaved. The pages are the same as at b411bbb546.

Device or emulator Browser Heads Animation scale Result
Pixel 8 Chrome 157 fc77d8dd78 against 244e56d143 Default No difference. Reveal (80 px slow drag): rests open on Archive and Delete, 1,131 and 1,128 ms after the first move, against 1,129 and 1,130. Flick (60 px in 60 ms): rests open and fires nothing, in 447 and 464 ms, against 432 and 432. Rubber-band (80 px past open, held 300 ms): back to open in 1,394 and 1,378 ms, against 1,396 and 1,379. Full-swipe commit (300 px): the row slides out and 12 rows become 11, in 912 and 914 ms, against 896 and 915
Pixel 8 Chrome 157 fc77d8dd78 against 244e56d143 Remove animations No difference. Reveal 648 ms, against 665. Flick 182 ms, against 151. Rubber-band back in 864 ms, against 863. Commits gone in 764 and 781 ms, against 764 and 765
iPhone 14, iOS 26.2 Safari fc77d8dd78 against 244e56d143 Default No difference. Reveal: 23 and 24 moving frames, against 23 and 22, resting with Archive at x 230 pt. Flick: 8 and 6 frames, against 6 and 8. Rubber-band: rests open after it at both. Full-swipe commit: 23 and 27 frames, against 27 and 26
iPhone 14, iOS 26.2 Safari fc77d8dd78 against 244e56d143 Reduce Motion No difference. The row fades out and back in at the open position, with no slide, at both. Reveal: 21 frames, against 21. Commit: 24 frames, against 25
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 fc77d8dd78 1, with the CPU at full speed 12 of 12 cells kept
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 fc77d8dd78 1, with the CPU slowed 4× 12 of 12 cells kept
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 fc77d8dd78 0, with reduced motion in the page 11 of 12 cells kept in a first run; 12 of 12 in a second

On the stories, Pixel 8: the reveal rests in 1,129 and 1,146 ms, against 1,145 and 1,129. The flick settles in 423 and 415 ms, against 424 and 423. The commit takes 913 and 898 ms, against 896 and 894. On the iPhone, the row opens with Archive at x 228 pt, and 5 rows become 4, at both.

The Android emulator set (spec:AST-094 DEC-27) ran at fc77d8dd78 in 12 cells. They are reveal, flick, rubber-band and confirm on the mail case and its story. Then a full swipe and a short release on the commit case and its story. Each take read the preview's version.json first. In the first reduced-motion run, 11 of 12 cells were kept. The commit case's full swipe never started: its page did not finish loading and paint within 30 s, before the calibration tap. Its page drew frames only between 0.5 and 0.8 s, the same frame pattern as at eeb975607a. A second run at that setting kept 12 of 12.

96a2ee31eb then merges main ca36b56789. That merge changes motion/resolveMotion.ts, which this change's Swipe/useSwipeAction.ts and createDragToSnapPoints.ts import directly. It also changes three of this change's files: architecture:react-component-runtime, Core's package.json and motion/README.md. So these runs do not carry to 96a2ee31eb (spec:AST-094 DEC-31).

Physical phones at 96a2ee31eb (spec:AST-094 DEC-31). A Pixel 8 and an iPhone 14 ran the same gestures at 96a2ee31eb and at 244e56d143, the head the spec owner's swipe check passed. This Pixel is another unit than the one at fc77d8dd78, and runs Chrome 156 where that one ran 157. It ran 2 takes per head in default motion and 1 with animations removed. The pages are the same as at b411bbb546.

Device or emulator Browser Heads Animation scale Result
Pixel 8 Chrome 156 96a2ee31eb against 244e56d143 Default End states match in all takes: the row opens at −144 px, and 12 rows become 11. Reveal: rests open in 1,120 and 1,137 ms, against 1,124 and 1,115. Flick: rests open in 448 and 451 ms, against 431 and 451. Rubber-band: back to open in 1,417 and 1,399 ms, against 1,396 and 1,395. Full-swipe commit: the row goes in 906 and 908 ms, against 915 and 907
Pixel 8 Chrome 156 96a2ee31eb against 244e56d143 Remove animations End states match. Reveal 656 ms, against 658. Flick 167 ms, against 159. Rubber-band back in 883 ms, against 880. Commit gone in 761 ms, against 771
iPhone 14, iOS 26.2 Safari 96a2ee31eb against 244e56d143 Default Moving frames per take: reveal 17 and 16, against 16 and 16. Flick 5 and 5, against 4 and 4. Rubber-band 23 and 23, against 24 and 23. Full-swipe commit 14 and 14, against 14 and 14. End states (first take) match: Archive open at x 230 pt, and the commit removes the row
iPhone 14, iOS 26.2 Safari 96a2ee31eb against 244e56d143 Reduce Motion Moving frames: reveal 17, against 20. Flick 5, against 5. Rubber-band 19, against 19. Commit 23, against 22. End states match
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 96a2ee31eb 1, with the CPU at full speed 10 of 12 cells kept in a first run; 12 of 12 in a second, on a second emulator of the same image
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 96a2ee31eb 1, with the CPU slowed 4× 12 of 12 cells kept
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 96a2ee31eb 0, with reduced motion in the page 12 of 12 cells kept

On the stories, Pixel 8: the reveal rests in 1,124 and 1,139 ms, against 1,133 and 1,140. The flick settles in 450 and 300 ms, against 433 and 466. The 300 ms take is the only flick in default motion, at either head, under 415 ms. It kept only its summary, with no pointer log or step timing. Its row reached −144.6 px, the only flick past −144 px in that set of takes. A third Pixel 8 unit then re-ran the Storybook and sandbox flicks, with Chrome 157 where the 300 ms take's unit ran 156. It ran the same 60 px flick in 60 ms, interleaved, and logged the page's pointer events and the row's offset each frame. A settle runs from the row's first move to the first frame within 1 px of its rest. The Storybook flick settles in 450, 450 and 433 ms at the head, against 400, 449, 391 and 416 at the baseline. Its release speed was 0.82 to 0.97 px/ms at the head, against 0.93 to 1.03. One head take is excluded because no pointer event reached the page, and a fourth pair was added. The sandbox flick settles in 412, 399 and 440 ms, against 447, 430 and 478. Every valid take ends at −144 px. The commit takes 905 and 905 ms, against 916 and 905. Without animations, the reveal takes 649 ms, the flick 166 ms and the commit 758 ms, against 649, 166 and 764. On the iPhone, the row opens with Archive at x 228 pt, and 5 rows become 4, at both. Its Storybook reveal took 18 and 18 moving frames, against 18 and 18. The flick took 5 and 4, against 5 and 4. The commit took 14 and 15, against 14 and 14. Under Reduce Motion they took 19, 5 and 21, against 18, 5 and 20.

The iPhone figures come from a second take on a fresh unit. In the first take, the recording froze during touches whenever an accessibility snapshot ran. That first take read the end states from the page's accessibility tree, and they matched in 6 of 6. The second take ran without snapshots, every case on a fresh page load. It ran 2 normal takes and 1 reduced-motion take per head, interleaved. Its counts are distinct moving frames of a stream at about 30 fps, not milliseconds. The phone read 96a2ee31eb's version.json at the end of the take. 244e56d143's preview is the same immutable deployment the earlier takes read.

The Android emulator set (spec:AST-094 DEC-27) ran at 96a2ee31eb in the same 12 cells as at fc77d8dd78. Each take read the preview's version.json first. In the first default-motion run, 10 of 12 cells were kept. Two cells, the mail case's flick and the commit case's short release, never started. Their page did not finish loading and paint within 30 s, before the calibration tap. Both pages drew frames only in their first 0.5 s, the same frame pattern as at eeb975607a. A second run at that setting, on a second emulator of the same image, kept 12 of 12.

eeb975607a then merges main 2b85c722f9. That merge changes three of this change's generated files. It changes no shared motion, Layer, press or touch module, and no source file of Swipe, Item or List. Under DEC-31's text, the runs at 96a2ee31eb do not carry to eeb975607a, so both sets ran again there.

Physical phones at eeb975607a (spec:AST-094 DEC-31). A Pixel 8 and an iPhone 14 ran the same gestures at eeb975607a and at 244e56d143, the head the spec owner's swipe check passed. This Pixel is another unit than those at 96a2ee31eb, with Chrome 157. The iPhone read version.json on both previews. The pages are the same as at b411bbb546.

Device or emulator Browser Heads Animation scale Result
Pixel 8 Chrome 157 eeb975607a against 244e56d143 Default No difference. Time to rest after the first move: reveal 1,131 and 1,131 ms, against 1,130 and 1,130. Flick 466 and 446, against 432 and 434. Rubber-band 1,396 and 1,397, against 1,380 and 1,379. Its overshoot is 80 and 78.9 px, against 78.9 and 78.9. Full-swipe commit, until the row is gone: 915 and 916, against 899 and 899. End states match: open at −144 px, and 12 rows become 11
Pixel 8 Chrome 157 eeb975607a against 244e56d143 Remove animations No difference. Reveal 665 ms, against 665. Flick 184, against 165. Rubber-band 865, against 864. Commit 749, against 751. End states match
iPhone 14, iOS 26.2 Safari eeb975607a against 244e56d143 Default No difference. Moving frames per take: reveal 17 and 17, against 17 and 16. Flick 5 and 4, against 5 and 5. Rubber-band 23 and 24, against 25 and 24. Full-swipe commit 14 and 14, against 14 and 15. End states (separate take) match: Archive open at x 230 pt, and the commit removes the row
iPhone 14, iOS 26.2 Safari eeb975607a against 244e56d143 Reduce Motion No difference. Moving frames: reveal 17, against 19. Flick 7, against 5. Rubber-band 18, against 19. Commit 23, against 23
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 eeb975607a 1, with the CPU at full speed Five runs lost 6 of 60 cell loads, 1 or 2 per run. Every cell was kept in at least three of the five runs
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 eeb975607a 1, with the CPU slowed 4× 12 of 12 cells kept
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 eeb975607a 0, with reduced motion in the page 12 of 12 cells kept

On the stories, Pixel 8: the reveal rests in 1,131 and 1,130 ms, against 1,130 and 1,131. The flick settles in 441 and 416 ms, against 449 and 444. The commit takes 912 and 898 ms, against 899 and 898, and 5 rows become 4 at both. Without animations, the reveal takes 648 ms, the flick 168 ms and the commit 765 ms, against 665, 161 and 749. The flicks spread by 1 to 2 frames either way. At the head, the mail flick is 14 to 34 ms slower, and the Storybook flick 8 to 28 ms faster. On the iPhone, the row opens with Archive at x 228 pt, and 5 rows become 4, at both. Its Storybook reveal took 19 and 18 moving frames, against 18 and 16. The flick took 5 and 5, against 4 and 5. The commit took 14 and 14, against 14 and 13. Under Reduce Motion they took 19, 6 and 21, against 20, 7 and 21.

The iPhone ran 2 normal takes and 1 Reduce Motion take per head, interleaved, without accessibility snapshots during the takes. Its counts are moving frames of the screen stream, not milliseconds. A separate take per head read the end states from the page's accessibility tree. The Pixel logged each frame's row offset and each pointer event, in 42 traces. Its injected gestures match at both heads. The flick's touch lasts 105 to 107 ms and releases at 0.93 to 0.96 px/ms.

The Android emulator set (spec:AST-094 DEC-27) ran at eeb975607a in the same 12 cells as at fc77d8dd78. Each take read the preview's version.json first. Default motion ran five times, on at least three emulators of the same image, and lost 6 of its 60 cell loads. Four runs lost one cell each, and one run lost two. Two runs lost the mail case's reveal. The others lost its confirm and its flick, the commit case's full swipe and the commit story's short release. Each lost take never started. Its page did not finish loading and paint within 30 s, before the calibration tap. Every cell was kept in at least three of the five runs. Each lost page drew at most 17 frames, all within 0.8 s, then none for the rest of the wait. Its scripts still ran. The cause is the emulator's Chrome 133: its GPU process sometimes hangs right after a page load, and then no frame is drawn. About 33 s later it exits, Chrome restarts it, and frames resume. The 30 s wait ends just before that. In the reduced-motion run, two such restarts came inside the wait, and every take was kept. The same stall occurs on the baseline build 244e56d143. On the mail page, alternating the two builds, 5 of 89 loads of eeb975607a stalled, against 2 of 86 of 244e56d143.

3bce832f7f then merges main 8e39a4a422, whose 538e297e57 (#11237) changes the same three generated files again. That merge changes no shared motion, Layer, press or touch module, and no source file of Swipe, Item or List. At 3bce832f7f, CI's route-lock check and the fixture's and route manifest's tests pass. Regenerating the registry lockfile and the CLI fixture leaves each identical. Under DEC-31 as amended (#11580), the runs at eeb975607a carry to 3bce832f7f, whose merge changes only generated files.

b360a5ea5f then merges main 96ea82334e. That merge changes two of this change's files: the comment-provenance baseline, which a script writes, and the spec:AST-094 record, where #11580 adds DEC-31's amendment. It changes no shared motion, Layer, press or touch module, and no source file of Swipe, Item or List. DEC-31 as amended does not carry the runs at eeb975607a across that record change, so both sets ran again at b360a5ea5f.

Physical phones at b360a5ea5f (spec:AST-094 DEC-31). A Pixel 8 and an iPhone 14 ran the same gestures at b360a5ea5f and at 244e56d143, the head the spec owner's swipe check passed. Each phone is another unit than the one at eeb975607a. The Pixel runs Chrome 156, where that one ran 157. The iPhone read version.json on both previews. The pages are the same as at b411bbb546.

Device or emulator Browser Heads Animation scale Result
Pixel 8 Chrome 156 b360a5ea5f against 244e56d143 Default No difference. Time to rest after the first move: reveal 1,210 and 1,209 ms, against 1,198 and 1,198. Flick 398 and 457, against 516 and 524. Rubber-band 1,464 and 1,484, against 1,465 and 1,467. Its overshoot is 78.9 and 78.9 px, against 78.9 and 80. Full-swipe commit, until the row is gone: 893 and 916, against 917 and 910. End states match: open at −144 px, and 12 rows become 11
Pixel 8 Chrome 156 b360a5ea5f against 244e56d143 Remove animations No difference. Reveal 653 ms, against 650. Flick 165, against 173. Rubber-band 878, against 868. Commit 755, against 764. End states match
iPhone 14, iOS 26.2 Safari b360a5ea5f against 244e56d143 Default No difference. Moving frames per take: reveal 18 and 18, against 18 and 17. Flick 4 and 4, against 5 and 6. Rubber-band 25 and 24, against 24 and 24. Full-swipe commit 17 and 20, against 18 and 19. End states (separate take) match: Archive open at x 230 pt, and the commit removes the row
iPhone 14, iOS 26.2 Safari b360a5ea5f against 244e56d143 Reduce Motion No difference. Moving frames: reveal 20, against 18. Flick 7, against 8. Rubber-band 20, against 20. Commit 24, against 24
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 b360a5ea5f 1, with the CPU at full speed 7 of 12 cells kept in a first run, whose emulator went offline; 12 of 12 in a second, on another emulator
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 b360a5ea5f 1, with the CPU slowed 4× 12 of 12 cells kept
Android emulator: Android 16 x86_64 image (BE2A.250530.026.D1), 1080×2400 at 420 dpi Chrome 133 b360a5ea5f 0, with reduced motion in the page 11 of 12 cells kept in a first run; 12 of 12 in a second, on the same emulator

On the stories, Pixel 8: the reveal rests in 1,208 and 1,208 ms, against 1,207 and 1,208. The flick settles in 400 and 450 ms, against 494 and 508. The commit takes 905 and 901 ms, against 899 and 898, and 5 rows become 4 at both. Without animations, the reveal takes 650 ms, the flick 167 ms and the commit 773 ms, against 650, 175 and 758. On the iPhone, the row opens with Archive at x 228 pt, and 5 rows become 4, at both. Its Storybook reveal took 19 and 19 moving frames, against 18 and 19. The flick took 6 and 5, against 6 and 4. The commit took 18 and 18, against 17 and 17. Under Reduce Motion they took 20, 6 and 20, against 20, 7 and 19.

In this first set, the Pixel's flicks settle sooner at the head on both pages. Eight more interleaved takes per page then timed each flick to within 2 px of open. The mail flick took 321, 394, 397 and 402 ms, against 341, 624, 301 and 416. The Storybook flick took 383, 366, 382 and 400 ms, against 365, 349, 350 and 400. In these takes, the two heads' times overlap on both pages.

The iPhone ran 2 normal takes and 1 Reduce Motion take per head, interleaved, without accessibility snapshots during the takes. Its stream ran 1 to 5 s behind the plan, so each gesture was found by the page's content. Its counts are moving frames of the screen stream, not milliseconds. A separate take per head read the end states from the page's accessibility tree. The Pixel logged each frame's row offset and each pointer event, in 42 traces and 16 more for the flick follow-up. Its injected gestures match at both heads. The flick's touch lasts 84 to 93 ms.

The Android emulator set (spec:AST-094 DEC-27) ran at b360a5ea5f in the same 12 cells as at fc77d8dd78. Each kept take read the preview's version.json first. Default motion's first run kept 7 of 12 cells. Its emulator went offline at the eighth take, which failed. The last four were refused because no device answered. A second run, on another emulator of the same image, kept 12 of 12. Reduced motion's first run kept 11 of 12 cells. The commit case's short release was refused twice, before and after an automatic Chrome restart. Its page drew no frame for 6.2 s, then 5.7 s, while a page timer still fired. A second run on the same emulator kept 12 of 12. The slowed-CPU run kept 12 of 12. No cell was re-run by hand.

0722e453ca then merges main 4beeb8a36b. That merge changes none of this change's files. It changes no shared motion, Layer, press or touch module, and no source file of Swipe, Item or List. It changes Link.tsx, where a long unbroken label now wraps inside its line (#11558). The device page and the Popover story import Link through its @astryxdesign/core/Link entry, which re-exports it. The device page uses it only for its case switcher, and no device cell uses the Popover story. It also changes ContextMenu.tsx, where a menu measures its anchor from the anchor's containing block (#11576). List's stories import ContextMenu through its @astryxdesign/core/ContextMenu entry, and no device cell uses them. A check then measured the device page's case-switcher links and swipe rows at 0722e453ca and at b360a5ea5f, in alternating passes. Each pass read version.json and recorded the case switcher's and the list's boxes: 284 on the mail case, 188 on the commit case. The Android emulator ran Chrome 133 with animation scales at 1. There, every box is the same at both heads, to two decimals of a CSS pixel. A control confirms the new Link styles are live at 0722e453ca: the root's max-width is 100% and the label's min-width is 0px. At b360a5ea5f they are none and auto. A Pixel 8 then ran the same check in its own Chrome 157, with animation scales at 1, over ten interleaved loads per case. Every styled pair of loads, head against baseline, matched in every box on both cases. Two early loads of b360a5ea5f, one per case, were measured before the page's stylesheets applied. Their links laid out as plain inline text, so a gate excluded both. Every other load of that build was styled. On the phone too, the control shows the new Link styles live at 0722e453ca.

c8e90a654d then merges main 98d8401640. That merge changes none of this change's files. It changes no shared motion, Layer, press or touch module, and no source file of Swipe, Item or List. It changes CheckboxInput.tsx, where a required box is no longer announced as invalid before an error (#11619). ListItem.tsx imports CheckboxInput directly, and renders it only for a row with a task. The Popover story imports it through its @astryxdesign/core/CheckboxInput entry, and no device cell uses that story. No device cell sets task. The same check then measured the device page at c8e90a654d and at 0722e453ca, in alternating passes. It ran on the Android emulator, with Chrome 133 and animation scales at 1. It also ran on a Pixel 8, with Chrome 157 and animation scales at 1. Each pass read version.json and recorded the case switcher's and the list's boxes: 284 on the mail case, 188 on the commit case. On both devices, every box is the same at both heads. Every load on both devices was styled. A control confirms the two heads' builds: their page bundles differ, and no page at either head has a checkbox. The owners' decision records the go-ahead at c8e90a654d (D-20261114-037). It carries every other device result from 0722e453ca, and requires nothing further on the device side.

At 2c30980b27, an earlier head of this change:

Gesture Takes Delete shown, in video frames Frames without Delete Result
Flick: 200 pt in 0.23 s 5 508–1246, 257–801, 300–1240, 503–1048, 309–1286, each to the last frame 0 Rests open; nothing fires
Slow drag from the closed row: 300 pt in 1 s 3 497–1022, 498–1240, 517–1074, each to the last frame 0 Rests open; nothing fires
Slow drag past the open width: 185 pt 2 337–1119, 319–1070, each to the last frame 0 Rests open; nothing fires
Slow open, then a 190 pt drag from the open row's content 3 308–532, 508–710, 499–707, until the row leaves 0 Delete fires, and the row goes

In the open-row drags, Archive's band turns red as Delete covers it and stays red until the row leaves. At the previous head, e870248ecc, Delete vanished for 29–45 frames in each of 9 flicks.

The page's theme menu and mode button sit under its heading. The steps assume the sandbox's default: Neutral, light mode.

After main's merges:

  • The swipe spec, the unit suites and the Item a11y specs ran at c8e90a654d. So did tsc, ESLint, the baseline and knowledge checks and pnpm review:pre. The node project ran at 96a2ee31eb. Each load run ran at the head it names. d15e829480 is an earlier version of 3ab858d641 that is not in this pull request. It differs only in a spec: its lead check scaled the 34 ms bound with the longest frame gap. 9e55b9bd23 is an earlier merge of main bef2f834aa, also not in this pull request; 0b2f06189f replaces it.
  • The swipe interaction spec at 1 worker: 27 pass and 8 skip in Chromium. In WebKit, 27 pass, 1 fails and 7 skip: the busy-thread proof (:1068) stopped with the harness's FrameStarvationError. The page drew 71 frames during the block, and the control moved on 3, where the proof needs 4. In interleaved batches of 5 runs of that proof, unloaded, 0722e453ca's build failed 1 of 30 and c8e90a654d's failed 4 of 30. With the run pinned to four cores beside four busy loops, each failed 3 of 5. Every failure is the harness declining to judge: frame or touch starvation, or a block that began after the motion settled. At fc77d8dd78, WebKit failed 1: the busy-thread proof (:1068) stopped with the harness's FrameStarvationError. Its message says the compositor presented too few frames to judge the motion. In batches of 5 runs of that proof, interleaved, e174cf254d's build failed 1 and 1 unloaded, and 1 under the pinned load. fc77d8dd78's build failed 1 and 0 unloaded, and 4 under the pinned load. Every failure is the harness's frame or touch starvation error, never a verdict on the motion.
  • Under load, WebKit pinned to 4 cores with 4 busy loops on the same cores, 10 runs a batch. Before 975626a087, the tracking tests failed 8 of 50 runs at 2e5dfab3dd and 8 of 50 at 9e55b9bd23. Each read one frame against a move the page handled just after it, at the same millisecond. One more batch at 9e55b9bd23 ran unpaired, since the matching 2e5dfab3dd batch failed to start. All 10 of its runs failed, mostly the lead check. With 975626a087's spec and the old lead check, against 9e55b9bd23's build, 11 of 50 runs failed. Each had fewer than 6 frames between 10 % and 70 % of the lead. At d15e829480, 50 of 50 passed, with 4 to 12 frames there and starts within 19 ms. At 3ab858d641, which keeps the 34 ms bound, it passes 30 of 30 under that load and 10 of 10 without it.
  • The flick test under the same load, at 3ab858d641: the old check failed 7 of 30 runs, and f3a428fc3e's passed 30 of 30. In 40 runs, every settle started at the release the page read, within 0.002 px/s. The old check failed whenever the page read the finger under 700 px/s. At 3ab858d641, CI's WebKit leg failed the old check once, with the settle starting at −652.3 px/s.
  • The Item a11y specs in Chromium: ItemSwipeActions 5, ItemSwipePinchZoom 5, ItemAudit 15 and ItemStateOverlay 12 pass.
  • The Item, Swipe, List, press, gesture, snap-point, motion and hook unit suites, a subset of the ui project: 4,905 pass in 231 files.
  • The node project: 21,624 pass, 79 skip and 3 expected fails in 1,182 files. 3 fail, each at the 30 s limit: active-release, packed-self-audit and stored-docs. fc77d8dd78's run failed the same 3. At e174cf254d, the first run failed these 3 and build.core-on-demand, which read an exit code of null, not 0. Then main 7e8a670006 and e174cf254d ran back to back. Main fails 14 tests in 13 files, those 4 among them, with the same errors. e174cf254d's second run fails the same 3 timeouts and a timeout in taught-core-imports. Pinned to 2 cores at 2e5dfab3dd, with all 6 files running at once, one interactive-guard case fails on main too. It is experimental theme preview app: it fails 2 of 2 runs on main 24abd1df, and 1 of 2 at 2e5dfab3dd. The other 5 files pass there on both.
  • Core's tsc reports 0 errors, and strict ESLint reports 0 errors.
  • The comment-provenance baseline check and pnpm check:knowledge pass, and pnpm review:pre reports 0 findings.
  • eeb975607a merges main 2b85c722f9, whose 4da09b8d61 (docs(useSyntaxTheme): add hook docs and a keyword color example block #11236) changed three of this change's generated files. They are the sandbox route manifest, the shadcn registry lockfile and a CLI fixture. 3bce832f7f merges main 8e39a4a422, whose 538e297e57 (docs(useChatDictation): add hook docs and a voice input example block #11237) changed the same three files again. b360a5ea5f merges main 96ea82334e, whose 84a446b7e9 (fix(MobileNav): side="auto" resolves the drawer edge in RTL and on first open #11227) changed the comment-provenance baseline, which a script writes. 0722e453ca merges main 4beeb8a36b, which changes none of this change's files. c8e90a654d merges main 98d8401640, which changes none either. At c8e90a654d, CI's route-lock check, the fixture's test and the route manifest's test pass. Regenerating the registry lockfile and the CLI fixture leaves each identical. The baseline script's --check passes. Rerunning the script gives the same entries, and Prettier then formats the file byte for byte as committed.

Codemod verify. allow-manual-edit applies: the stories must teach only swipe (spec:AST-057 DEP-0017, spec:AST-017 FR29b) and define swipes once at module scope or in useMemo (spec:AST-057 DEC-10). The codemod's literal output would break both. A follow-up pull request, opened after this one merges, makes the codemod define each swipe once.

Public and internal API delta

Size: +10606/−2269 lines in 76 files (98d8401640..c8e90a654d; main holds #9720, #9261 and #11054); product code +2930/−1329. This round: the two commits +1198/−802 in 32 files; after the merge of #9720, the folds, the key bridge, the records, the test and the docs line +366/−376 in 22 files (product code +173/−270); then the comment fixes, the two-entry rule, FR7's return to main, the swizzle proof's sample and the open-row press +146/−44 in 8 files (product code +49/−26); after the merge of main, the pan's own landing note, the touch-tap wording, the FR6 sentence, the notes' fixes, the AST-057 module line and the AST-107 line +51/−30 in 9 files (product code +25/−23); main's merge changes this change's own lines only in the two regenerated search goldens. Then the lint baseline and the two stories +67/−62 in 2 files, no product code. Then the committed refs, their two tests and the records' key-forwarder fix +121/−54 in 4 files (product code +30/−25). Then the tracking tests' frame order +16/−7, and the lead test's two checks +14/−5, in 1 file. Then the flick test's check +19/−7 in 1 file.

App-level bytes, gzip, React and StyleX left out; main 5398a993c1 against 5735a53d51. Those bytes include #9720's and #9261's code, which main now holds. The later commits add no shipped code:

  • A page with Button, Heading, Text, TextInput, Selector, DropdownMenu, MoreMenu, Popover, Tooltip, Dialog, BottomSheet, TabList and a List, never swiping: 211.7 KB → 215.9 KB up front (+4.2 KB).
  • The same page once a row swipes, with createSwipe: 215.6 KB → 245.4 KB (+29.8 KB). The page already loads the animator; the gesture system (73 KB minified) comes with the swipe.
  • Worst case, measured at main d9d7b105f1, a page with only a four-row List: +2.4 KB up front, +48.5 KB once a row swipes.

Public, as the owner decided (spec:AST-057 DEC-8, DEC-10):

  • createSwipe, from @astryxdesign/core/Swipe and the package root. Why: the swipe's code comes with it, so an app that never imports it ships none.
    const mail = createSwipe({trailing: [{id: 'archive', label: 'Archive', onActivate: ({itemKey}) => archive(itemKey)}]});
  • swipe on Item and ListItem. Why: one prop takes the constructor's value.
    <ListItem label="Inbox" itemKey={message.id} swipe={mail} />
  • The types SwipeAction<Id>, CreateSwipeOptions<Id> and Swipe<Id>. Why: each action has an id, and Swipe<Id> carries the ids, so an unknown id fails to compile.
    const archiveAction: SwipeAction<'archive'> = {id: 'archive', label: 'Archive', onActivate: ({itemKey}) => archive(itemKey)};
  • The ./Swipe package entry. Why: it ships the swipe apart from Item.
    import {createSwipe} from '@astryxdesign/core/Swipe';
  • Deprecated, with no runtime warning (DEP-0017): the swipeActions and swipeBehavior props, and the ItemSwipeAction and ItemSwipeActions types. Why: swipe replaces them.
    swipeActions={{trailing: [entry]}} becomes swipe={createSwipe({trailing: [{id: 'archive', ...entry}]})}.
    Each symbol's decision, in the records:
    • swipeActions: deprecated under DEP-0017; the owner's decision is quoted in the DEP-0017 decider row (cixzhang, 2026-11-10, 22:23 PT).
    • swipeBehavior: deprecated under DEP-0017; the owner's decision is quoted in the DEP-0017 decider row (cixzhang, 2026-11-10, 22:23 PT).
    • ItemSwipeAction: deprecated under DEP-0017; the owner's decision is quoted in the DEP-0017 decider row (cixzhang, 2026-11-10, 22:23 PT).
    • ItemSwipeActions: deprecated under DEP-0017; the owner's decision is quoted in the DEP-0017 decider row (cixzhang, 2026-11-10, 22:23 PT).
    • ItemSwipeActionVariant and ItemSwipeBehavior are kept (DEC-10). The replacement's direct authority stays AST-057 DEC-8.
    • Deprecated rows keep working and take the new behavior: owner confirmed 2026-11-10 (DEP-0017 compatibility).
  • Kept: ItemSwipeActionVariant and ItemSwipeBehavior, which the new types reuse. No default changes.
  • astryx upgrade gains the DEP-0017 codemod. Why: static uses migrate mechanically.
    astryx upgrade --from 0.7.14 --apply

Internal; no package entry exports them. Each new module passed the test "is an existing module enough?"; the ones that did not were folded:

  • Swipe/swipeHost.ts: the public types, and the value's host. A Swipe value carries its host under a Symbol.for key, so there is no registry. Why: Item reads the value without swipe code (FR10).
    swipeHostOf(swipe)?.attach({role, isDisabled, isDelegate, isLinkRoot})
  • Swipe/createSwipe.ts, Swipe/index.ts: the public constructor and its entry. Swipe/SwipeActionsLayer.tsx and Swipe/useSwipeAction.ts moved from Item/. A row's root forwards its key events into the layer's bridge, on both paths.
  • dragToSnapPoints/compositorSettle.ts: a snap-point drag's settle on the compositor, one translate animation per part on one spring. spec:AST-094 FR5 names it. Why: the animator's custom property animates on the main thread, and its translate moves one element.
    playCompositorSettle({curve, parts, requestFrame, onFinish})
  • privateAttributes/pressHeld.stylex.ts, which the press controller reads. Why: an open row takes a press and paints none. One owner module per private attribute (INV23); pressHoldsDrag means the opposite. spec:AST-057 names it.
    setPressHeld(root, true)
  • motion/uikit/swipeActions.ts: UIKit's measured swipe values, beside the other controls' values files. spec:AST-057 and spec:AST-100 name it.
    resolveMotion(root, swipeActions.tracking)
  • Swipe/swipeHost.stylex.ts: the row root's style, one stylex.create root. createSwipe and Item's deprecated path both apply it, and it holds no gesture or rendering code.
  • Folded: swipeRoots.ts (a map from row roots to key handlers) is gone; the bridge the deprecated path already had serves both paths. swipeRelease.ts moved into useSwipeAction.ts, its only user. DeprecatedSwipeLayer.tsx is gone: Item loads SwipeActionsLayer itself, and the released commit warning lives in Item's deprecated path.

Writing rubric results

Records this change edits:

  • spec:AST-057: DEP-0017 gains a decider row that quotes the owner's decision (cixzhang, 2026-11-10, 22:23 PT) for the four deprecations. FR7 adds that a pen's or a mouse's press under a coarse primary pointer paints no press on an open row's content. Its verification row covers that case.

  • spec:AST-057: DEP-0017's compatibility field, CLN-0025's delta, FR10 and the two exception lists name the bridge and one key forwarder, as Item has them. architecture:react-component-runtime's sentence on Item's swipe code says the same.

  • spec:AST-057: the current-state impact names Swipe/SwipeActionsLayer.tsx, which Item imports on its deprecated path, with why no existing module can hold it. A status phrase goes, and the implementation gap names FR10.

  • spec:AST-094 FR6: a touch tap on a swipe row's content, Escape or a press outside it starts the row's close. That close uses the animator's internal start: 'next-frame' (architecture:react-component-runtime INV13, from chore(core): the animator takes start: 'next-frame' in an input event #9261), so it never skips ahead into its curve.

  • spec:AST-094: FR45 says a held swipe row plays no follow spring, with a verification row. DEC-32, "A held swipe row stays under the finger", records the owners' words. DEC-32 cites spec:AST-057 FR5 by its record, since a bare FR5 inside AST-094 names its own compositor rule. FR5 names compositorSettle.ts and why the animator cannot play its settle, and the path list gains the module.

  • spec:AST-057:

    • FR1 and FR11 restate the API: the actions' ids, onActivate's {id, itemKey}, Swipe<Id>, and the ids rule. A verification row covers the ids and keys.
    • DEC-10 records the owner's decision, her words and three rejected shapes.
    • The Public API rows, the Compatibility row, DEP-0017 (four deprecations, its migration and codemod fields), CLN-0025's delta and DEC-6's type name follow.
    • The Compatibility row and DEP-0017's compatibility field say a deprecated row takes the new behavior, as the owner confirmed.
  • spec:AST-057: FR7, AR3, FR7's verification row and the gesture-tuning line return to main's words: a touch tap on an open row's content closes it.

Results for this round:

  • R1 narration: none. Each edit states what the system does.
  • R2 research: none. The measurements stay in this description.
  • R3 evidence: no evidence cell names a pull request.
  • R4 rejected alternatives: DEC-10 lists three, one line each, inside the decision. DEC-32 adds none.
  • R5 change references: none added.
  • R6 open questions: none.
  • R7 project status: none.

Earlier rounds:

Records edited:

  • spec:AST-057: the readiness cell and the current-state impact drop the gap this change closes. ListItem passes swipe to its Item. The current-state line says the release settles on the compositor. A new gap line says the deprecated props keep main's lazy load: Item loads their layer with import() until they are removed. FR7 drops its gap: every close plays the row's spring. DEC-7 gains an amendment line: a mouse wheel's notches don't swipe. The Public contract, the Behavior row, FR4, AR2 and the Platform support line say the same. A path-applicability:v1 block links packages/core/src/Swipe/**, the press-held attribute, the swipe constants, and the codemod with its test.
  • spec:AST-094: its path list gains Swipe/useSwipeAction.ts and three Item test files. Their comments no longer cite its claims.
  • spec:AST-100: its path list follows the swipe code from Item/** to Swipe/**, and adds the swipe constants.
  • component:ListItem (ListItem.spec.md): its swipe gap goes.

Results:

  • R1 narration: none. Each edit states what the system does.
  • R2 research: none. The measurements stay in this description.
  • R3 evidence: no evidence cell names a pull request.
  • R4 rejected alternatives: none added.
  • R5 change references: none added.
  • R6 open questions: none.
  • R7 project status: none. The removed lines reported what was not yet built.

@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 14, 2026 1:50am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 14, 2026, 2:37 AM UTC

@github-actions github-actions Bot added needs:design-review Affects visuals — Design should review needs:spec-owner-review Current knowledge records await owner approval labels Oct 27, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request needs a spec decision before it can be approved: spec:AST-057 on main lists two-finger trackpad swipes as a non-goal and its AR2 keeps the swipe off pointers that can hover, while the DEC-7 cited here exists only in the open #8646, whose FR4 would also make a pen swipe, which this change forbids. An engineering owner records that decision by commenting /approve-spec 6df8dd02f0913da1c01e72453a6415dffd3b9cec on this pull request, and the author may do so as an engineering owner. Whatever that decision, two changes are needed:

  • Land or retarget the dependency pull requests, so this diff carries only its own 381 lines instead of 53,279.
  • When a trackpad has opened a row, a click on its content should close it without running the row's action, as a finger's tap already does.

[Automated review]

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · c8e90a6

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
charts/ChartTooltip 🔴 214.3 kB (+25.0 kB) · 451 B CSS (0) — — · — · —
charts/Chart 🔴 237.2 kB (+25.0 kB) · 516 B CSS (0) — — · — · —
DropdownMenuSubMenu 🔴 79.0 kB (+4.6 kB) · 10.3 kB CSS (+173 B) — — · — · —
118 more components
Component Size LoC Visual · A11y · RTL
BreadcrumbItem 🔴 96.1 kB (+4.5 kB) · 13.1 kB CSS (+212 B) — — · — · —
DropdownMenuItem 🔴 27.6 kB (+4.5 kB) · 6.8 kB CSS (+160 B) — — · — · —
DropdownMenuRadioItem 🔴 28.5 kB (+4.5 kB) · 7.1 kB CSS (+160 B) — — · — · —
DropdownMenuCheckboxItem 🔴 28.4 kB (+4.5 kB) · 7.1 kB CSS (+160 B) — — · — · —
lab/TransferList 🔴 111.8 kB (+4.1 kB) · 1.2 kB CSS (0) — — · — · —
lab/TabBarMoreList 🔴 101.6 kB (+4.1 kB) · 1.8 kB CSS (0) — — · — · —
lab/TransferListSelector 🔴 120.6 kB (+4.1 kB) · 1.4 kB CSS (0) — — · — · —
ListItem 🔴 78.8 kB (+3.9 kB) · 11.9 kB CSS (+123 B) — ✓ · ✓ · ✓
CheckboxListItem 🔴 79.6 kB (+3.9 kB) · 11.9 kB CSS (+123 B) — — · — · —
RadioListItem 🔴 75.8 kB (+3.8 kB) · 10.5 kB CSS (+132 B) — — · — · —
lab/CommentComposer 🔴 161.8 kB (+3.0 kB) · 1.9 kB CSS (0) — — · — · —
Markdown 🔴 201.2 kB (+2.6 kB) · 21.7 kB CSS (+126 B) — — · — · —
CommandPalette 🔴 78.9 kB (+2.6 kB) · 12.7 kB CSS (0) — — · — · —
TableHeaderCell 🔴 120.7 kB (+2.2 kB) · 18.7 kB CSS (+141 B) — — · — · —
TableCell 🔴 121.0 kB (+2.2 kB) · 18.9 kB CSS (+140 B) — — · — · —
Item · Storybook 🔴 20.3 kB (+2.2 kB) · 6.0 kB CSS (+151 B) 949 (−864) ✓ · ✓ · —
SelectorOption 🔴 23.8 kB (+2.2 kB) · 6.6 kB CSS (+165 B) — — · — · —
ContextMenu 🔴 119.8 kB (+2.2 kB) · 18.4 kB CSS (+152 B) — — · — · —
Table 🔴 137.9 kB (+2.2 kB) · 19.4 kB CSS (+140 B) — — · — · —
Selector 🔴 111.9 kB (+2.1 kB) · 18.5 kB CSS (+145 B) — — · — · —
MoreMenu 106.4 kB (+1.9 kB) · 18.6 kB CSS (+134 B) — — · — · —
DropdownMenu 106.1 kB (+1.9 kB) · 18.6 kB CSS (+134 B) — — · — · —
Pagination 122.6 kB (+1.8 kB) · 18.9 kB CSS (+143 B) — — · — · —
ContextMenuItem 35.1 kB (+1.6 kB) · 6.9 kB CSS (+161 B) — — · — · —
richtext/RichTextEditorToolbar 298.5 kB (+177 B) · 454 B CSS (0) — — · — · —
lab/Comments 367.6 kB (+112 B) · 2.5 kB CSS (0) — — · — · —
NumberInput 77.4 kB (+45 B) · 12.2 kB CSS (0) — — · — · —
ChatComposer 84.4 kB (+41 B) · 12.9 kB CSS (0) — — · — · —
SideNav 120.8 kB (+39 B) · 12.2 kB CSS (0) — — · — · —
TreeList 46.2 kB (+38 B) · 5.9 kB CSS (0) — — · — · —
ToggleButton 91.8 kB (+35 B) · 10.9 kB CSS (0) — — · — · —
TimeInput 174.4 kB (+34 B) · 16.9 kB CSS (0) — — · — · —
Collapsible 29.0 kB (+33 B) · 4.5 kB CSS (0) — — · — · —
SelectableCard 18.7 kB (+32 B) · 7.5 kB CSS (0) — — · — · —
Tab 14.9 kB (+32 B) · 4.2 kB CSS (0) — — · — · —
lab/ListInput 93.4 kB (+31 B) · 922 B CSS (0) — — · — · —
richtext/RichTextEditor 305.3 kB (+31 B) · 2.6 kB CSS (0) — — · — · —
richtext/RichTextView 281.9 kB (+30 B) · 2.3 kB CSS (0) — — · — · —
AppShell 97.2 kB (+29 B) · 14.3 kB CSS (0) — — · — · —
TopNav 77.6 kB (+29 B) · 11.7 kB CSS (0) — — · — · —
Carousel 74.5 kB (+28 B) · 11.7 kB CSS (0) — — · — · —
ChatLayout 88.2 kB (+28 B) · 11.3 kB CSS (0) — — · — · —
ClickableCard 18.5 kB (+28 B) · 7.3 kB CSS (0) — — · — · —
TextInput 72.6 kB (+28 B) · 12.0 kB CSS (0) — — · — · —
lab/ChatReactionBar 113.9 kB (+28 B) · 1.1 kB CSS (0) — — · — · —
BaseTypeahead 78.2 kB (+27 B) · 11.7 kB CSS (0) — — · — · —
MobileNav 75.9 kB (+27 B) · 11.4 kB CSS (0) — — · — · —
MultiSelector 101.3 kB (+27 B) · 17.7 kB CSS (0) — — · — · —
SideNavCollapseButton 65.7 kB (+27 B) · 10.8 kB CSS (0) — — · — · —
TopNavItem 14.6 kB (+27 B) · 4.0 kB CSS (0) — — · — · —
lab/TourStep 93.0 kB (+27 B) · 691 B CSS (0) — — · — · —
ChatComposerInput 82.0 kB (+26 B) · 12.1 kB CSS (0) — — · — · —
ChatComposerTokenElement 82.0 kB (+26 B) · 12.1 kB CSS (0) — — · — · —
CheckboxInput 68.8 kB (+26 B) · 10.1 kB CSS (0) — — · — · —
Outline 25.3 kB (+26 B) · 4.1 kB CSS (0) — — · — · —
Switch 108.7 kB (+26 B) · 10.0 kB CSS (0) — — · — · —
AvatarGroupOverflow 51.8 kB (+25 B) · 5.7 kB CSS (0) — — · — · —
ChatLayoutScrollButton 65.5 kB (+25 B) · 11.0 kB CSS (0) — — · — · —
Lightbox 145.2 kB (+25 B) · 11.9 kB CSS (0) — — · — · —
Link 56.2 kB (+25 B) · 7.1 kB CSS (0) — — · — · —
Step 31.6 kB (+25 B) · 5.6 kB CSS (0) — — · — · —
TableSelectionToolbar 75.1 kB (+25 B) · 14.0 kB CSS (0) — — · — · —
TopNavMegaMenu 75.9 kB (+25 B) · 12.6 kB CSS (0) — — · — · —
lab/SelectableCardGroup 68.6 kB (+25 B) · 162 B CSS (0) — — · — · —
AlertDialog 111.3 kB (+24 B) · 15.4 kB CSS (0) — — · — · —
CommandPaletteItem 13.4 kB (+24 B) · 3.6 kB CSS (0) — — · — · —
Stepper 66.6 kB (+24 B) · 10.9 kB CSS (0) — — · — · —
TopNavMegaMenuItem 14.3 kB (+24 B) · 4.2 kB CSS (0) — — · — · —
lab/DialogHeroHeader 88.4 kB (+24 B) · 372 B CSS (0) — — · — · —
lab/EmojiPicker 92.3 kB (+24 B) · 751 B CSS (0) — — · — · —
ChatSendButton 65.3 kB (+23 B) · 10.8 kB CSS (0) — — · — · —
DateTimeInput 223.1 kB (+23 B) · 19.7 kB CSS (0) — — · — · —
MobileNavToggle 65.2 kB (+23 B) · 10.8 kB CSS (0) — — · — · —
lab/DiffViewer 92.8 kB (+23 B) · 2.1 kB CSS (0) — — · — · —
CodeBlock 79.9 kB (+22 B) · 12.1 kB CSS (0) — — · — · —
Thumbnail 69.2 kB (+22 B) · 12.3 kB CSS (0) — — · — · —
Timestamp 35.8 kB (+22 B) · 11.0 kB CSS (0) — — · — · —
Toast 103.3 kB (+22 B) · 11.1 kB CSS (0) — — · — · —
TopNavMenu 81.4 kB (+22 B) · 12.0 kB CSS (0) — — · — · —
IconButton 64.9 kB (+21 B) · 10.8 kB CSS (0) — — · — · —
SegmentedControlItem 18.8 kB (+21 B) · 4.3 kB CSS (0) — — · — · —
TopNavHeading 81.9 kB (+21 B) · 12.0 kB CSS (0) — — · — · —
ChatDictationButton 65.4 kB (+20 B) · 10.8 kB CSS (0) — — · — · —
lab/CommentPin 60.2 kB (+20 B) · 1.2 kB CSS (0) — — · — · —
Calendar 76.0 kB (+19 B) · 11.4 kB CSS (0) — — · — · —
SideNavHeading 82.3 kB (+19 B) · 12.1 kB CSS (0) — — · — · —
Token 29.3 kB (+19 B) · 4.8 kB CSS (0) — — · — · —
DrawerHeader 67.9 kB (+18 B) · 13.7 kB CSS (0) — — · — · —
Popover 97.8 kB (+18 B) · 15.1 kB CSS (0) — — · — · —
Banner 66.9 kB (+17 B) · 11.3 kB CSS (0) — — · — · —
Button 64.9 kB (+17 B) · 10.8 kB CSS (0) — — · — · —
DateInput 199.6 kB (+17 B) · 17.9 kB CSS (0) — — · — · —
SideNavItem 76.8 kB (+17 B) · 11.9 kB CSS (0) — — · — · —
lab/ChatEmojiPicker 112.7 kB (+17 B) · 773 B CSS (0) — — · — · —
DialogHeader 67.7 kB (+15 B) · 12.3 kB CSS (0) — — · — · —
Tokenizer 103.4 kB (+15 B) · 20.0 kB CSS (0) — — · — · —
DateRangeInput 99.1 kB (+14 B) · 13.3 kB CSS (0) — — · — · —
TabMenu 78.7 kB (+12 B) · 11.9 kB CSS (0) — — · — · —
FileInput 74.0 kB (+11 B) · 11.7 kB CSS (0) — — · — · —
ComplexSelector 77.4 kB (+9 B) · 12.6 kB CSS (0) — — · — · —
Typeahead 87.5 kB (+7 B) · 13.3 kB CSS (0) — — · — · —
CheckboxList 73.0 kB (+5 B) · 7.8 kB CSS (0) — — · — · —
TextArea 66.7 kB (+3 B) · 9.4 kB CSS (0) — — · — · —
SegmentedControl 101.9 kB (+2 B) · 6.9 kB CSS (0) — — · — · —
ToggleButtonGroup 41.2 kB (+1 B) · 3.7 kB CSS (0) — — · — · —
lab/TabBar 83.4 kB (+1 B) · 1.8 kB CSS (0) — — · — · —
FieldLabel 55.2 kB (0) · 5.8 kB CSS (0) — — · — · —
List 19.0 kB (0) · 790 B CSS (0) — ✓ · ✓ · —
Overlay 23.0 kB (0) · 3.9 kB CSS (0) — — · — · —
lab/TabBarItem 3.9 kB (0) · 1.8 kB CSS (0) — — · — · —
Field 59.3 kB (−1 B) · 7.3 kB CSS (0) — — · — · —
Slider 114.2 kB (−1 B) · 8.9 kB CSS (0) — — · — · —
ButtonGroup 44.0 kB (−3 B) · 3.7 kB CSS (0) — — · — · —
RadioList 60.7 kB (−3 B) · 7.3 kB CSS (0) — — · — · —
InputGroup 60.9 kB (−4 B) · 7.9 kB CSS (0) — — · — · —
PowerSearch 305.7 kB (−380 B) · 25.4 kB CSS (+155 B) — — · — · —
lab/CommentThread 360.3 kB (−408 B) · 2.4 kB CSS (0) — — · — · —
lab/Schedule 113.9 kB (−457 B) · 3.9 kB CSS (0) — — · — · —

Package size:

  • @astryxdesign/cli 4.36 MB packed (+2.6 kB); no new dependencies
  • @astryxdesign/core 7.56 MB packed (+39.5 kB); no new dependencies

API changes: core +10 · ~6 · −0

16 API changes (advisory)
Package Where Signature Usage
+ core . · Components · component Item prop swipe?: Swipe <Item swipe={…} />
+ core . · Components · component ListItem prop swipe?: Swipe <ListItem swipe={…} />
+ core . · Functions · function createSwipe function createSwipe: <const Id extends string>(options: CreateSwipeOptions<Id>) => Swipe<Id> import {createSwipe} from '@astryxdesign/core'; createSwipe(…)
+ core . · Types · interface CreateSwipeOptions interface CreateSwipeOptions<Id extends string = string> import type {CreateSwipeOptions} from '@astryxdesign/core'
+ core . · Types · interface Swipe interface Swipe<Id extends string = string> import type {Swipe} from '@astryxdesign/core'
+ core . · Types · interface SwipeAction interface SwipeAction<Id extends string = string> import type {SwipeAction} from '@astryxdesign/core'
+ core ./Swipe · Also exported from an earlier entry point · CreateSwipeOptions CreateSwipeOptions (.) import {CreateSwipeOptions} from '@astryxdesign/core/Swipe'
+ core ./Swipe · Also exported from an earlier entry point · Swipe Swipe (.) import {Swipe} from '@astryxdesign/core/Swipe'
+ core ./Swipe · Also exported from an earlier entry point · SwipeAction SwipeAction (.) import {SwipeAction} from '@astryxdesign/core/Swipe'
+ core ./Swipe · Also exported from an earlier entry point · createSwipe createSwipe (.) import {createSwipe} from '@astryxdesign/core/Swipe'
~ core . · Components · component Item prop swipeActions?: ItemSwipeActions → prop swipeActions?: ItemSwipeActions @deprecated <Item swipeActions={…} />
~ core . · Components · component Item prop swipeBehavior?: ItemSwipeBehavior = 'reveal' → prop swipeBehavior?: ItemSwipeBehavior = 'reveal' @deprecated <Item swipeBehavior="reveal" />
~ core . · Components · component ListItem prop swipeActions?: ItemSwipeActions → prop swipeActions?: ItemSwipeActions @deprecated <ListItem swipeActions={…} />
~ core . · Components · component ListItem prop swipeBehavior?: ItemSwipeBehavior = 'reveal' → prop swipeBehavior?: ItemSwipeBehavior = 'reveal' @deprecated <ListItem swipeBehavior="reveal" />
~ core . · Types · interface ItemSwipeAction interface ItemSwipeAction → interface ItemSwipeAction @deprecated import type {ItemSwipeAction} from '@astryxdesign/core'
~ core . · Types · interface ItemSwipeActions interface ItemSwipeActions → interface ItemSwipeActions @deprecated import type {ItemSwipeActions} from '@astryxdesign/core'

Touched components checked; add ci:run-visual or ci:run-rtl to run the full suites.


Generated by PR Enrichment workflow | View full report

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 27, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request needs a spec decision before it can be approved: spec:AST-057 on main lists two-finger trackpad swipes as a non-goal and keeps the swipe off pointers that can hover (AR2, DEC-4), while the DEC-7 cited here exists only in the open #8646, whose FR4 would also make a pen swipe, which this change forbids. An engineering owner records that decision by landing the spec:AST-057 amendment with the pen settled, or ruling otherwise, and commenting /approve-spec 08e6916d0e698009bca4d50efdd10c6824a0c381 on this pull request; the author may do so as an engineering owner. Whatever that decision, two changes are needed:

  • Land or retarget the dependency pull requests, so this diff carries its own 458 lines instead of 53,360.
  • Under Reduce Motion on a fine pointer, a trackpad or wheel swipe's settle should complete at once, as design:reduced-motion DR3 requires, instead of cross-fading like a touch release (useSwipeAction.ts:777, :834).

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trackpad, wheel and pen swipe now matches spec:AST-057 on main (FR4, FR5, DEC-7), but approval needs an engineering owner’s decision on two things this head adds without current spec: the new component:BottomSheet element job for the input hold’s shield (BottomSheet.spec.md, lines 232–236), and whether a mouse or pen press on an open row’s own content should close it and activate nothing (useSwipeAction.ts, lines 1308–1332). An engineering owner records that decision by commenting /approve-spec bfef65e146dc5a8089b53dd84dd6c6dfafb1d1bd on this pull request, or by ruling otherwise in a comment; the author may do so as an engineering owner. Whatever that decision, two changes are needed:

  • Land or retarget the dependency pull requests, so this diff carries its own 637 lines instead of 54,294.
  • In the swipeActions doc and JSDoc, say a swipe-only verb is unreachable “by keyboard and by a mouse drag” and that an open row closes on a press elsewhere (Item.doc.mjs:202, Item.tsx:280 and :283).

[Automated review]

Comment thread packages/core/src/Item/Item.tsx Resolved
@vjeux vjeux changed the title feat(Item): a trackpad's horizontal scroll swipes a row as a finger does, and a mouse drag never does (spec:AST-057 DEC-7, spec:AST-094 FR43) feat(Item): a pen or a trackpad's horizontal scroll swipes a row as a finger does, and a mouse drag never does (spec:AST-057 FR4, DEC-7; spec:AST-094 FR43) Oct 27, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pen, trackpad and wheel swipe matches spec:AST-057 on main (FR4, FR5, DEC-7), but approval needs an engineering owner's decision on two things this head adds without current spec: whether a mouse or pen press on an open row's own content should close it and activate nothing (useSwipeAction.ts, lines 1308–1333), and the new component:BottomSheet element job for the input hold's shield (BottomSheet.spec.md, lines 232–236). An engineering owner records that decision by commenting /approve-spec 90bf79fdcdaa1bba8793bb0ba4d610bae4c3977b on this pull request, or by ruling otherwise in a comment; the author may do so as an engineering owner. Whatever that decision, three changes are needed:

  • Land or retarget the dependency pull requests, so this diff carries its own 644 lines instead of 54,742.
  • In the swipeActions doc and JSDoc, say a swipe-only verb is unreachable "by keyboard and by a mouse drag" and that an open row closes on a press elsewhere (Item.tsx lines 280 and 283, Item.doc.mjs lines 202 and 257).
  • Add the physical-device check spec:AST-057's verification asks for: a real trackpad (a slow swipe and a quick flick) and a real pen on the swipe-actions story.

[Automated review]

Comment thread packages/core/src/Item/Item.tsx Resolved
Comment thread packages/core/src/Item/Item.tsx Resolved
@vjeux
vjeux marked this pull request as draft October 29, 2026 22:39
vjeux added a commit to vjeux/astryx that referenced this pull request Oct 30, 2026
… the input drivers helper 4c0e0a5) into meta#8690

# Conflicts:
#	packages/core/src/Item/useSwipeAction.ts
#	packages/core/src/motion/README.md

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pen, trackpad and wheel swipe matches spec:AST-057 on main (FR4–FR6, DEC-7), but approval needs an engineering owner's decision on three spec deltas this head carries without current authority: a mouse or pen press on an open row's own content closing it without activating anything (useSwipeAction.ts, lines 1300–1324), the new component:BottomSheet element job for the entrance shield (BottomSheet.spec.md, lines 233–237), and the new spec:AST-094 FR41 rule for claimed mouse and pen drags (docs/specs/AST-094-touch-presentations/spec.md, lines 471–475). An engineering owner records that decision by commenting /approve-spec 6c08e005cc6ac6102d2a33aba151779fa96a843a on this pull request, or by ruling otherwise in a comment; the author may do so as an engineering owner. Whatever that decision, three changes are needed:

  • Land or retarget the dependency pull requests, so this diff carries its own 596 lines instead of 54,299.
  • In the swipeActions JSDoc and doc, say a swipe-only verb is unreachable “by keyboard and by a mouse drag” and that an open row closes on a press elsewhere (Item.tsx lines 280 and 283, Item.doc.mjs lines 202 and 257).
  • Add the physical-device check spec:AST-057's verification asks for: a real trackpad (a slow swipe and a quick flick) and a real pen on the swipe-actions story.

[Automated review]

Comment thread packages/core/src/Item/Item.tsx Resolved
Comment thread packages/core/src/Item/Item.tsx Resolved

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested. An engineering owner's approval covers every spec change at this head, and the code is unchanged since the last review, with no blocking problem in it; one piece of evidence is missing.

  • Regression: the phone side-by-side and the Android emulator set that spec:AST-094 DEC-27 requires are not stated for this head, and DEC-31 does not carry the earlier runs, because this merge of main changes docs/specs/AST-094-touch-presentations/spec.md and internal/eslint-plugin-astryx/no-comment-provenance.baseline.json, two files this pull request also edits.

Next: run the phone side-by-side against the passed head and the emulator set at normal, slow and reduced-motion settings on this head, and state each run in the description. The non-blocking notes from the last review still stand in their inline threads. CI has not run on this head yet because the pull request is a draft.

Claims and files checked
  • Verified: the newest commit merges main without conflict and leaves this change's own lines as they were.
  • Verified: that merge also changes the touch-presentations record and the comment-provenance lint baseline, both files this change edits, so the earlier phone and emulator runs do not carry to this head.
  • Verified: createSwipe ships from @astryxdesign/core/Swipe and the package root, Item and ListItem take swipe, and the public surface, regenerated from both builds, adds and deprecates exactly what the description lists.
  • Verified in the code and its tests, which pass here with the package's typecheck: every action needs an id, onActivate receives {id, itemKey}, ListItem adds its itemKey and hands the same value while the value and key stay the same, and a new value with other ids closes an open row.
  • Verified in the code: a finger, a pen and a trackpad's continuous scroll swipe a row from an 8 px claim; a mouse drag and wheel notches do not.
  • Verified in the code: only a touch tap on an open row's content closes it and activates nothing; a mouse or pen press reaches the row; an open row's root takes no press paint.
  • Verified in the code: release settles play on the compositor, cross-fade under Reduce Motion, and a landing finger catches them.
  • Verified: four symbols are deprecated with no runtime warning, ItemSwipeActionVariant and ItemSwipeBehavior stay, and swipe wins over the deprecated props with a development warning.
  • Verified: astryx upgrade registers the codemod, which gives each entry an id from its side and place and leaves values it cannot see with a note.
  • Verified: all eight changesets match the code.
  • Stated, not re-run here: the phone, emulator, browser and load runs, and the bundle sizes.
  • Files: all 76 visited; the device evidence for the touch-presentations record blocks, and the rest are clear apart from the earlier non-blocking notes.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, because the pull request is a draft; it runs once the pull request is marked ready for review.

An engineering owner's approval covers every spec change at this head, the code adds no blocking problem, and the owner's decision comment states the phone side-by-side and the Android emulator set that the touch-presentations spec requires at this head.

Optional follow-ups: replace the description's "No device run has been taken" sentence with those runs; add an id to the row-actions record's Builder impact example; say "a trackpad's horizontal scroll" in its modality-split row and DEC-4; list latestRef in the shared drag's dependencies; move the two long file headers' prose into JSDoc; move messageSwipe above the OverPageControls comment; and fix the "after 25 px" test comment.

Claims and files checked
  • Claims:
    • An open row closes on a touch tap on its content, which activates nothing and paints no press; a scroll closes it unless focus is in its panel; it counts as open from the release (verified: Swipe/useSwipeAction.ts:225-230, :509-557, :1363-1382; Item.test.tsx tap and scroll cases).
    • A full swipe confirms on the finger, fires at any speed, closes when backed out, needs the open row on a side with two or more entries, and never confirms toward a disabled entry (verified: useSwipeAction.ts:136-164, :1013-1040; swipeRelease.test.ts).
    • The row claims a sideways touch at 8 px, follows one for one, swipes under a pen, leaves an early second finger to the pinch and keeps its finger after the claim (verified: useSwipeAction.ts:1294-1336; Item.test.tsx).
    • A trackpad moves the row from its first event past 8 px and settles at its speed; an open row only closes within one swipe; wheel notches never swipe (verified: useSwipeAction.ts:1073-1083, :1200-1216, :1297-1298; Item.sharedDrag.test.tsx).
    • The held row settles on the measured spring from its own velocity, on the compositor, with a Reduce Motion cross-fade, and a landing finger catches it (verified: useSwipeAction.ts:1227-1240; createDragToSnapPoints.ts:323-396; createSnapDrag.test.ts).
    • The codemod rewrites object-literal sites, adds ids and the import, and reports values and spreads it cannot see (verified: the codemod and its 10 passing tests).
    • createSwipe and swipe, typed ids, onActivate({id, itemKey}), same ids keep an open row and other ids close it, the code ships with createSwipe, four deprecations, swipe wins (verified: createSwipe.ts, swipeHost.ts, SwipeActionsLayer.tsx:298-310, Item.tsx:713-759; createSwipe.test.ts; the bundle and source-build tests).
    • The swipe constants are internal and not exported (verified: motion/uikit/swipeActions.ts; index.ts adds only ./Swipe).
    • The description's public and internal API lists, folds and input table match the code and the regenerated API surface (verified: 16 rows).
    • The last merge of main changes the comment-provenance baseline and the touch-presentations record (verified); the description's "no device run" sentence is now outdated by the owner's statement of runs at this head (non-blocking).
  • Files: the 8 changesets, 8 sandbox files, Item.stories.tsx, List.stories.tsx, the touch-presentations, release-velocity, ListItem and runtime records, the 7 generated or fixture files, the codemod with its test and registration, the swizzle sample, package.json, index.ts, every file under Swipe/, dragToSnapPoints/, privateAttributes/, motion/, pressFeedback.ts and its test, Item.tsx, ListItem.tsx, both docs, the two deleted Item files and every other test file: clear. Notes: the row-actions record (an example and two wheel lines), useSwipeAction.ts (a dependency list, a long header), SwipeActionsLayer.tsx (a long header), Popover.stories.tsx (an orphaned comment) and ItemSwipePinchZoom.a11y.chromium.spec.ts (a stale comment).

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 0722e45

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one piece of device evidence is still missing at this head; the code adds no blocking problem.

  • Regression: this head's merge of main changes Link, which the swipe device page renders, and the owner's decision at this head requires a real-phone geometry comparison of the screens that render a Link against the previous revision before the earlier device results carry (touch-presentations spec, DEC-27 and DEC-31); the description still calls it pending, so run it and state its result there.

An engineering owner's approval covers every spec change at this head. Optional follow-ups: add an id to the row-actions record's Builder impact example; say "a trackpad's horizontal scroll" in its modality-split row and DEC-4; list latestRef in the shared drag's dependencies; move the two long file headers' prose into JSDoc; move messageSwipe above the OverPageControls comment; and fix the "after 25 px" test comment.

Claims and files checked
  • Claims:
    • An open row closes on a touch tap on its content, which activates nothing and paints no press; a scroll closes it unless focus is in its panel; it counts as open from the release (verified: Swipe/useSwipeAction.ts:1363-1382; Item.test.tsx tap and scroll cases).
    • A full swipe confirms on the finger, fires at any speed, closes when backed out, needs the open row on a side with two or more entries, and never confirms toward a disabled entry (verified: useSwipeAction.ts; swipeRelease.test.ts).
    • The row claims a sideways touch at 8 px, follows one for one, swipes under a pen, leaves an early second finger to the pinch and keeps its finger after the claim (verified: useSwipeAction.ts:1294-1336; Item.test.tsx).
    • A trackpad moves the row and settles at its speed; wheel notches never swipe (verified: the pan options at useSwipeAction.ts:1297-1298; Item.sharedDrag.test.tsx).
    • The held row settles on the measured spring from its own velocity, on the compositor, with a Reduce Motion cross-fade (verified: createDragToSnapPoints.ts, compositorSettle.ts; createSnapDrag.test.ts).
    • The codemod rewrites object-literal sites, adds ids and the import, and reports values and spreads it cannot see (verified: the codemod and its 10 passing tests).
    • createSwipe and swipe, typed ids, onActivate({id, itemKey}), same ids keep an open row and other ids close it, the code ships with createSwipe, four deprecations, swipe wins (verified: createSwipe.ts, swipeHost.ts, SwipeActionsLayer.tsx:298-310; createSwipe.test.ts; the bundle and server tests).
    • The swipe constants are internal and not exported (verified: motion/uikit/swipeActions.ts; the regenerated API surface lists only the ./Swipe rows).
    • The description's public and internal API lists match the code and the regenerated API surface (verified: 16 rows).
    • The newest merge of main changes none of this pull request's files and no shared motion, layer, press or touch module, but changes Link, which the device page reaches through its entry (verified: the merge's changed files against this pull request's files and imports).
    • A device check of the case-switcher links and swipe rows at this head is pending (verified: the owner's decision at this head still requires it; blocking).
    • The route list, the registry route lock, the CLI fixture and the comment-provenance baseline are unchanged by the newest merge (consistent; CI has not run on the draft).
    • The earlier device tables (phones against the passed revision, the Android emulator set) are stated in text, as the touch-presentations spec asks (verified against the owner's decision).
  • Files: the 8 changesets, the sandbox files other than the swipe device page, Item.stories.tsx, List.stories.tsx, the touch-presentations, release-velocity, ListItem and runtime records, the 7 generated or fixture files, the codemod with its test and registration, the swizzle sample, package.json, index.ts, every file under Swipe/, dragToSnapPoints/, privateAttributes/, motion/, pressFeedback.ts and its test, Item.tsx, ListItem.tsx, both docs, the two deleted Item files and every other test file: clear. Finding: the swipe device page (the pending geometry comparison). Notes: the row-actions record (an example and two wheel lines), useSwipeAction.ts (a dependency list, a long header), SwipeActionsLayer.tsx (a long header), Popover.stories.tsx (an orphaned comment) and ItemSwipePinchZoom.a11y.chromium.spec.ts (a stale comment).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, because the pull request is a draft; it runs once the pull request is marked ready, and it already carries the ci:run label.

An engineering owner's approval covers every spec change at this head, and the device check the last review asked for after main's Link change is now stated in the description. No blocking findings remain. Optional follow-ups: add an id to the row-actions record's Builder impact example; say "a trackpad's horizontal scroll" in its modality-split row and DEC-4; list latestRef in the shared drag's dependencies; move the two long file headers' prose into JSDoc; move messageSwipe above the OverPageControls comment; and fix the "after 25 px" test comment.

Claims and files checked
  • Claims:
    • An open row closes on a touch tap on its content, which activates nothing and paints no press; a scroll closes it unless focus is in its panel; it counts as open from the release (verified: Swipe/useSwipeAction.ts:525-547 and :1357-1382; Item.test.tsx tap and scroll cases).
    • A full swipe confirms on the finger, fires at any speed, closes when backed out, needs the open row on a side with two or more entries, and never confirms toward a disabled entry (verified: useSwipeAction.ts:136-164, :1013-1028, :1085-1123; SwipeActionsLayer.tsx:274-277; swipeRelease.test.ts).
    • The row claims a sideways touch at 8 px, follows one for one, swipes under a pen, leaves an early second finger to the pinch and keeps its finger after the claim (verified: useSwipeAction.ts:1044-1084, :1294-1336; Item.test.tsx).
    • A trackpad moves the row and settles at its speed; wheel notches never swipe (verified: the pan options at useSwipeAction.ts:1297-1298; Item.sharedDrag.test.tsx).
    • The released row settles on the measured spring from its own velocity, on the compositor, with a Reduce Motion cross-fade, and a finger catches a moving row (verified: createDragToSnapPoints.ts, compositorSettle.ts; createSnapDrag.test.ts; Item.test.tsx catch case).
    • The click a browser makes after a swipe is cancelled by the shared gesture system rather than a timer (verified: Item.tsx no longer wraps the row's click; the swipe cases assert the row's click never fires).
    • The codemod rewrites object-literal sites, adds ids and the import, and reports values and spreads it cannot see (verified: the codemod and its 10 passing tests).
    • createSwipe and swipe, typed ids, onActivate({id, itemKey}), same ids keep an open row and other ids close it, the code ships with createSwipe, four deprecations, swipe wins (verified: createSwipe.ts, swipeHost.ts, SwipeActionsLayer.tsx:298-310, Item.tsx:754-758; createSwipe.test.ts; the bundle and server tests).
    • The swipe constants are internal and not exported (verified: motion/uikit/swipeActions.ts; the regenerated API surface lists only the ./Swipe rows).
    • The description's public and internal API lists match the code and the regenerated API surface (verified: 16 rows).
    • The newest merge of main changes none of this pull request's files and no shared motion, layer, press or touch module; it changes Link.tsx, which the device page reaches through the unchanged Link entry (verified: the merge's changed files; this pull request's own patch is byte-identical to the previous revision's).
    • A device check of the case-switcher links and swipe rows at this head on the Android emulator and a Pixel 8 found every box identical to the previous revision (stated in text, as the touch-presentations spec asks; accepted by the owner's decision at this head).
    • The earlier device tables (phones against the passed revision, the Android emulator set) are stated in text and carry to this head (verified against the touch-presentations spec's carry rule and the owner's decision).
    • The route list, the registry route lock, the CLI fixture and the comment-provenance baseline are unchanged by the newest merge (consistent; CI has not run on the draft).
    • The test and bundle-size tables are the author's runs; the swipe, Item, List, press, snap-drag, bundle, codemod and route suites pass at this head, and Core's typecheck is clean.
  • Files: the 8 changesets, the sandbox files and device page, Item.stories.tsx, List.stories.tsx, the touch-presentations, release-velocity, ListItem and runtime records, the 8 generated or fixture files, the codemod with its test and registration, the swizzle sample, package.json, index.ts, every file under Swipe/, dragToSnapPoints/, privateAttributes/, motion/, pressFeedback.ts and its test, Item.tsx, ListItem.tsx, the three docs, the two deleted Item files and every other test file: clear. Notes: the row-actions record (an example and two wheel lines), useSwipeAction.ts (a dependency list, a long header), SwipeActionsLayer.tsx (a long header), Popover.stories.tsx (an orphaned comment) and ItemSwipePinchZoom.a11y.chromium.spec.ts (a stale comment).

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec c8e90a6

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one piece of device evidence is missing at this head; the code is unchanged since the last review and adds no blocking problem.

  • Regression: this head's merge of main changes CheckboxInput, which ListItem imports directly, so the touch-presentations spec (DEC-27 and DEC-31) no longer carries the earlier phone and emulator results, and the owner's decision at this head requires a real-phone geometry comparison of the swipe device page against the previous revision; the description still calls it pending, so run it and state each device, browser, animation scale and result there.

An engineering owner's approval covers every spec change at this head. CI runs once the draft is marked ready; it already carries the ci:run label. Optional follow-ups: add an id to the row-actions record's Builder impact example; say "a trackpad's horizontal scroll" in its modality-split row and DEC-4; list latestRef in the shared drag's dependencies; move the two long file headers' prose into JSDoc; move messageSwipe above the OverPageControls comment; and fix the "after 25 px" test comment.

Claims and files checked
  • Claims:
    • An open row closes on a touch tap on its content, which activates nothing and paints no press; a scroll closes it unless focus is in its panel; it counts as open from the release (verified: Swipe/useSwipeAction.ts:1363-1382; Item.test.tsx tap and scroll cases).
    • A full swipe confirms on the finger, fires at any speed, closes when backed out, needs the open row on a side with two or more entries, and never confirms toward a disabled entry (verified: useSwipeAction.ts; swipeRelease.test.ts).
    • The row claims a sideways touch at 8 px, follows one for one, swipes under a pen, leaves an early second finger to the pinch and keeps its finger after the claim (verified: useSwipeAction.ts:1294-1336; Item.test.tsx).
    • A trackpad moves the row and settles at its speed; wheel notches never swipe (verified: the pan options at useSwipeAction.ts:1297-1298; Item.sharedDrag.test.tsx).
    • The held row settles on the measured spring from its own velocity, on the compositor, with a Reduce Motion cross-fade (verified: createDragToSnapPoints.ts, compositorSettle.ts; createSnapDrag.test.ts).
    • The codemod rewrites object-literal sites, adds ids and the import, and reports values and spreads it cannot see (verified: the codemod and its tests).
    • createSwipe and swipe, typed ids, onActivate({id, itemKey}), same ids keep an open row and other ids close it, the code ships with createSwipe, four deprecations, swipe wins (verified: createSwipe.ts, swipeHost.ts, SwipeActionsLayer.tsx:298-310, Item.tsx:754-758; createSwipe.test.ts; the bundle and server tests).
    • The swipe constants are internal and not exported, and the description's public and internal API lists match the code (verified: 16 public rows; every new internal module is named in an approved record).
    • The newest merge of main changes none of this pull request's files and no shared motion, layer, press or touch module, and this pull request's own changes are as they were (verified: the merge's changed files; the pull request's own diff is byte-identical to the previous revision's).
    • That merge changes CheckboxInput, which ListItem imports directly and renders only for a task row (verified: ListItem.tsx:50 and :562).
    • A device check of the case-switcher links and swipe rows at this head against the previous revision is pending (verified: the owner's decision at this head still requires it; blocking).
    • The swipe spec, the unit suites and the Item accessibility specs ran at this head; the WebKit busy-thread proof stopped on the harness's frame-starvation error in 4 of 30 interleaved runs here against 1 of 30 at the previous revision (stated by the author; harness verdicts, not motion results, on unchanged code).
    • The earlier device tables (phones against the passed revision, the Android emulator set) are stated in text, as the touch-presentations spec asks (verified against the spec and the owner's decision; they do not carry past this merge).
  • Files: the 8 changesets, the sandbox files other than the swipe device page, Item.stories.tsx, List.stories.tsx, the touch-presentations, release-velocity, ListItem and runtime records, the 8 generated or fixture files, the codemod with its test and registration, the swizzle sample, package.json, index.ts, every file under Swipe/, dragToSnapPoints/, privateAttributes/, motion/, pressFeedback.ts and its test, Item.tsx, ListItem.tsx, both docs, the two deleted Item files and every other test file: clear. Finding: the swipe device page (the pending geometry comparison). Notes: the row-actions record (an example and two wheel lines), useSwipeAction.ts (a dependency list, a long header), SwipeActionsLayer.tsx (a long header), Popover.stories.tsx (an orphaned comment) and ItemSwipePinchZoom.a11y.chromium.spec.ts (a stale comment).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: the pull request left draft during this review and its required checks are still running on this head; the merge guard waits for them to pass.

An engineering owner's approval covers every spec change at this head, the code is unchanged since the last review and adds no blocking problem, and the swipe device page's geometry comparison at this head, now stated in the description, settles the device evidence that this head's merge of main called for. Optional follow-ups: add an id to the row-actions record's Builder impact example; say "a trackpad's horizontal scroll" in its modality-split row and DEC-4; list latestRef in the shared drag's dependencies; move the two long file headers' prose into JSDoc; move messageSwipe above the OverPageControls comment; and fix the "after 25 px" test comment.

Claims and files checked
  • Claims:
    • An open row closes on a touch tap on its content, which activates nothing and paints no press; a scroll closes it unless focus is in its panel; it counts as open from the release (verified: Swipe/useSwipeAction.ts:1363-1382; Item.test.tsx tap and scroll cases).
    • A full swipe confirms on the finger, fires at any speed, closes when backed out, needs the open row on a side with two or more entries, and never confirms toward a disabled entry (verified: useSwipeAction.ts; swipeRelease.test.ts).
    • The row claims a sideways touch at 8 px, follows one for one, swipes under a pen, leaves an early second finger to the pinch and keeps its finger after the claim (verified: useSwipeAction.ts:1294-1336; Item.test.tsx).
    • A trackpad moves the row and settles at its speed; wheel notches never swipe (verified: the pan options at useSwipeAction.ts:1297-1298; Item.sharedDrag.test.tsx).
    • The held row settles on the measured spring from its own velocity, on the compositor, with a Reduce Motion cross-fade (verified: createDragToSnapPoints.ts, compositorSettle.ts; createSnapDrag.test.ts).
    • The codemod rewrites object-literal sites, adds ids and the import, and reports values and spreads it cannot see (verified: the codemod and its tests).
    • createSwipe and swipe, typed ids, onActivate({id, itemKey}), same ids keep an open row and other ids close it, the code ships with createSwipe, four deprecations, swipe wins (verified: createSwipe.ts, swipeHost.ts, SwipeActionsLayer.tsx:298-310, Item.tsx:754-758; createSwipe.test.ts; the bundle and server tests).
    • The swipe constants are internal and not exported, and the description's public and internal API lists match the code (verified: 16 public rows; every new internal module is named in an approved record).
    • The newest merge of main changes none of this pull request's files and no shared motion, layer, press or touch module, and this pull request's own changes are as they were (verified: the merge's changed files; the pull request's own diff is byte-identical to the previous revision's).
    • That merge changes CheckboxInput, which ListItem imports directly and renders only for a task row (verified: ListItem.tsx:50 and :562).
    • The device page's case-switcher links and swipe rows measure the same at this head as at the previous revision on the Android emulator and a Pixel 8, and no page has a checkbox (stated by the author; the owner's decision at this head accepts it and requires nothing further on the device side).
    • The bundle-size figures, the red-first runs and the phone and emulator tables are the author's measurements (stated by the author, in text, as the touch-presentations spec asks).
    • The swipe spec, the unit suites and the Item accessibility specs ran at this head; the WebKit busy-thread proof stopped on the harness's frame-starvation error in 4 of 30 interleaved runs here against 1 of 30 at the previous revision (stated by the author; harness verdicts, not motion results, on unchanged code).
    • The earlier device tables (phones against the passed revision, the Android emulator set) are stated in text, as the touch-presentations spec asks (verified against the spec; the owner's decision at this head carries them past this merge beside the new geometry check).
  • Files: the 8 changesets, the sandbox files with the swipe device page, Item.stories.tsx, List.stories.tsx, the touch-presentations, release-velocity, ListItem and runtime records, the 8 generated or fixture files, the codemod with its test and registration, the swizzle sample, package.json, index.ts, every file under Swipe/, dragToSnapPoints/, privateAttributes/, motion/, pressFeedback.ts and its test, Item.tsx, ListItem.tsx, both docs, the two deleted Item files and every other test file: clear. Notes: the row-actions record (an example and two wheel lines), useSwipeAction.ts (a dependency list, a long header), SwipeActionsLayer.tsx (a long header), Popover.stories.tsx (an orphaned comment) and ItemSwipePinchZoom.a11y.chromium.spec.ts (a stale comment).

Automated review (maintainer link)

This branch was successfully deployed

1 active deployment
Preview — c8e90a65 Deployed Nov 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-manual-edit Owner exception: Codemod Verify lists mismatches but passes. Maintainers apply it. ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants