Repository navigation
feat(core): swipe actions come from createSwipe on the shared drag path - #8690
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
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]
PR Analysis Report🔎 Preview ·
|
| 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
There was a problem hiding this comment.
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-motionDR3 requires, instead of cross-fading like a touch release (useSwipeAction.ts:777,:834).
[Automated review]
There was a problem hiding this comment.
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
swipeActionsdoc 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:280and:283).
[Automated review]
There was a problem hiding this comment.
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
swipeActionsdoc 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.tsxlines 280 and 283,Item.doc.mjslines 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]
There was a problem hiding this comment.
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
swipeActionsJSDoc 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.tsxlines 280 and 283,Item.doc.mjslines 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]
6c08e00 to
6cac398
Compare
There was a problem hiding this comment.
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-094DEC-27 requires are not stated for this head, and DEC-31 does not carry the earlier runs, because this merge ofmainchangesdocs/specs/AST-094-touch-presentations/spec.mdandinternal/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
mainwithout 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:
createSwipeships from@astryxdesign/core/Swipeand the package root,ItemandListItemtakeswipe, 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,onActivatereceives{id, itemKey},ListItemadds itsitemKeyand 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,
ItemSwipeActionVariantandItemSwipeBehaviorstay, andswipewins over the deprecated props with a development warning. - Verified:
astryx upgraderegisters 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.
There was a problem hiding this comment.
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.tsxtap 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).
createSwipeandswipe, typed ids,onActivate({id, itemKey}), same ids keep an open row and other ids close it, the code ships withcreateSwipe, four deprecations,swipewins (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.tsadds 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
mainchanges 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).
- 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:
- 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 underSwipe/,dragToSnapPoints/,privateAttributes/,motion/,pressFeedback.tsand 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) andItemSwipePinchZoom.a11y.chromium.spec.ts(a stale comment).
|
/approve-spec 0722e45 |
There was a problem hiding this comment.
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
mainchangesLink, 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 aLinkagainst 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.tsxtap 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).
createSwipeandswipe, typed ids,onActivate({id, itemKey}), same ids keep an open row and other ids close it, the code ships withcreateSwipe, four deprecations,swipewins (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./Swiperows). - The description's public and internal API lists match the code and the regenerated API surface (verified: 16 rows).
- The newest merge of
mainchanges none of this pull request's files and no shared motion, layer, press or touch module, but changesLink, 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).
- 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:
- 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 underSwipe/,dragToSnapPoints/,privateAttributes/,motion/,pressFeedback.tsand 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) andItemSwipePinchZoom.a11y.chromium.spec.ts(a stale comment).
There was a problem hiding this comment.
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-547and:1357-1382;Item.test.tsxtap 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.tsxcatch case). - The click a browser makes after a swipe is cancelled by the shared gesture system rather than a timer (verified:
Item.tsxno 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).
createSwipeandswipe, typed ids,onActivate({id, itemKey}), same ids keep an open row and other ids close it, the code ships withcreateSwipe, four deprecations,swipewins (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./Swiperows). - The description's public and internal API lists match the code and the regenerated API surface (verified: 16 rows).
- The newest merge of
mainchanges none of this pull request's files and no shared motion, layer, press or touch module; it changesLink.tsx, which the device page reaches through the unchangedLinkentry (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.
- 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:
- 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 underSwipe/,dragToSnapPoints/,privateAttributes/,motion/,pressFeedback.tsand 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) andItemSwipePinchZoom.a11y.chromium.spec.ts(a stale comment).
|
/approve-spec c8e90a6 |
There was a problem hiding this comment.
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
mainchangesCheckboxInput, whichListItemimports 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.tsxtap 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).
createSwipeandswipe, typed ids,onActivate({id, itemKey}), same ids keep an open row and other ids close it, the code ships withcreateSwipe, four deprecations,swipewins (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
mainchanges 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, whichListItemimports directly and renders only for a task row (verified:ListItem.tsx:50and: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).
- 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:
- 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 underSwipe/,dragToSnapPoints/,privateAttributes/,motion/,pressFeedback.tsand 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) andItemSwipePinchZoom.a11y.chromium.spec.ts(a stale comment).
There was a problem hiding this comment.
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.tsxtap 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).
createSwipeandswipe, typed ids,onActivate({id, itemKey}), same ids keep an open row and other ids close it, the code ships withcreateSwipe, four deprecations,swipewins (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
mainchanges 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, whichListItemimports directly and renders only for a task row (verified:ListItem.tsx:50and: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).
- 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:
- 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 underSwipe/,dragToSnapPoints/,privateAttributes/,motion/,pressFeedback.tsand 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) andItemSwipePinchZoom.a11y.chromium.spec.ts(a stale comment).
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.id;onActivatereceives{id, itemKey}, so one module-scope definition serves every row.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-017FR28, FR29 and DEC-17: a patch deprecation adds no runtime warning.Public delta and caller burden
Callers pass
swipeinstead of the deprecated props;astryx upgraderewrites static uses. The API section lists each change.Design and alternatives
Evidence
Testing lists each proof.
Scope
Components: Item, ListItem, createSnapDrag, and the
./Swipeentry (createSwipeand its types)Behavior module:
Swipe(@astryxdesign/core/Swipe).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 throughwebkit-container.mjswith CI's four CPUs.The history:
665a9ef90fmerges #9720's head81c8831753and #11054's headcb4fd63faf, and29c7323334merges maind08ce652efinto it.bde8808df5then merges main04a0e6c111over it,71c82998b0merges mainebb9ddecc0, andf8951e585emerges main08b74222fe. The one conflict, main's removal ofpackages/core/api-report.md, takes main's side. Two commits follow:353682ce1d(a held row stays under the finger) ande5a00bfba6(the API delta).976cc67391merges #9720's heada1a2db3a3e, whose fold movescreateSnapDragintocreateDragToSnapPoints.ts; this change's edits to it move with it.14a13b0da0folds this change's modules and routes a row's key events through the layer's bridge on both paths.508e783755updates the CLI's records,22e99f15e6tightens the lead test, and360bcdec15is docs only.20eb8ca3afputs the swipe's doc comments back on their declarations.0d04d74ad1lets 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.5a5c0cbb49returns 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.d747726603gives the swizzle proof a sample that renders the Swipe folder.c0a060b20creturns FR7's verification row to main's words.b03bae50b9counts a press on the outermost entry only while the row is open on that side.5c8d29fdb7merges maind9d7b105f1. 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,c31e0383f8notes that press in the pan's ownshouldReceiveTouch.244e56d143says a touch tap in the swipe prop's doc comment, the changeset and AST-057.ced7a9b27bis docs only: AST-094 FR6 cites the animator's internal next-frame start, from #9261, for this row's close.8a0c2a9ff9corrects the gesture changeset and the swipe constants' notes to the held row.1e40e64616namesSwipe/SwipeActionsLayer.tsxin AST-057, with why it stands alone.3d56f54531says in AST-107 FR7 whatcreatePanandcreateSnapDragtake that their public factories do not; #9720 carries the same commit.b934e3801emerges main5398a993c1, which carries #11054 as a squash ofcb4fd63faf, already in this change, and #11169. The two old swipe files stay deleted;Item.tsx,Item.test.tsx,Item.doc.mjsand the a11y spec keep this change's lines and gain #11169's. Theno-icon-setsearch goldens are regenerated: 21 matches, main's 20 andcreateSwipe.a1e65a924badds DEP-0017's decider row, an FR7 sentence and a header fix.5735a53d51makes that row quote the owner's decision and adds a pen case to FR7's checks.1d75331846regenerates the comment-provenance lint baseline, which still listed the deletedItemSwipeLayer.tsx.5065ab42f6makes the two Item swipe stories define each swipe once, inuseMemo, with handlers that read the row'sitemKey.2e5dfab3ddmerges main24abd1df, which carries #9720's squash of36ebfcf220, #9261's squash of2c412cbe13and #11387's Codemod Verify fix. Two conflicts,createDragToSnapPoints.tsandcreateSnapDrag.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.tsandanimator.test.ts, take main's: this change carried an earlier copy of #9261's commit, which differs only in comments and test titles.a9db7aee51reads the swipe's options and its drag model throughuseCommittedRef, and the shared drag's Effect lists what it reads.4bf1e6c663corrects AST-057 and the runtime record:Item's deprecated path keeps one key forwarder and no click guard.0b2f06189fmerges main50beab9610, and the twono-icon-setsearch goldens are regenerated: main's 19 matches andcreateSwipe.975626a087changes only two tests: they read each frame against the moves the page had handled, counted, not timed.3ab858d641makes 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.f3a428fc3emakes the flick test check the settle against the release the page read, not the script's speed.b411bbb546merges mainb300313cbdwith no conflict, and this change's own lines are as they were.e174cf254dmerges main7e8a670006the same way,fc77d8dd78merges mainf5b5f96604,96a2ee31ebmerges mainca36b56789, andeeb975607amerges main2b85c722f9.3bce832f7fmerges main8e39a4a422, andb360a5ea5fmerges main96ea82334e.0722e453camerges main4beeb8a36b.c8e90a654dmerges main98d8401640.pnpm exec vitest run --project ui(every package's UI tests)sharedIdstest hit its 30 s limit while both gate jobs ran at oncepnpm exec vitest run --project node(scripts, codemods, the bundle guards)text-json-parity'stheme editor new, andactive-release's real-patch testpnpm lint:strict(includescheck:repo; strict ESLint,ASTRYX_STRICT_LINT=1),pnpm check:knowledge,pnpm check:component-import-boundariestsc, strict, on the codemod's output for a fixture, against this change's sourcesItemSwipeActions.a11y.chromium.spec.tsItemSwipePinchZoom.a11y.chromium.spec.tsItemAudit.a11y.chromium.spec.tsItemStateOverlay.a11y.chromium.spec.tsItemSwipeActions.interaction.browser.spec.tscreateDragToSnapPoints,hitArea, motion's 7360bcdec15(atd747726603; thenodeproject's run above covers244e56d143's own commit)pnpm review:pre244e56d143's tree over4ac0654230, which merges #9720's and #11054's heads with maind9d7b105f1Chromium 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 currentspec:AST-057DEC-7 decides the trackpad: "A trackpad swipes a row; a mouse drag does not."244e56d143:activestill paints itRed first:
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.353682ce1d, commit 2's tests fail. Under TypeScript 6.0.3, strict,tscreports 5 errors in the type tests.Swipeis not generic, and a handler that readsiddoes not fit() => void. Two expected errors never fire: an action with noid, 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.0d04d74ad1's browser test fails 3 of 3 on360bcdec15'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 onc0a060b20c'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 on0d04d74ad1'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.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.3ab858d641keeps 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 atd15e829480.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.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: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.
The same takes at
f8951e585ecame 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.jsonnames244e56d143. 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.Physical phones at
b411bbb546(spec:AST-094DEC-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 atb411bbb546and at244e56d143, the head the spec owner's swipe check passed. Each phone readversion.jsonon 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 thecore-item--swipe-actionsandcore-item--swipe-commitstories.b411bbb546against244e56d143b411bbb546against244e56d143b411bbb546against244e56d143b411bbb546against244e56d143On the stories,
b411bbb546reads each row fromitemKey, 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.e174cf254dthen merges main once more. That merge changesLayer/useLayer.tsx(#11258, #11337), one of the shared layer modules DEC-31 lists. It also changes two of this change's files,Popover.stories.tsxand the comment-provenance baseline, and five index files the rootindex.tsimports. So these runs do not carry toe174cf254d(spec:AST-094DEC-31).Physical phones at
e174cf254d(spec:AST-094DEC-31). The same phones ran the same gestures ate174cf254dand at244e56d143, the head the spec owner's swipe check passed. Each phone readversion.jsonon both previews. Each phone ran 2 takes per head in default motion and 1 with reduced motion, interleaved. The pages are the same as atb411bbb546.e174cf254dagainst244e56d143e174cf254dagainst244e56d143e174cf254dagainst244e56d143e174cf254dagainst244e56d143On 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.
fc77d8dd78then merges mainf5b5f96604. 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-094DEC-31). The same phones ran the same gestures atfc77d8dd78and at244e56d143, the head the spec owner's swipe check passed. Each phone readversion.jsonon both previews. Each phone ran 2 takes per head in default motion and 1 with reduced motion, interleaved. The pages are the same as atb411bbb546.fc77d8dd78against244e56d143fc77d8dd78against244e56d143fc77d8dd78against244e56d143fc77d8dd78against244e56d143fc77d8dd78fc77d8dd78fc77d8dd78On 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-094DEC-27) ran atfc77d8dd78in 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'sversion.jsonfirst. 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 ateeb975607a. A second run at that setting kept 12 of 12.96a2ee31ebthen merges mainca36b56789. That merge changesmotion/resolveMotion.ts, which this change'sSwipe/useSwipeAction.tsandcreateDragToSnapPoints.tsimport directly. It also changes three of this change's files:architecture:react-component-runtime, Core'spackage.jsonandmotion/README.md. So these runs do not carry to96a2ee31eb(spec:AST-094DEC-31).Physical phones at
96a2ee31eb(spec:AST-094DEC-31). A Pixel 8 and an iPhone 14 ran the same gestures at96a2ee31eband at244e56d143, the head the spec owner's swipe check passed. This Pixel is another unit than the one atfc77d8dd78, 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 atb411bbb546.96a2ee31ebagainst244e56d14396a2ee31ebagainst244e56d14396a2ee31ebagainst244e56d14396a2ee31ebagainst244e56d14396a2ee31eb96a2ee31eb96a2ee31ebOn 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'sversion.jsonat the end of the take.244e56d143's preview is the same immutable deployment the earlier takes read.The Android emulator set (
spec:AST-094DEC-27) ran at96a2ee31ebin the same 12 cells as atfc77d8dd78. Each take read the preview'sversion.jsonfirst. 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 ateeb975607a. A second run at that setting, on a second emulator of the same image, kept 12 of 12.eeb975607athen merges main2b85c722f9. 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 at96a2ee31ebdo not carry toeeb975607a, so both sets ran again there.Physical phones at
eeb975607a(spec:AST-094DEC-31). A Pixel 8 and an iPhone 14 ran the same gestures ateeb975607aand at244e56d143, the head the spec owner's swipe check passed. This Pixel is another unit than those at96a2ee31eb, with Chrome 157. The iPhone readversion.jsonon both previews. The pages are the same as atb411bbb546.eeb975607aagainst244e56d143eeb975607aagainst244e56d143eeb975607aagainst244e56d143eeb975607aagainst244e56d143eeb975607aeeb975607aeeb975607aOn 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-094DEC-27) ran ateeb975607ain the same 12 cells as atfc77d8dd78. Each take read the preview'sversion.jsonfirst. 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 build244e56d143. On the mail page, alternating the two builds, 5 of 89 loads ofeeb975607astalled, against 2 of 86 of244e56d143.3bce832f7fthen merges main8e39a4a422, whose538e297e57(#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. At3bce832f7f, 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 ateeb975607acarry to3bce832f7f, whose merge changes only generated files.b360a5ea5fthen merges main96ea82334e. That merge changes two of this change's files: the comment-provenance baseline, which a script writes, and thespec:AST-094record, 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 ateeb975607aacross that record change, so both sets ran again atb360a5ea5f.Physical phones at
b360a5ea5f(spec:AST-094DEC-31). A Pixel 8 and an iPhone 14 ran the same gestures atb360a5ea5fand at244e56d143, the head the spec owner's swipe check passed. Each phone is another unit than the one ateeb975607a. The Pixel runs Chrome 156, where that one ran 157. The iPhone readversion.jsonon both previews. The pages are the same as atb411bbb546.b360a5ea5fagainst244e56d143b360a5ea5fagainst244e56d143b360a5ea5fagainst244e56d143b360a5ea5fagainst244e56d143b360a5ea5fb360a5ea5fb360a5ea5fOn 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-094DEC-27) ran atb360a5ea5fin the same 12 cells as atfc77d8dd78. Each kept take read the preview'sversion.jsonfirst. 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.0722e453cathen merges main4beeb8a36b. 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 changesLink.tsx, where a long unbroken label now wraps inside its line (#11558). The device page and the Popover story importLinkthrough its@astryxdesign/core/Linkentry, which re-exports it. The device page uses it only for its case switcher, and no device cell uses the Popover story. It also changesContextMenu.tsx, where a menu measures its anchor from the anchor's containing block (#11576). List's stories importContextMenuthrough its@astryxdesign/core/ContextMenuentry, and no device cell uses them. A check then measured the device page's case-switcher links and swipe rows at0722e453caand atb360a5ea5f, in alternating passes. Each pass readversion.jsonand 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 newLinkstyles are live at0722e453ca: the root'smax-widthis 100% and the label'smin-widthis 0px. Atb360a5ea5fthey arenoneandauto. 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 ofb360a5ea5f, 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 newLinkstyles live at0722e453ca.c8e90a654dthen merges main98d8401640. 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 changesCheckboxInput.tsx, where a required box is no longer announced as invalid before an error (#11619).ListItem.tsximportsCheckboxInputdirectly, and renders it only for a row with atask. The Popover story imports it through its@astryxdesign/core/CheckboxInputentry, and no device cell uses that story. No device cell setstask. The same check then measured the device page atc8e90a654dand at0722e453ca, 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 readversion.jsonand 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 atc8e90a654d(D-20261114-037). It carries every other device result from0722e453ca, and requires nothing further on the device side.At
2c30980b27, an earlier head of this change: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:
c8e90a654d. So didtsc, ESLint, the baseline and knowledge checks andpnpm review:pre. Thenodeproject ran at96a2ee31eb. Each load run ran at the head it names.d15e829480is an earlier version of3ab858d641that 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.9e55b9bd23is an earlier merge of mainbef2f834aa, also not in this pull request;0b2f06189freplaces it.:1068) stopped with the harness'sFrameStarvationError. 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 andc8e90a654d'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. Atfc77d8dd78, WebKit failed 1: the busy-thread proof (:1068) stopped with the harness'sFrameStarvationError. 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.975626a087, the tracking tests failed 8 of 50 runs at2e5dfab3ddand 8 of 50 at9e55b9bd23. Each read one frame against a move the page handled just after it, at the same millisecond. One more batch at9e55b9bd23ran unpaired, since the matching2e5dfab3ddbatch failed to start. All 10 of its runs failed, mostly the lead check. With975626a087's spec and the old lead check, against9e55b9bd23's build, 11 of 50 runs failed. Each had fewer than 6 frames between 10 % and 70 % of the lead. Atd15e829480, 50 of 50 passed, with 4 to 12 frames there and starts within 19 ms. At3ab858d641, which keeps the 34 ms bound, it passes 30 of 30 under that load and 10 of 10 without it.3ab858d641: the old check failed 7 of 30 runs, andf3a428fc3e'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. At3ab858d641, CI's WebKit leg failed the old check once, with the settle starting at −652.3 px/s.uiproject: 4,905 pass in 231 files.nodeproject: 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-auditandstored-docs.fc77d8dd78's run failed the same 3. Ate174cf254d, the first run failed these 3 andbuild.core-on-demand, which read an exit code ofnull, not 0. Then main7e8a670006ande174cf254dran 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 intaught-core-imports. Pinned to 2 cores at2e5dfab3dd, with all 6 files running at once, oneinteractive-guardcase fails on main too. It isexperimental theme preview app: it fails 2 of 2 runs on main24abd1df, and 1 of 2 at2e5dfab3dd. The other 5 files pass there on both.tscreports 0 errors, and strict ESLint reports 0 errors.pnpm check:knowledgepass, andpnpm review:prereports 0 findings.eeb975607amerges main2b85c722f9, whose4da09b8d61(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.3bce832f7fmerges main8e39a4a422, whose538e297e57(docs(useChatDictation): add hook docs and a voice input example block #11237) changed the same three files again.b360a5ea5fmerges main96ea82334e, whose84a446b7e9(fix(MobileNav): side="auto" resolves the drawer edge in RTL and on first open #11227) changed the comment-provenance baseline, which a script writes.0722e453camerges main4beeb8a36b, which changes none of this change's files.c8e90a654dmerges main98d8401640, which changes none either. Atc8e90a654d, 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--checkpasses. Rerunning the script gives the same entries, and Prettier then formats the file byte for byte as committed.Codemod verify.
allow-manual-editapplies: the stories must teach onlyswipe(spec:AST-057DEP-0017,spec:AST-017FR29b) and define swipes once at module scope or inuseMemo(spec:AST-057DEC-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
5398a993c1against5735a53d51. Those bytes include #9720's and #9261's code, which main now holds. The later commits add no shipped code:List, never swiping: 211.7 KB → 215.9 KB up front (+4.2 KB).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.d9d7b105f1, a page with only a four-rowList: +2.4 KB up front, +48.5 KB once a row swipes.Public, as the owner decided (
spec:AST-057DEC-8, DEC-10):createSwipe, from@astryxdesign/core/Swipeand 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)}]});swipeonItemandListItem. Why: one prop takes the constructor's value.<ListItem label="Inbox" itemKey={message.id} swipe={mail} />SwipeAction<Id>,CreateSwipeOptions<Id>andSwipe<Id>. Why: each action has anid, andSwipe<Id>carries the ids, so an unknown id fails to compile.const archiveAction: SwipeAction<'archive'> = {id: 'archive', label: 'Archive', onActivate: ({itemKey}) => archive(itemKey)};./Swipepackage entry. Why: it ships the swipe apart fromItem.import {createSwipe} from '@astryxdesign/core/Swipe';swipeActionsandswipeBehaviorprops, and theItemSwipeActionandItemSwipeActionstypes. Why:swipereplaces them.swipeActions={{trailing: [entry]}}becomesswipe={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).ItemSwipeActionVariantandItemSwipeBehaviorare kept (DEC-10). The replacement's direct authority stays AST-057 DEC-8.ItemSwipeActionVariantandItemSwipeBehavior, which the new types reuse. No default changes.astryx upgradegains the DEP-0017 codemod. Why: static uses migrate mechanically.astryx upgrade --from 0.7.14 --applyInternal; 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. ASwipevalue carries its host under aSymbol.forkey, so there is no registry. Why:Itemreads 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.tsxandSwipe/useSwipeAction.tsmoved fromItem/. 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, onetranslateanimation per part on one spring.spec:AST-094FR5 names it. Why: the animator's custom property animates on the main thread, and itstranslatemoves 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);pressHoldsDragmeans the opposite.spec:AST-057names it.setPressHeld(root, true)motion/uikit/swipeActions.ts: UIKit's measured swipe values, beside the other controls' values files.spec:AST-057andspec:AST-100name it.resolveMotion(root, swipeActions.tracking)Swipe/swipeHost.stylex.ts: the row root's style, onestylex.createroot.createSwipeandItem's deprecated path both apply it, and it holds no gesture or rendering code.swipeRoots.ts(a map from row roots to key handlers) is gone; the bridge the deprecated path already had serves both paths.swipeRelease.tsmoved intouseSwipeAction.ts, its only user.DeprecatedSwipeLayer.tsxis gone:ItemloadsSwipeActionsLayeritself, and the releasedcommitwarning lives inItem'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, asItemhas them.architecture:react-component-runtime's sentence onItem's swipe code says the same.spec:AST-057: the current-state impact namesSwipe/SwipeActionsLayer.tsx, whichItemimports on its deprecated path, with why no existing module can hold it. A status phrase goes, and the implementation gap names FR10.spec:AST-094FR6: 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 internalstart: 'next-frame'(architecture:react-component-runtimeINV13, 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 citesspec:AST-057FR5 by its record, since a bare FR5 inside AST-094 names its own compositor rule. FR5 namescompositorSettle.tsand why the animator cannot play its settle, and the path list gains the module.spec:AST-057:onActivate's{id, itemKey},Swipe<Id>, and the ids rule. A verification row covers the ids and keys.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:
Earlier rounds:
Records edited:
spec:AST-057: the readiness cell and the current-state impact drop the gap this change closes.ListItempassesswipeto itsItem. The current-state line says the release settles on the compositor. A new gap line says the deprecated props keep main's lazy load:Itemloads their layer withimport()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. Apath-applicability:v1block linkspackages/core/src/Swipe/**, the press-held attribute, the swipe constants, and the codemod with its test.spec:AST-094: its path list gainsSwipe/useSwipeAction.tsand three Item test files. Their comments no longer cite its claims.spec:AST-100: its path list follows the swipe code fromItem/**toSwipe/**, and adds the swipe constants.component:ListItem(ListItem.spec.md): itsswipegap goes.Results: