Repository navigation
feat(List): animate row inserts, removals and moves through the animatedLayout handle - #8106
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
d91ce8c to
9795834
Compare
9795834 to
6a3b76c
Compare
There was a problem hiding this comment.
This pull request needs an engineering owner's decision before it can be approved: no current spec governs List's new hasAnimatedChanges and followingContent props, and the draft AST-094 FR8 (a move fades through under Reduce Motion) conflicts with the code keeping the slide (REDUCED_MOTION = 'keep'). An engineering owner can provide or identify the governing List spec, settle FR8 against 'keep', and record the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. Independently of that decision, these need changes:
- The diff carries the whole stack (17,607 authored lines); once the predecessor pull requests land it should contain only this pull request's two commits (998 lines).
- With
followingContent="moves", content below the list that layout did not move (for example a footer held bymargin-top: auto) is shifted by the list's height change and slides back (contentBelowinrowMotion.ts). - Row positions are recorded only on
Listrenders, so a layout change between renders (a rotation, a row growing on its own) replays as motion at the next render. - With
hasAnimatedChangesoff, everyListstill subscribes to(pointer: coarse)and reads every row's layout on each render.
[Automated review]
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| List | 🔴 17.4 kB (+12.0 kB) · 651 B CSS (+182 B) | — | ✓ · ✓ · — |
| Table | 🔴 112.8 kB (+11.8 kB) · 17.7 kB CSS (+163 B) | — | — · — · — |
| TableCell | 🔴 104.6 kB (+11.7 kB) · 17.4 kB CSS (+164 B) | — | — · — · — |
85 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TableHeaderCell | 🔴 104.1 kB (+11.7 kB) · 17.2 kB CSS (+166 B) | — | — · — · — |
| ContextMenu | 🔴 103.4 kB (+11.7 kB) · 17.0 kB CSS (+156 B) | — | — · — · — |
| Markdown | 🔴 175.1 kB (+11.7 kB) · 20.0 kB CSS (+167 B) | — | — · — · — |
| lab/TransferList | 🔴 103.1 kB (+11.5 kB) · 1.7 kB CSS (0) | — | — · — · — |
| lab/TransferListSelector | 🔴 110.0 kB (+11.5 kB) · 1.9 kB CSS (0) | — | — · — · — |
| CheckboxList | 🔴 65.6 kB (+11.0 kB) · 8.1 kB CSS (+130 B) | — | — · — · — |
| lab/CommentThread | 🔴 313.6 kB (+10.5 kB) · 2.4 kB CSS (0) | — | — · — · — |
| lab/Comments | 🔴 318.4 kB (+10.2 kB) · 2.5 kB CSS (0) | — | — · — · — |
| ListItem | 65.6 kB (+319 B) · 11.3 kB CSS (+153 B) | — | ✓ · ✓ · ✓ |
| CheckboxListItem | 66.6 kB (+317 B) · 11.3 kB CSS (+153 B) | — | — · — · — |
| MoreMenu | 88.3 kB (+77 B) · 17.1 kB CSS (+160 B) | — | — · — · — |
| DropdownMenu | 88.0 kB (+73 B) · 17.1 kB CSS (+160 B) | — | — · — · — |
| ContextMenuItem | 27.1 kB (+88 B) · 6.3 kB CSS (+43 B) | — | — · — · — |
| lab/Schedule | 100.4 kB (+87 B) · 3.9 kB CSS (0) | — | — · — · — |
| Selector | 94.5 kB (+6 B) · 17.2 kB CSS (+67 B) | — | — · — · — |
| DateTimeInput | 199.7 kB (+9 B) · 18.5 kB CSS (+63 B) | — | — · — · — |
| Tokenizer | 86.3 kB (+3 B) · 18.4 kB CSS (+67 B) | — | — · — · — |
| DateInput | 177.3 kB (+3 B) · 16.8 kB CSS (+66 B) | — | — · — · — |
| MultiSelector | 89.7 kB (+3 B) · 16.6 kB CSS (+60 B) | — | — · — · — |
| Pagination | 104.6 kB (+1 B) · 17.6 kB CSS (+59 B) | — | — · — · — |
| SideNav | 81.9 kB (+8 B) · 11.0 kB CSS (+52 B) | — | — · — · — |
| Typeahead | 75.0 kB (+6 B) · 12.4 kB CSS (+52 B) | — | — · — · — |
| AlertDialog | 96.5 kB (+5 B) · 14.0 kB CSS (+52 B) | — | — · — · — |
| Carousel | 61.1 kB (+6 B) · 10.6 kB CSS (+51 B) | — | — · — · — |
| SideNavCollapseButton | 53.1 kB (+4 B) · 9.7 kB CSS (+53 B) | — | — · — · — |
| Calendar | 63.2 kB (+7 B) · 10.2 kB CSS (+49 B) | — | — · — · — |
| SideNavItem | 62.3 kB (+11 B) · 10.8 kB CSS (+45 B) | — | — · — · — |
| TopNavMegaMenu | 61.6 kB (+5 B) · 11.5 kB CSS (+51 B) | — | — · — · — |
| BreadcrumbItem | 76.5 kB (+6 B) · 11.8 kB CSS (+49 B) | — | — · — · — |
| ChatSendButton | 52.7 kB (+9 B) · 9.6 kB CSS (+46 B) | — | — · — · — |
| FileInput | 64.8 kB (+6 B) · 10.9 kB CSS (+49 B) | — | — · — · — |
| Popover | 80.1 kB (+4 B) · 13.7 kB CSS (+51 B) | — | — · — · — |
| TopNavMenu | 66.5 kB (+6 B) · 10.9 kB CSS (+49 B) | — | — · — · — |
| AppShell | 82.2 kB (+8 B) · 13.1 kB CSS (+46 B) | — | — · — · — |
| IconButton | 52.2 kB (+8 B) · 9.6 kB CSS (+46 B) | — | — · — · — |
| MobileNav | 62.4 kB (+6 B) · 10.3 kB CSS (+48 B) | — | — · — · — |
| TopNav | 64.1 kB (+6 B) · 10.6 kB CSS (+48 B) | — | — · — · — |
| ComplexSelector | 66.4 kB (+7 B) · 11.7 kB CSS (+46 B) | — | — · — · — |
| DateRangeInput | 87.2 kB (+5 B) · 12.4 kB CSS (+48 B) | — | — · — · — |
| ChatComposerInput | 66.9 kB (+5 B) · 11.0 kB CSS (+47 B) | — | — · — · — |
| ChatComposerTokenElement | 66.9 kB (+5 B) · 11.0 kB CSS (+47 B) | — | — · — · — |
| CodeBlock | 67.0 kB (+4 B) · 11.0 kB CSS (+48 B) | — | — · — · — |
| DropdownMenuSubMenu | 65.2 kB (+7 B) · 9.7 kB CSS (+45 B) | — | — · — · — |
| NumberInput | 67.4 kB (+8 B) · 11.4 kB CSS (+44 B) | — | — · — · — |
| TableSelectionToolbar | 61.8 kB (+5 B) · 12.8 kB CSS (+47 B) | — | — · — · — |
| Toast | 89.9 kB (+7 B) · 10.0 kB CSS (+45 B) | — | — · — · — |
| TopNavHeading | 66.8 kB (+2 B) · 10.8 kB CSS (+50 B) | — | — · — · — |
| Button | 52.2 kB (+5 B) · 9.6 kB CSS (+46 B) | — | — · — · — |
| DialogHeader | 55.1 kB (+6 B) · 11.2 kB CSS (+45 B) | — | — · — · — |
| MobileNavToggle | 52.6 kB (+5 B) · 9.6 kB CSS (+46 B) | — | — · — · — |
| TextInput | 63.4 kB (+6 B) · 11.2 kB CSS (+45 B) | — | — · — · — |
| Stepper | 53.9 kB (+7 B) · 9.8 kB CSS (+43 B) | — | — · — · — |
| Banner | 54.3 kB (+3 B) · 10.2 kB CSS (+46 B) | — | — · — · — |
| ChatDictationButton | 52.8 kB (−1 B) · 9.7 kB CSS (+50 B) | — | — · — · — |
| ChatLayout | 55.5 kB (+4 B) · 10.2 kB CSS (+45 B) | — | — · — · — |
| Lightbox | 103.5 kB (+6 B) · 10.1 kB CSS (+43 B) | — | — · — · — |
| TimeInput | 154.0 kB (+2 B) · 15.8 kB CSS (+47 B) | — | — · — · — |
| ToggleButton | 53.1 kB (+6 B) · 9.7 kB CSS (+43 B) | — | — · — · — |
| ChatComposer | 68.9 kB (+3 B) · 11.5 kB CSS (+45 B) | — | — · — · — |
| ChatLayoutScrollButton | 52.8 kB (+3 B) · 9.8 kB CSS (+45 B) | — | — · — · — |
| DrawerHeader | 55.3 kB (+3 B) · 12.6 kB CSS (+45 B) | — | — · — · — |
| Thumbnail | 56.6 kB (+4 B) · 11.3 kB CSS (+44 B) | — | — · — · — |
| BaseTypeahead | 62.6 kB (0) · 10.6 kB CSS (+47 B) | — | — · — · — |
| Item | 16.3 kB (+2 B) · 5.5 kB CSS (+45 B) | — | — · — · — |
| DropdownMenuCheckboxItem | 21.5 kB (+3 B) · 6.6 kB CSS (+43 B) | — | — · — · — |
| DropdownMenuRadioItem | 21.5 kB (+3 B) · 6.6 kB CSS (+43 B) | — | — · — · — |
| RadioListItem | 63.2 kB (+4 B) · 10.1 kB CSS (+41 B) | — | — · — · — |
| SelectorOption | 19.6 kB (+1 B) · 6.1 kB CSS (+44 B) | — | — · — · — |
| TabMenu | 63.7 kB (+2 B) · 10.8 kB CSS (+42 B) | — | — · — · — |
| Timestamp | 23.2 kB (0) · 9.9 kB CSS (+44 B) | — | — · — · — |
| DropdownMenuItem | 20.7 kB (−1 B) · 6.3 kB CSS (+42 B) | — | — · — · — |
| TreeList | 42.7 kB (+1 B) · 5.6 kB CSS (+40 B) | — | — · — · — |
| SideNavHeading | 67.3 kB (−9 B) · 10.9 kB CSS (+45 B) | — | — · — · — |
| richtext/RichTextView | 271.7 kB (+14 B) · 2.3 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 292.0 kB (+11 B) · 2.6 kB CSS (0) | — | — · — · — |
| lab/CommentComposer | 139.5 kB (+10 B) · 1.9 kB CSS (0) | — | — · — · — |
| lab/EmojiPicker | 81.9 kB (+8 B) · 751 B CSS (0) | — | — · — · — |
| lab/TourStep | 86.4 kB (+8 B) · 590 B CSS (0) | — | — · — · — |
| lab/ChatEmojiPicker | 98.1 kB (+6 B) · 773 B CSS (0) | — | — · — · — |
| lab/ChatReactionBar | 99.3 kB (+4 B) · 1.1 kB CSS (0) | — | — · — · — |
| lab/DiffViewer | 78.7 kB (+3 B) · 2.1 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditorToolbar | 245.6 kB (+3 B) · 454 B CSS (0) | — | — · — · — |
| lab/ListInput | 96.8 kB (+2 B) · 1.6 kB CSS (0) | — | — · — · — |
| Collapsible | 26.2 kB (0) · 4.5 kB CSS (0) | — | — · — · — |
| PowerSearch | 276.8 kB (−279 B) · 23.6 kB CSS (+203 B) | — | — · — · — |
Package size: @astryxdesign/core 6.86 MB packed (+19.0 kB); no new dependencies.
API changes: core +2 · ~0 · −0
Committed API report behind this build: cli 19 rows, core 24 rows; run pnpm api:report.
2 API changes (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| + | core |
. · Components · component List |
prop animatedLayout?: AnimatedLayout |
<List animatedLayout={…} /> |
| + | core |
. · Components · component ListItem |
prop itemKey?: string | number |
<ListItem itemKey={…} /> |
Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.
Generated by PR Enrichment workflow | View full report
6a3b76c to
5df8024
Compare
There was a problem hiding this comment.
This pull request needs an engineering owner's decision before it can be approved: no current spec governs List's new hasAnimatedChanges and followingContent props, and the draft AST-094 FR8 (a move fades through under Reduce Motion) conflicts with the code keeping the slide (REDUCED_MOTION = 'keep'). An engineering owner can provide or identify the governing List spec, settle FR8 against 'keep', and record the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. Independently of that decision, these need changes:
- The diff carries the whole stack (18,305 authored lines); once the predecessors land, or after retargeting and rebasing onto main, it should contain only this pull request's two commits (1,191 lines).
- With
followingContent="moves", content below the list that layout did not move (for example a footer held bymargin-top: auto) is shifted by the list's height change and slides back. - The same transient
translatere-anchorsposition: fixedelements inside that content, so a fixed action bar jumps up the screen for about half a second. - Row positions are recorded only on
Listrenders, so a layout change between renders replays as motion at the next render. - With
hasAnimatedChangesoff, everyListstill subscribes to(pointer: coarse)and reads every row's layout on each render.
[Automated review]
5df8024 to
6ffa28d
Compare
6ffa28d to
84c1f76
Compare
There was a problem hiding this comment.
This pull request needs an engineering owner's decision before it can be approved: no current spec governs List's new hasAnimatedChanges and followingContent props, and the draft AST-094 FR8 (a move fades through under Reduce Motion) conflicts with the code keeping the slide (REDUCED_MOTION = 'keep'). An engineering owner can provide or identify the governing List spec, settle FR8 against 'keep', and record the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. Independently of that decision, these need changes:
- The diff carries the whole stack (18,321 authored lines); once the predecessors land, or after retargeting onto the stack's previous branch, it should contain only this pull request's two commits (1,191 lines).
- With
followingContent="moves", content below the list that layout did not move (for example a footer held bymargin-top: auto) is shifted by the list's height change and slides back. - The same transient
translatere-anchorsposition: fixedelements inside that content, so a fixed action bar jumps up the screen until the motion ends. - Row positions are recorded only on
Listrenders, so a layout change between renders replays as motion at the next render. - With
hasAnimatedChangesoff, everyListstill subscribes to(pointer: coarse)and reads every row's layout on each render.
[Automated review]
|
/approve-spec fe1f020 |
There was a problem hiding this comment.
Changes requested: the List row updates follow component:List FR12, and the glide-duration change carried from #10261 has an engineering owner's approval at this head, but two things need fixing first.
- Newly live check:
measureinlistLayoutUpdates.ts(L421-429) reads each near row's computed transform and rect after writing the previous rows' settles, whicharchitecture:react-component-runtimeINV18 rules out; read every near row's transform and rect in one pass, then write the settles, and take a settled row's top from its rect minus its own translation. - The diff is 2,513 authored lines because it carries #10261's separable 84-line glide-duration change; land #10261 first and merge
main, so this pull request is the 2,429-line List change, which its decomposition already clears.
CI has not run on this head because the pull request is a draft from a fork; once it is marked ready, a maintainer adds the ci:run label so CI runs.
[Automated review]
Settling a swiped row read the next row's transform after writing the row before it, and read every row's place after all the writes. One pass now reads each near row's translation and place, and then the settles are written. A settled row's place is its box less its own translation.
|
/approve-spec b79fde9 |
There was a problem hiding this comment.
Changes requested: the List row updates follow component:List FR12, but two things need fixing first.
- Miss:
measureinlistLayoutUpdates.tsstill reads layout after writing the settles, inrowsMeeting(elements, 0, height)(L468) and each target'smeasureBefore(L478-481), so a change with a swiped row near the view lays the page out once more before the commit, whicharchitecture:react-component-runtimeINV18 rules out; take the rows in view from the first pass, callmeasureBeforethere, then write the settles. - The diff is 2,633 authored lines because it carries #10261's separable 84-line glide-duration change; land #10261 first and merge
main, so this pull request is the List change alone.
CI has not run on this head because the pull request is a draft from a fork.
[Automated review]
|
/approve-spec 0ed2fe2 |
There was a problem hiding this comment.
Changes requested: the List row updates follow component:List FR12, but one thing needs fixing first.
- Miss:
measureinlistLayoutUpdates.tsstill reads layout after writing the settles, inrowsMeeting(elements, 0, height)(L468) and each target'smeasureBefore(L478-482), so a change with a translated row near the view, such as a swiped row, lays the page out once more before the commit (3 layouts instead of 2 in Chromium), whicharchitecture:react-component-runtimeINV18 rules out; read everything the change needs before the first settle is written.
The size now clears, since the glide-duration change landed on main. The stack line lists this pull request first, but #8139 does not yet contain this head, so this review covers #8106 alone. CI has not run on this head because the pull request is a draft.
[Automated review]
There was a problem hiding this comment.
Changes requested: the List row updates follow component:List FR12, but one thing needs fixing first.
- Miss:
measureinlistLayoutUpdates.tsstill reads layout after writing the settles, inrowsMeeting(elements, 0, height)(L468) and each target'smeasureBefore(L478-482), so a change with a translated row near the view, such as a swiped row, lays the page out once more before the commit (3 layouts instead of 2 in Chromium), whicharchitecture:react-component-runtimeINV18 rules out; read everything the change needs before the first settle is written.
The record edits have an engineering owner's approval for this head, which settles the spec side but not this fix. The stack line does not hold right now, because #8143 does not yet contain #8139's latest commit, so this review covers #8106 on its own; its size is not a blocker, since every file serves FR12. CI's test and build jobs have not run on this head because the pull request is a draft.
[Automated review]
This pull request makes List adopt the shared layout glide, so DEC-3 names it with Collapsible, TreeList, Table's row expansion and AppShell's content area. The merge of main took main's side of DEC-3, which lists only the components already on main.
|
/approve-spec 8c09b54 |
A row a swipe translated keeps its translation across the commit, so a change with a row swiped open lays the page out as often as one with none. A row that leaves settles after the commit, before any place is read again, so its exit still runs on its own box, in view, at no layout of its own. The glide its old, translated place gives it lands at once.
|
/approve-spec 06eacd7 |
There was a problem hiding this comment.
Changes requested: the List row updates follow component:List FR12, and the record edits have an engineering owner's approval for this head, but one thing needs fixing first.
- A row with its swipe actions showing that is removed by an update that also shifts it (for example a Delete that also adds a row above it) jumps 41 px down at once instead of gliding with its neighbours, because
landLayoutGlide(row)inlistLayoutUpdates.ts(L525) cancels the leaving row's whole glide, its vertical move included; keep the vertical part (for example by giving the module the row's place without its own translation) and add a test for it.
This pull request is the bottom of its stack and is reviewed on its own here. CI has not run on this head because the pull request is a draft.
[Automated review]
The module reads a swiped row's old place with its translation on it, so its glide adds that translation to the row's move in the list. A row that leaves now keeps only the vertical part of that glide, so a row removed by an update that also moves it glides with its neighbours instead of jumping. The swipe-away probe and its comment say what they check.
|
/approve-spec b710232 |
There was a problem hiding this comment.
Changes requested: the List row updates follow component:List FR12, but two exit sequences still move a removed row out of its place.
- A swiped-away row that is still exiting jumps sideways when another change lands in the same list (in Chromium, "Move Archive first" 30 ms into the exit starts its glide at
-166.763px 41px), becausekeepVerticalGlide(listLayoutUpdates.tsL295-306) rewrites only the glide's keyframes while the shared module's own record of that glide keeps the sideways offset; drop the sideways part where the module keeps the glide (or report the row's place without its own translation) and add a test with a second change during the exit. - Miss: a reorder that lands while a removed row is still exiting carries that row to the top of the list, with a mouse and a finger alike, because React re-inserts the moved rows after the row put back for its exit; keep each leaving row beside the row it left next to on later commits (
listLayoutUpdates.tsL503-518) and add a test for a reorder during an exit.
This is the bottom of its stack (#8106 → #8139 → #8143 → #8163), so the pull requests above it wait on these fixes. CI has not run on this head because the pull request is a draft.
[Automated review]
A second change while a swiped row exits restarted it sideways, because the List rewrote the glide's frames while the module's record of the glide kept the swipe's offset. The module's landLayoutGlideSideways now changes both together. A reorder while a row exits carried that row to the top of the list, because React moves only its own rows. Each leaving row now stays before the row that came after it, or last.
There was a problem hiding this comment.
Changes requested. The List row motion has current authority (component:List FR12), and an engineering owner approved the record edits at this head; two defects remain:
- A removed row that is still exiting moves with the row that followed it when a later change moves that row, because
keepLeavingInPlace(listLayoutUpdates.tsL248-256) re-anchors it to that row: in the swipe story, swiping Drafts away and pressing "Move Archive first" carries Drafts' exit to the top of the list instead of collapsing in place, so please anchor it to a neighbour that stays and add a unit case that moves the row after the leaving row. - Miss: each reorder with a crossing row lays the page out twice in its commit, because
markCrossingswritesdata-astryx-travelling(L414) between the list's own row reads and the shared module's batched read, and setting the marks in the microtaskmarkCrossingsalready queues (L416) leaves one layout (architecture:react-component-runtimeINV18).
Non-blocking: putBack's JSDoc sits above leavingPlaces (L190-198), so putBack has none.
This pull request is the bottom of its stack, so the pull requests above it land only after it is approved.
[Automated review]
|
/approve-spec f787f43 |
A removed row still exiting travelled with the row that came after it as it left, when that row moved. Each row that leaves, and each row still leaving, now goes after as many staying rows as came before it, so it stays where it showed whichever rows move around it. One pass over the rows replaces the put-back anchor and the later correction.
There was a problem hiding this comment.
Changes requested. The List row motion has current authority (component:List FR12), the record edits are owner-approved at this head, and a removed row that is still exiting now keeps its place when the rows around it move. One defect remains:
- Miss: each reorder with a crossing row lays the page out twice in its commit, because
markCrossingswritesdata-astryx-travelling(listLayoutUpdates.tsL393) between the list's row reads and the shared module's batched read; setting the marks in the microtaskmarkCrossingsalready queues (L395) leaves one layout (architecture:react-component-runtimeINV18).
[Automated review]
List.spec.md's verified_by keeps main's ListDividers spec beside this branch's two List update tests.
markCrossings set the travelling mark between the list's row reads and the module's batched read, so a reorder with a crossing row restyled and laid out the page again in its commit. It now sets the marks in the microtask it already queues, after the module's read and before the frame paints, and marks only a row that has a glide. A mark's end clears only its own mark, so a second reorder while a row rides keeps the new mark until the new glide ends.
There was a problem hiding this comment.
Changes requested. The List row motion has current authority (component:List FR12), and the record edits restate it, but two defects block approval:
- Regression: in a list with dividers and pressable rows, a row that moves across others now rides above them with no surface behind it, so the labels overlap during the glide, because
travellingStyles.row(ListItem.tsxL532) is composed before the divider tint style the merge ofmainadded (L535), which also setsbox-shadow; carry the travelling surface in a style composed afteroverDividers, asraisedSwipeRowcarries the travellingz-index. - Miss: each reorder with a crossing row lays the page out twice in its commit, because
markCrossingswritesdata-astryx-travelling(listLayoutUpdates.tsL393) between the list's row reads and the shared module's batched read; setting the marks in the microtaskmarkCrossingsalready queues (L395) leaves one layout (architecture:react-component-runtimeINV18).
The spec gate also needs an engineering owner's /approve-spec for this head, since the merge touched List.spec.md.
[Automated review]
The press layer's overDividers, composed after the travelling style, also sets box-shadow, so a travelling row in a list with dividers and pressable rows lost its surface, and its label drew over the rows it crossed. The travelling style now also sets the surface as a private custom property, and overDividers keeps it in each of its shadows. Every other row resets the property, so a nested row never inherits it.
|
/approve-spec 31e1ce3 |
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.
Both earlier findings are fixed on this head:
- In a list with dividers and pressable rows, a moved row now rides on the list's surface again: the divider tint style keeps the travelling surface in each of its shadows, and divider rows look the same as before at rest and on hover.
- A reorder with a crossing row no longer lays the page out a second time in its commit: the rows are marked after the shared motion reads the layout, and a later mark survives the end of an earlier glide.
The row motion follows component:List FR12 with spec:AST-105 and spec:AST-103 DEC-4, and the record edits carry an engineering owner's /approve-spec for this head. No blocking findings remain.
[Automated review]
Stack: #8106 → #8139 → #8143 → #8163
Batch: a behavior module, 3,450 authored lines: tests 2,332 (unit 1,119, browser 1,213), product code 927, stories 152, docs and records 39.
User need
On iOS, when a table's rows change, the others slide to their new places, so you see what changed. A List's rows jump in one frame.
Problem and solution fit
With an
animatedLayouthandle and anitemKeyon each row (component:ListFR12), an inserted row enters and a removed row collapses in place, inert and hidden from assistive technology. A row crossing others rides above them. The rows after a change and the content after the list glide, on one frame of the shared motion, for every pointer. Without anitemKeyor a handle, rows change at once.Current specification
component:ListFR12;spec:AST-105FR1–FR5;spec:AST-103DEC-4. List's readiness row andcomponent:ListItemlist the row updates anditemKeyas shipped, not yet the start and end content motion.Public delta and caller burden
<List animatedLayout={useAnimatedLayout({containerRef})}>with<ListItem itemKey={id}>, both optional.Design and alternatives
Evidence
iOS 26.2 simulator, touch, at an earlier head (0c59447):
A mouse in Chromium, without the handle (main) and with it:
Size (gzip, main → an earlier head): List +9,791 B JS and +143 B CSS; ListItem +254 B JS and +81 B CSS. Components on List add 8.4–9.7 KB JS, the module TreeList already ships.
Writing rubric results
R1 narration: none. R2 research: none. R3 evidence: both
verified_bylists add their new test files. R4 rejected alternatives: none. R5 change references: none. R6 open questions: none.Scope
Testing
What was run at 31e1ce3, a merge with main plus two fixes:
check:repo,check:knowledge,review:pre(3,450 authored lines, the batch row above), lint (0 errors), the core type check,test:ui(905 files, 22,152 tests) andtest:node(944 files, 17,011 tests) with no unhandled errors, and List, Item, motion, private-attribute and utility units (2,271). List's browser specs pass in Chromium twice (112 passed) and, with the motion specs, in the CI WebKit profile (180 passed; Chromium-only cases skip); List's accessibility contracts pass (21).Red-first in Chromium: with a row swiped open, "Move Archive first" lays the page out twice at 8c09b54 against once with none; now once with both. A row swiped away lays the page out 16 times, against 17 for the same swipe with no translation on the row. When "Move Archive first" lands 30 ms into a swiped row's exit, that row restarted its glide 232.6 px to the side and was carried to the top of the list; now it stays where it showed. A leaving row also went with the row after it when that row moved (Drafts slid to the top, from 82 px); now it keeps its place. A row deleted while the same update moves it up glides with its neighbours. A reorder with a row riding across others restyled and laid out the page 5 times in its commit, against 3 with the mark skipped; now equal. In a list with dividers the riding row had no surface (
box-shadow: none); now it has, and the dividers are pixel-identical to main at rest, hovered and pressed. Units for each fail without its fix. The earlier cases still pass: the first keyed row of a list with none, a row moved from first to last, an insert and a removal under StrictMode, and a re-render while rows glide.