Repository navigation
feat(List): createReorderable's handle option places the reorder handle and sets how it reveals - #11575
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.
Approval waits on an engineering owner's decision about the new handle option, and one fix is needed either way.
The option and its defaults are not part of the current reorderable-collections spec, so an engineering owner needs to approve or amend four things: the proposed createReorderable FR1 text and List record text, the per-collection default for an omitted isAlwaysVisible (an is… boolean with a third state), the room kept by rows that stay put, and ListInput keeping Remove shown beside an always-visible end handle. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.
Blocking
- In a numbered or bulleted reorderable List, a row that stays put does not keep the handles' room, because
ListItem.tsx:683skips rows after a marker and a pinned label sits 36 px before the others; this contradicts the changeset, the List record and the List docs, so extend the room to rows after a marker or narrow those three texts to lists without markers.
Non-blocking
- With always-visible start handles, TransferList's selected-panel heading sits 32 px before its labels.
Claims and files checked
- Claim: one
handleoption configures List, TransferList and ListInput alike. Verified (createReorderable.ts:90,ListItem.tsx:523-525,TransferList.tsx:655-657,ListInput.tsx:680-682). - Claim: a handle that always shows takes its own place, and a row that stays put keeps that room so labels line up. False in lists with markers (
ListItem.tsx:683; measured 48 px against 84 px); verified without markers (every label at 60 px). - Claim: with
isAlwaysVisible: falsethe handle shows on hover or focus, always under a coarse pointer, and hangs outside the content. Verified (ListReorderHandle.tsx:168-187; Chromium frames at both edges). - Claim: without the setting, List and TransferList show their handles and ListInput reveals them. Verified (
ListItem.tsx:524,TransferList.tsx:657,ListInput.tsx:682). - Claim:
placementdefaults to start; at the end an always-visible handle ends the row inside it and a hidden one hangs past the end. Verified (createReorderable.ts:62,ListReorderHandle.tsx:178-192; frames). - Claim: the handle stays the one element reordering adds, rendered at the end through a seam that is not exported. Verified (
Item.tsx:950; not exported from the Item entry or the package root;ListReorder.test.tsx). - Claim: the public delta is the new type and option only. Verified (built-surface comparison: two added rows).
- Claim: the handle keeps its name, focus ring, touch target and keys. Verified (
ListReorderHandle.tsx:435-441unchanged styles; FR4 tests). - Claim: ListInput's default hover state is unchanged. Verified (pixel-identical frames on base and head).
- Claim: an always-visible end handle in ListInput keeps Remove shown. Verified (
ListInput.tsx:1290-1294;ListInput.test.tsx). - Claim: the changed test expectations (disabled TransferList handle at half opacity, reorder-mode hint, rejected row changing only classes). Verified in the diff.
- Claim: the reported test runs pass. Partly re-run: the List reorder, Item, ListInput and TransferList unit suites pass (251 tests); the browser suites were not re-run.
- Claim: the added record text has no narration or project status. Verified.
- File
.changeset/reorder-handle-options.md: finding (marker lists). - File
apps/storybook/stories/List.stories.tsx: clear. - File
apps/storybook/stories/ListInput.stories.tsx: clear. - File
apps/storybook/stories/TransferList.stories.tsx: clear. - File
docs/specs/AST-103-reorderable/spec.md: owner decision (proposed FR1 text). - File
docs/specs/components/List/List.spec.md: owner decision; finding (marker lists). - File
packages/core/src/Item/Item.tsx: clear. - File
packages/core/src/Item/ItemTrailingContext.tsx: clear. - File
packages/core/src/List/List.doc.mjs: finding (marker lists). - File
packages/core/src/List/List.tsx: clear. - File
packages/core/src/List/ListItem.tsx: finding (rows after a marker get no room). - File
packages/core/src/List/ListReorderHandle.tsx: clear. - File
packages/core/src/List/__tests__/ListReorder.test.tsx: clear. - File
packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clear (it has no numbered-list case). - File
packages/core/src/List/__tests__/ListReorderMode.interaction.browser.spec.ts: clear. - File
packages/core/src/List/listReorderContext.ts: clear. - File
packages/core/src/index.ts: owner decision (new export). - File
packages/core/src/internal/reorder.ts: clear. - File
packages/core/src/reorderable/createReorderable.doc.mjs: clear. - File
packages/core/src/reorderable/createReorderable.ts: owner decision (new option). - File
packages/lab/src/ListInput/ListInput.doc.mjs: clear. - File
packages/lab/src/ListInput/ListInput.test.tsx: clear. - File
packages/lab/src/ListInput/ListInput.tsx: owner decision (Remove kept shown at the end). - File
packages/lab/src/TransferList/TransferList.doc.mjs: clear. - File
packages/lab/src/TransferList/TransferList.test.tsx: clear. - File
packages/lab/src/TransferList/TransferList.tsx: note (heading alignment). - File
packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clear.
bf26bcc to
f80dcc4
Compare
f926117 to
ab193b0
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the new handle option, and one fix is needed either way.
The option and its defaults are not covered by the current reorderable-collections spec, so an engineering owner needs to provide or approve the governing spec for four things: the proposed createReorderable FR1 text and List record text, the per-collection default for an omitted isAlwaysVisible (an is… boolean with a third state), the room kept by rows that stay put, and ListInput keeping Remove shown beside an always-shown end handle. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.
Blocking
- In a numbered or bulleted reorderable List, a row that stays put does not keep the handles' room because
ListItem.tsx:683skips rows after a marker, so a pinned label sits 36 px before the movable labels, contradicting the changeset, the List record andList.doc.mjs; extend the room to rows after a marker or narrow those three texts to lists without markers.
Non-blocking
- With always-shown start handles, TransferList's selected-panel heading sits 36 px before its labels (
TransferList.tsx:912). - A few new comments restate the code (
ListItem.tsx:522,List.tsx:500,TransferList.tsx:656,internal/reorder.ts:53); the inline comments suggest rewrites.
Claims and files checked
- Claim: one
handleoption withplacement('start'by default, or'end') andisAlwaysVisibleconfigures List, TransferList and ListInput. Verified (createReorderable.ts:47-90;internal/reorder.ts:54passes it to adapted lists). - Claim: a handle that always shows takes its own place, and a row that stays put keeps that room so labels line up. False in lists with markers (
ListItem.tsx:683; measured 80 px against 116 px); verified without markers (every label in one column). - Claim: a handle that does not always show appears on hover or focus, always under a coarse pointer, and hangs outside the row's content. Verified (
ListReorderHandle.tsx:437-446; at the start the head renders the base's rest state pixel for pixel; at the end it hangs past the row). - Claim: without the setting, List and TransferList always show their handles and ListInput reveals them. Verified (
ListItem.tsx:523-524,TransferList.tsx:657,ListInput.tsx:681-682). - Claim: at the end, an always-shown handle ends the row inside it, after Remove in TransferList and ListInput. Verified (frames;
ListInput.test.tsx,TransferList.test.tsx). - Claim: ListInput's always-shown end handle keeps Remove shown. Verified (
ListInput.tsx:1290; test). - Claim: the handle stays the one element reordering adds, rendered at the end through an internal seam that is not exported. Verified (
Item.tsx:950; not exported from the Item entry or the package root;ListReorder.test.tsx). - Claim: the public delta is the new type
ReorderHandleOptionsand the optionReorderableOptions.handle. Verified (built-surface comparison: two added rows). - Claim: List's and TransferList's handles now always show at the row's start, and ListInput keeps its hover reveal. Verified (frames; the ListInput hover frame is pixel-identical on base and head).
- Claim: no theming or accessibility change; the handle keeps its name, focus ring, touch target and keys. Verified (no theme rows in the delta; handle tests pass).
- Claim: the unit tests over List, Item, reorderable, ListInput and TransferList pass, 18 files and 420 tests. Verified (rerun on this head).
- Claim: the Playwright runs pass with the stated counts. Not rerun; browser frames measured the same geometry.
- Files:
.changeset/reorder-handle-options.md(blocking claim),docs/specs/components/List/List.spec.md(blocking claim; owner decision),packages/core/src/List/List.doc.mjs(blocking claim),packages/core/src/List/ListItem.tsx(blocking; comment),docs/specs/AST-103-reorderable/spec.md(owner decision),packages/core/src/reorderable/createReorderable.ts(owner decision),packages/core/src/index.ts(owner decision),packages/lab/src/TransferList/TransferList.tsx(non-blocking heading; comment),packages/core/src/List/List.tsx(comment),packages/core/src/internal/reorder.ts(comment),packages/lab/src/ListInput/ListInput.tsx(owner decision on Remove). - Files clear:
apps/storybook/stories/List.stories.tsx,apps/storybook/stories/ListInput.stories.tsx,apps/storybook/stories/TransferList.stories.tsx,packages/core/src/Item/Item.tsx,packages/core/src/Item/ItemTrailingContext.tsx,packages/core/src/List/ListReorderHandle.tsx,packages/core/src/List/listReorderContext.ts,packages/core/src/List/__tests__/ListReorder.test.tsx,packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts,packages/core/src/List/__tests__/ListReorderMode.interaction.browser.spec.ts,packages/core/src/reorderable/createReorderable.doc.mjs,packages/lab/src/ListInput/ListInput.doc.mjs,packages/lab/src/ListInput/ListInput.test.tsx,packages/lab/src/TransferList/TransferList.doc.mjs,packages/lab/src/TransferList/TransferList.test.tsx,packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts.
josephfarina
left a comment
There was a problem hiding this comment.
Thanks Ernest. One handle object that every collection reads is the right shape, and the start/end by always/hover matrix across List, TransferList and ListInput is great evidence. Rows that stay put now keep the label column in unmarked lists: in this PR's preview I measured every label in the Reorder With Pinned Rows story at 60px, on desktop and on a phone profile.
It isn't approvable yet, mostly because this adds stable public API, which is hard to change later (AST-103 FR6: stable from the start, no experimental path).
Why it can't ship yet
1. isAlwaysVisible has a hidden third state. Leaving it out means "the collection decides" (List and TransferList show, ListInput reveals). architecture:public-component-api INV3 says an is… boolean names only a true on/off with no third state, and INV20 prefers a variant to a boolean for a visual choice. ResizeHandle's isAlwaysVisible, which this mirrors, is a plain boolean with @default true. Once this ships stable, a rename needs a minor and a migration (INV9), so it is worth settling now.
2. The new option has no approved record yet. ReorderHandleOptions and ReorderableOptions.handle are new rows in the API delta, and INV25 sends them to a human. The FR1 text you added is the right place; it needs the AST-103 owner's (cixzhang) approval, which your description already asks for.
3. "A row that stays put keeps that room" isn't true in numbered or bulleted lists. ListItem.tsx skips the room for rows after a marker (!isAfterMarker), while a handle after a marker takes its place in the row. So a pinned label sits 36px before the movable labels. The changeset, the List record and List.doc.mjs all promise the room.
4. The outset/bleed problem from #11454 carries over to isAlwaysVisible: false lists, and the new end variant (reorderGutterAtEndReachingPadding) has it too: the 30px gutter comes out of the list's fixed width, so the rows stop 30px short of the host's end padding edge (List FR9).
Exact steps
- Settle the shape with the AST-103 owner. Two clean options: (a) ResizeHandle's shape, a plain boolean with one documented default for every collection; or (b) a closed union such as
visibility?: 'always' | 'hover', where leaving it out keeps each collection's default. Then updatecreateReorderable.ts,createReorderable.doc.mjs, the FR1 text and the collection docs to match. - Get the FR1 change approved in this PR.
- Give rows after a marker the same room. Put it between the marker and the content, not on the row (padding on the row would move the marker too). Or narrow the three texts to lists without markers. Add a unit case with
listStyle="decimal"and a pinned row. - Apply the
outset/bleedfix from #11454 to both gutter variants here. - Optional: drop the comments that restate
?? true(ListItem.tsx,TransferList.tsx,List.tsx,internal/reorder.ts) or make them say why. With always-shown start handles, TransferList's selected-panel heading sits left of the labels; consider insetting it by the handle column.
What I checked
- Unit tests at this head over List, Item, reorderable, ListInput and TransferList: 18 files, 420 tests pass. Core typecheck passes.
- Label columns measured in this PR's preview on desktop and on a phone profile.
f80dcc4 to
66cbf4e
Compare
ab193b0 to
12d9694
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the new handle option's shape, and one fix is needed either way.
An engineering owner's change request asks for the omitted isAlwaysVisible, which lets each collection decide and so gives an is… boolean a third state, to become either one boolean with one default for every collection or a closed union whose omission keeps each collection's default; this head still has the third state. Once the shape is settled, an engineering owner records approval of the reorderable-collections FR1, List and Item record text by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.
Blocking
- Outside a container that publishes its padding, a hanging end handle (
placement: 'end',isAlwaysVisible: false) reaches 22 px past the rows (List.tsx:213-215,ListInput.tsx:205), so the Reorder Handle Options story scrolls the page 6 px sideways and cuts the grip; give the end reach a0pxfallback so the list keeps that room inside its own box.
Non-blocking
- With always-shown start handles, TransferList's selected-panel heading sits 36 px before its labels (
TransferList.tsx:916).
The numbered-list alignment issue from the previous review is fixed.
Claims and files checked
- Claim: one
handleoption configures List, TransferList and ListInput alike. Verified (createReorderable.ts:86-91;ListItem.tsx:537-539;TransferList.tsx:657-659;ListInput.tsx:737-739;internal/reorder.ts:55passes it to adapted lists). - Claim: an always-shown handle takes its own place in the row, and a row that stays put keeps that room so labels line up. Verified (pinned rows at 60 px with the movable rows; the numbered card at 106 px for every label;
ListItem.tsx:701-719). - Claim: a handle that does not always show appears on hover or focus, always under a coarse pointer, and hangs outside the row's content. Verified in unmarked lists (
ListReorderHandle.tsx:449-457; frames); in List it sits in the row after a marker and underoutsetandbleed, as List's docs say. - Claim: a hanging handle takes its room from the container's padding at either edge. False at the end outside a container that publishes its padding: the list reaches 22 px past its rows and the page scrolls 6 px (
List.tsx:213-215). - Claim: without the setting, List and TransferList always show their handles and ListInput reveals them. Verified (
ListItem.tsx:537-538,TransferList.tsx:659,ListInput.tsx:738-739; frames). - Claim: at the end, an always-shown handle ends the row inside it, after Remove in TransferList and ListInput, and a hidden one hangs past the row's end. Verified (frames;
ListInput.test.tsx,TransferList.test.tsx). - Claim: ListInput's always-shown end handle keeps Remove shown. Verified (
ListInput.tsx:1350-1359; test). - Claim: the handle stays the one element reordering adds, rendered at the end through an internal seam that is not exported. Verified (
Item.tsx:955; not exported from the package root;ListReorder.test.tsx). - Claim: the public delta is the new type
ReorderHandleOptionsand the optionReorderableOptions.handle. Verified (built-surface comparison: two added rows). - Claim: List's and TransferList's handles now always show at the row's start, and ListInput keeps its hover reveal. Verified (frames; the ListInput hover frame is identical on base and head).
- Claim: a numbered list's row that stays put keeps its label in its neighbours' column. Verified (the staying row moves from 70 px to the others' 106 px).
- Claim: no theming or accessibility change; the handle keeps its name, focus ring, touch target and keys. Verified (no theme rows; one private custom property; handle tests pass).
- Claim (changeset): the option, its defaults and the room a staying row keeps. Verified, except the end reach outside a publishing container (above).
- Claim: the unit tests over the touched components pass. Verified on this head (18 files, 423 tests over List, Item, reorderable, ListInput and TransferList).
- Claim: the Playwright runs pass with the stated counts. Not rerun; Chromium captures measured the same geometry.
- Claim: the disabled TransferList case for a hover-revealed handle is back. Verified (
TransferListReorder.a11y.chromium.spec.ts; the Disabled story's argument). - Files with findings:
packages/core/src/List/List.tsxandpackages/lab/src/ListInput/ListInput.tsx(end reach; Remove shown with the end handle awaits the owner decision),packages/lab/src/TransferList/TransferList.tsx(heading),packages/core/src/reorderable/createReorderable.ts,packages/core/src/index.ts,docs/specs/AST-103-reorderable/spec.md,docs/specs/components/List/List.spec.md,docs/specs/components/Item/Item.spec.mdand.changeset/reorder-handle-options.md(owner decision). - Files clear:
apps/storybook/stories/List.stories.tsx,apps/storybook/stories/ListInput.stories.tsx,apps/storybook/stories/TransferList.stories.tsx,apps/storybook/stories/TransferListA11y.stories.tsx,packages/core/src/Item/Item.tsx,packages/core/src/Item/ItemTrailingContext.tsx,packages/core/src/List/List.doc.mjs,packages/core/src/List/ListItem.tsx,packages/core/src/List/ListReorderHandle.tsx,packages/core/src/List/listReorderContext.ts,packages/core/src/List/__tests__/ListReorder.test.tsx,packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts,packages/core/src/List/__tests__/ListReorderMode.interaction.browser.spec.ts,packages/core/src/internal/reorder.ts,packages/core/src/reorderable/createReorderable.doc.mjs,packages/lab/src/ListInput/ListInput.doc.mjs,packages/lab/src/ListInput/ListInput.test.tsx,packages/lab/src/TransferList/TransferList.doc.mjs,packages/lab/src/TransferList/TransferList.test.tsx,packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts.
66cbf4e to
81ec89b
Compare
12d9694 to
4ab27d7
Compare
|
Thanks, Joseph. Round 2 is up at 4ab27d7, rebased onto main.
Running the full suite also turned up two things, both fixed: the two Item seams (leading and trailing) became one, |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the new handle option's shape, and four fixes are needed either way.
The option and its defaults are not part of the current reorderable-collections spec, so an engineering owner needs to settle whether visibility: 'hover' stays (it names a value that resolves per device, which the public-API rules call 'adaptive'), whether placement or indicatorPosition names the row edge, the per-collection defaults, and the new internal item seam. An engineering owner then records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.
Blocking
- Miss: in
lower-alphaandlower-romanlists a row that stays put still sits 36 px before its neighbours' labels, because only the dot marker and List's number columns read the staying row's room (ListItem.tsx:203-208); give every counter that room and add alower-alphacase to the browser spec. - Outside a container that publishes its padding, a hanging end handle (
placement: 'end',visibility: 'hover') reaches 22 px past the rows and scrolls the page 6 px sideways (List.tsx:213-215,ListInput.tsx:205); give the end reach a0pxfallback so the list keeps that room inside its own box. ItemEdgeControlContextis a new internal shared module, imported by Item and ListItem, that no current record names, so it needs an owner decision that says why the existing item seams are not enough.- The description still documents
isAlwaysVisibleand anItemTrailingContextseam, while the code shipsvisibility: 'always' | 'hover'and oneItemEdgeControlContext; update it so the owners approve the shape that ships.
Non-blocking
- The option's JSDoc and the changeset say a hidden handle takes no space, but in List it sits in the row after a marker and under
outsetandbleed(createReorderable.ts:51-53).
The TransferList heading alignment from the previous review is fixed.
Claims and files checked
- Claim: one
handleoption configures List, TransferList and ListInput alike. Verified (createReorderable.ts:91;ListItem.tsx:539-541;TransferList.tsx:657-660;ListInput.tsx:737-739;internal/reorder.ts:55passes it to adapted lists). - Claim: the option takes
isAlwaysVisibleandplacement. False: the head takesvisibility: 'always' | 'hover'andplacement(createReorderable.ts:59,:65). - Claim: a handle that always shows takes its own place in the row, and a row that stays put keeps that room so labels line up. Verified without a marker, beside a disc and beside a number (every label at 84 px or 108 px); false beside a letter or a roman numeral (72 px against 108 px).
- Claim: a handle that does not always show appears on hover or focus, always under a coarse pointer, and hangs outside the row's content. Verified in unmarked lists (opacity 0 at rest, 1 on hover;
ListReorderHandle.tsx:166-191); in List it sits in the row after a marker and underoutsetandbleed, as List's docs say. - Claim: a hanging handle takes its room from the container's padding at either edge. False at the end outside a container that publishes its padding: the list reaches 22 px past its rows and the page scrolls 6 px (
List.tsx:213-215). - Claim: without the setting, List and TransferList always show their handles and ListInput reveals them. Verified (
ListItem.tsx:539-540,TransferList.tsx:659-660,ListInput.tsx:738-739; frames). - Claim: at the end, an always-shown handle ends the row inside it, and a hidden one hangs past the row's end. Verified (handles at 1228-1256 px inside rows ending at 1264 px; hovered handle at 1258-1286 px).
- Claim: ListInput's always-shown end handle keeps Remove shown. Verified (
ListInput.tsx:1354-1358;ListInput.test.tsx). - Claim: the handle stays the one element reordering adds, rendered at the end through an internal seam that is not exported. Verified (
Item.tsx:955; not exported from the package root;ListReorder.test.tsx); the description names that seamItemTrailingContext, which is false: it isItemEdgeControlContext. - Claim: the Item record defines the trailing seam beside
ItemLeadingContext. False: it defines oneItemEdgeControlContextin place ofItemLeadingContext. - Claim: the public delta is the new type
ReorderHandleOptionsand the optionReorderableOptions.handle. Verified (built-surface comparison: two added rows); its members arevisibilityandplacement, notisAlwaysVisible. - Claim: List's and TransferList's handles now always show at the row's start, and ListInput keeps its hover reveal. Verified (frames; the ListInput hover frame is identical on base and head).
- Claim: a numbered list's row that stays put keeps its label in its neighbours' column. Verified (every label at 106 px in the numbered card).
- Claim: no theming or accessibility change. Verified (no theme rows; one private custom property; handle tests pass).
- Claim: the unit tests over the touched components pass. Verified for the touched suites without Icon: 19 files, 575 tests pass at the head; the stated 23 files were not rerun as listed.
- Claim: the Playwright runs pass with the stated counts. Not rerun; Chromium captures measured the same geometry.
- Claim: the disabled TransferList case for a hover-revealed handle is back. Verified (
TransferListReorder.a11y.chromium.spec.ts), though the story argument ishandleVisibility: 'hover', notisHandleAlwaysVisible: false. - Claim (changeset):
placementandvisibility, their defaults, and the room a staying row keeps. Verified, except beside a letter or roman numeral and the end reach outside a publishing container (above). - Files with findings:
packages/core/src/List/ListItem.tsx(staying-row room beside letters and roman numerals; comment),packages/core/src/List/List.tsxandpackages/lab/src/ListInput/ListInput.tsx(end reach),packages/core/src/Item/ItemEdgeControlContext.tsxanddocs/specs/components/Item/Item.spec.md(seam without a record),packages/core/src/reorderable/createReorderable.ts,packages/core/src/index.ts,docs/specs/AST-103-reorderable/spec.mdanddocs/specs/components/List/List.spec.md(owner decision),.changeset/reorder-handle-options.mdandpackages/core/src/List/List.doc.mjs(room claim). - Files clear:
apps/storybook/stories/List.stories.tsx,apps/storybook/stories/ListInput.stories.tsx,apps/storybook/stories/TransferList.stories.tsx,apps/storybook/stories/TransferListA11y.stories.tsx,packages/core/src/Item/Item.doc.mjs,packages/core/src/Item/Item.tsx,packages/core/src/Item/ItemLeadingContext.tsx(removed),packages/core/src/List/ListReorderHandle.tsx,packages/core/src/List/listReorderContext.ts,packages/core/src/List/__tests__/ListReorder.test.tsx,packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts,packages/core/src/List/__tests__/ListReorderMode.interaction.browser.spec.ts,packages/core/src/internal/reorder.ts,packages/core/src/reorderable/createReorderable.doc.mjs,packages/core/src/theme/derivedVarRegistry.test.ts,packages/lab/src/ListInput/ListInput.doc.mjs,packages/lab/src/ListInput/ListInput.test.tsx,packages/lab/src/TransferList/TransferList.doc.mjs,packages/lab/src/TransferList/TransferList.test.tsx,packages/lab/src/TransferList/TransferList.tsx,packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts.
# Conflicts: # docs/specs/AST-103-reorderable/spec.md # packages/cli/test/__golden__/no-icon-set/docs-topics.json # packages/core/src/Icon/Icon.doc.mjs
|
🤖 (Posted by Cindy's agent.) How each point of the 2026-11-13 change request is addressed at this head (
The automated review at this head verified each of these against the code and found no blocking defect. |
On the first and last rows the handle's 44 px coarse-pointer target reached about 2 px past the list's top or bottom edge, so a control right against the list lost its outer taps. The handle's touch growth now stops at the list's box on the block axis, as the rows' own targets do.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, and it runs once this pull request targets main. An engineering owner's /approve-spec for this exact head covers the handle option, its record text and the disabled-handle dim, each point of josephfarina's earlier change request is mapped to this head and holds here, and no blocking issue remains.
Before it can land, the branch needs a merge with its base branch, which now conflicts in packages/core/src/List/ListReorderHandle.tsx (the base's finger-target fix) and docs/design/ordered-collection-reordering.md; that merge is a new head and needs a fresh review and /approve-spec. Optional cleanups: the comment at packages/core/src/internal/reorder.ts:54 restates the ?? below it, and the description's rubric list leaves out the isReorderHandle bullet that the List record gains.
Claims and files checked
Review mode: same-head; reason: none
changed rules (1): An owner's CHANGES_REQUESTED stays unresolved (maintainer-account dismissal and its worked examples); result: the dismissal of the earlier change request now counts, because a later comment from the maintainer account maps each of its four points to this head and each holds here
Claims (changeset):
createReorderabletakeshandlewithplacement('end'by default, or'start') andrevealBehavior('always'or'adaptive'): verified (createReorderable.ts:47-65,:89).- Without the option every handle stays where it is today: verified (
reorderRowLayoutdefaults to the end and'always'; the default stories render unchanged). - A handle that always shows takes its own place, and at the start a row that stays put keeps it: verified (
ListReorderHandle.tsx:407-408; unit caseListReorder.test.tsx:609). - An adaptive handle shows on hover or focus under a fine pointer and hangs outside the content, its target stopping at the content, with the room taken from the container's padding or the rows moving in: verified (
HANGand the gutter styles,ListReorderHandle.tsx:317-322; the browser case that checks the 4 px gap). - Under a coarse pointer, under
outsetorbleed, and after a marker at the start, it sits in its row: verified (ListReorderHandle.tsx:439; the coarse arms of the hang styles). - Without
revealBehavior, List and TransferList use'always'and ListInput'adaptive': verified (ListReorderHandle.tsx:435,TransferList.tsx:690,ListInput.tsx:737). - The layout ships with the reorderable object, so a List without it loads none: verified (
ListReorder.bundle.test.ts; ListItem reads the layout only through the session). - A disabled row's handle dims once to half, also outside the end slot: verified (the
revealandshownstyles; a probe reads 1 on the base and 0.5 here).
Claims (description):
- The handle had no settings, while ResizeHandle takes
isAlwaysVisibleandpillPlacement: verified (ResizeHandle.tsx:370,:381on the base). - One object configures List, TransferList and ListInput, and the adapted object keeps the owner's
handle: verified (internal/reorder.ts:55). - At the end with end content the handle joins the end slot, otherwise it is the row's own last child; at the start it is the row's first child, before its start content: verified (
ListReorderHandle.tsx:444; Item's leading control; unit cases). - The hang is 20 px, the 24 px target stops at the content, hidden handles keep their tab stop and reorder mode always shows them: verified (
HANGis the grip plus the target's reach; thearia-pressedarm ofreveal; unit case). - Rows that stay put line up after every marker kind: verified (
ListItem.tsx:312,:377,:404;Item.tsx:437). ItemTrailingContextcarries{control, edge}at version 2, and the one new module is the size helper: verified (ItemTrailingContext.tsx:32; the only new source file isinternal/reorderHandle.stylex.ts).- One StyleX module holds the handle sizes, its 44 px finger reach is tied to the touch-target minimum by a unit test, and the values match the earlier copies: verified (
reorderHandle.stylex.ts; its test; the strings match the base's constants). - The exports generator lists the new entry, so its check passes: verified (
scripts/sync-exports.js:242; the check passes at this head). - Two room classes read the list's published values: verified (
rowRoomStylesinListReorderHandle.tsx). - ListInput's start handle hangs before the first field, or takes a track when always shown, and field focus after Add skips only the handle: verified (
handleControls,shownHandleControls,firstFieldIn; unit case). - TransferList moves the selected panel's heading into the labels' column for start handles and keeps it during a search; Remove keeps the row end during a search: verified (
headingRoom; unit cases). - The reorder engine's shared key is version 2: verified (
listReorderContext.ts:49). - Every touch query is
(pointer: coarse): verified (every added media query). - A List without
reorderablegrows 32 B gzip, within the allowance: consistent with the code (only Item's edge test and the marker-room reads reach that page); not measured again. - The base line names an earlier merge with the base branch: true, but this head's later merge is not mentioned.
- Earlier change requests on outdated heads were dismissed as stale on 2026-11-18: true.
- The test lists name new unit and browser cases that pass: the cases exist as described; the unit suites passed in an earlier run at this head, and the browser counts are the author's runs.
- The comparison with the parallel draft pull request: not checked; it describes another pull request.
Files:
.changeset/reorder-handle-options.md: clearapps/storybook/stories/List.stories.tsx: clearapps/storybook/stories/ListInput.stories.tsx: clearapps/storybook/stories/TransferList.stories.tsx: clearapps/storybook/stories/TransferListA11y.stories.tsx: cleardocs/design/ordered-collection-reordering.md: cleardocs/specs/AST-103-reorderable/spec.md: cleardocs/specs/components/Item/Item.spec.md: cleardocs/specs/components/List/List.spec.md: clearpackages/core/package.json: clearpackages/core/src/Item/Item.doc.mjs: clearpackages/core/src/Item/Item.tsx: clearpackages/core/src/Item/ItemTrailingContext.tsx: clearpackages/core/src/List/List.doc.mjs: clearpackages/core/src/List/List.tsx: clearpackages/core/src/List/ListItem.tsx: clearpackages/core/src/List/ListReorderHandle.tsx: clearpackages/core/src/List/__tests__/ListReorder.bundle.test.ts: clearpackages/core/src/List/__tests__/ListReorder.test.tsx: clearpackages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clearpackages/core/src/List/listReorderContext.ts: clearpackages/core/src/List/listReorderEngine.tsx: clearpackages/core/src/__tests__/publicStyleXNamespaces.test.ts: clearpackages/core/src/index.ts: clearpackages/core/src/internal/reorder.test.tsx: clearpackages/core/src/internal/reorder.ts: non-blocking, the comment at line 54 restates the??below itpackages/core/src/internal/reorderHandle.stylex.test.ts: clearpackages/core/src/internal/reorderHandle.stylex.ts: clearpackages/core/src/privateAttributes/listReorder.stylex.ts: clearpackages/core/src/reorderable/createReorderable.doc.mjs: clearpackages/core/src/reorderable/createReorderable.ts: clearpackages/core/src/theme/derivedVarRegistry.test.ts: clearpackages/lab/src/ListInput/ListInput.doc.mjs: clearpackages/lab/src/ListInput/ListInput.test.tsx: clearpackages/lab/src/ListInput/ListInput.tsx: clearpackages/lab/src/TransferList/TransferList.doc.mjs: clearpackages/lab/src/TransferList/TransferList.test.tsx: clearpackages/lab/src/TransferList/TransferList.tsx: clearpackages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clearscripts/sync-exports.js: clear
…ed growth hitArea.ts exports its default growth toward 44 px as centeredGrowth, and the handle clamps that result to its list instead of computing its own, so a later change to how the shared hit area grows targets reaches the handle.
…op (#11600) * feat(List): a drop glides the rows into place with every pointer * fix(List): a mouse drop plays the finger's drop spring; the curve glide goes Per the owner's direction for this stack: a finger's drop keeps today's release spring from where its copy was let go, and a mouse drop now plays the same spring (it already tracks the release's velocity), so the drop glides under every pointer. The timed curve glide, rowMotion's duplicate curve helper and the AST-094, AST-105 and AST-103 rewrites go back to the base. A unit case checks the mouse drop's spring. Co-authored-by: ernestt <[email protected]> * fix(List): a moved row that changes its own layout glides from where its content was ListInput's first record alone carries the column labels, so a mouse drop that changes the first record moved its records' fields 22 px at the start of the glide. Each row's glide now adds the change in its handle's place inside the row, read at the pick-up and after the commit, so its content starts where it was shown. A Chromium case moves the first record (red before: 21.4 px; green after). The changeset says what changes: every drop glides where the primary pointer is fine; nothing changes where it is coarse. Two comments now say a mouse drop glides. Co-authored-by: ernestt <[email protected]> * docs(changeset): a coarse-pointer ListInput record that gains or loses the labels starts where its fields were --------- Co-authored-by: Cindy Zhang <[email protected]> Co-authored-by: ernestt <[email protected]>
…dle-options # Conflicts: # docs/design/ordered-collection-reordering.md # packages/core/src/List/ListReorderHandle.tsx
# Conflicts: # docs/specs/components/List/List.spec.md # packages/core/src/List/List.doc.mjs # packages/core/src/List/ListReorderHandle.tsx # packages/lab/src/ListInput/ListInput.tsx # packages/lab/src/TransferList/TransferList.tsx
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| lab/ListInput · Storybook | 100.3 kB (+733 B) · 1.3 kB CSS (+314 B) | 1,245 (+157) | — · ✓ · — |
| lab/TransferList | 143.2 kB (+850 B) · 1.4 kB CSS (+142 B) | — | — · ✓ · — |
| lab/TransferListSelector | 155.2 kB (+720 B) · 1.6 kB CSS (+139 B) | — | — · ✓ · — |
39 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| Markdown | 214.0 kB (+247 B) · 23.6 kB CSS (+44 B) | — | — · — · — |
| CheckboxListItem | 85.1 kB (+228 B) · 12.9 kB CSS (+43 B) | — | — · — · — |
| lab/Comments | 394.3 kB (+267 B) · 2.5 kB CSS (0) | — | — · — · — |
| ListItem | 84.2 kB (+218 B) · 12.9 kB CSS (+43 B) | — | — · — · — |
| charts/ChartTooltip | 231.2 kB (+239 B) · 451 B CSS (0) | — | — · — · — |
| lab/CommentThread | 387.4 kB (+236 B) · 2.4 kB CSS (0) | — | — · — · — |
| charts/Chart | 254.7 kB (+234 B) · 516 B CSS (0) | — | — · — · — |
| lab/TabBarMoreList | 107.6 kB (+233 B) · 1.8 kB CSS (0) | — | — · — · — |
| PowerSearch | 323.8 kB (+75 B) · 27.5 kB CSS (+49 B) | — | — · — · — |
| DropdownMenu | 136.4 kB (+71 B) · 19.9 kB CSS (+49 B) | — | — · — · — |
| ContextMenu | 109.9 kB (+70 B) · 19.8 kB CSS (+48 B) | — | — · — · — |
| Table | 129.3 kB (+57 B) · 21.4 kB CSS (+50 B) | — | — · — · — |
| MoreMenu | 136.7 kB (+56 B) · 19.9 kB CSS (+49 B) | — | — · — · — |
| TableHeaderCell | 110.9 kB (+57 B) · 20.2 kB CSS (+46 B) | — | — · — · — |
| BreadcrumbItem | 106.1 kB (+66 B) · 14.2 kB CSS (+34 B) | — | — · — · — |
| Selector | 124.6 kB (+59 B) · 19.9 kB CSS (+41 B) | — | — · — · — |
| TableCell | 111.0 kB (+45 B) · 20.4 kB CSS (+55 B) | — | — · — · — |
| richtext/RichTextEditorToolbar | 319.8 kB (+99 B) · 454 B CSS (0) | — | — · — · — |
| RadioListItem | 81.2 kB (+68 B) · 11.5 kB CSS (+29 B) | — | — · — · — |
| ContextMenuItem | 40.1 kB (+59 B) · 7.3 kB CSS (+37 B) | — | — · — · — |
| DropdownMenuCheckboxItem | 30.3 kB (+58 B) · 7.7 kB CSS (+36 B) | — | — · — · — |
| DropdownMenuSubMenu | 82.9 kB (+60 B) · 11.5 kB CSS (+34 B) | — | — · — · — |
| Item · Storybook | 21.6 kB (+56 B) · 6.2 kB CSS (+36 B) | 999 (+9) | — · ✓ · — |
| Pagination | 157.4 kB (+49 B) · 20.2 kB CSS (+39 B) | — | — · — · — |
| DropdownMenuRadioItem | 30.4 kB (+51 B) · 7.7 kB CSS (+36 B) | — | — · — · — |
| SelectorOption | 25.5 kB (+50 B) · 6.8 kB CSS (+36 B) | — | — · — · — |
| DropdownMenuItem | 29.5 kB (+45 B) · 7.1 kB CSS (+36 B) | — | — · — · — |
| lab/AudioPlayer | 242.4 kB (+70 B) · 1.8 kB CSS (0) | — | — · — · — |
| lab/MediaPlaybackRate | 232.6 kB (+58 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaTimeSlider | 232.6 kB (+58 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaCaptionsButton | 232.6 kB (+57 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaFullscreenButton | 232.6 kB (+57 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaTime | 232.6 kB (+57 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaVolume | 232.6 kB (+57 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaPlayButton | 232.6 kB (+56 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaSeekButton | 232.6 kB (+56 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/VideoPlayer | 239.9 kB (+50 B) · 2.1 kB CSS (0) | — | — · — · — |
| List | 19.7 kB (+26 B) · 810 B CSS (0) | — | — · ✓ · — |
| CheckboxList | 77.4 kB (+24 B) · 8.5 kB CSS (0) | — | — · — · — |
Package size: @astryxdesign/core 8.04 MB packed (+11.1 kB); no new dependencies.
API changes: core +2 · ~0 · −0
2 API changes (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| + | core |
. · Types · interface ReorderHandleOptions |
interface ReorderHandleOptions |
import type {ReorderHandleOptions} from '@astryxdesign/core' |
| + | core |
. · Types · interface ReorderableOptions |
handle?: ReorderHandleOptions |
import type {ReorderableOptions} from '@astryxdesign/core'; const x: ReorderableOptions = {handle: …} |
Wide change (shared styles: packages/core/src/internal/reorderHandle.stylex.ts): add ci:run-visual for Visual, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
|
/approve-spec 023d4de |
There was a problem hiding this comment.
Changes requested. The handle option and its record text are approved for this head, but this head also carries the mouse-drop glide merged in from #11600, and this pull request does not account for it yet.
- Desktop behavior change needs an owner decision:
listReorderEngine.tsx:2090-2094no longer limits the drop's spring to touch, so every mouse and trackpad drop in List, TransferList and ListInput now glides; either gate the glide to touch input again, or state in this description the touch-presentations line it follows (FR43) with desktop before and after results, as #11600's description did, so the engineering owner's/approve-specfor this head records the ruling. - The description no longer matches this head: it lists #11600 as a separate later pull request, calls the disabled-handle dim the one visible change, and ticks the box saying unrelated fixes were removed or split, while this head includes the drop glide.
The earlier engineering-owner change request was dismissed from another account; each of its points holds at this head, so it counts as resolved once these two findings are fixed. Two comment fixes are non-blocking: handleIn's doc now sits above handleInset (inline), and the open thread on internal/reorder.ts.
Claims and files checked
Review mode: same-head; reason: none
Claims (description and changesets):
createReorderabletakeshandlewithplacement('end'default) andrevealBehavior: verified,createReorderable.ts:46-65,:85-89.- Left out, handles stay where they are today: verified,
ListReorderHandle.tsx:461-489keeps the end slot beside end content and the row's last child otherwise. - Per-collection defaults (List and TransferList always, ListInput adaptive): verified,
ListReorderHandle.tsx:469,TransferList.tsx:690,ListInput.tsx:737. - Adaptive handles hang 20 px past the content, take room from the container's padding and move rows in by what is missing: verified,
ListReorderHandle.tsx:120-125,:339-430. - Coarse pointer,
outsetandbleed, and after a marker at the start, the handle sits in its row: verified,ListReorderHandle.tsx:473,:506-507. - Rows that stay put keep the room, after every marker kind: verified,
ListReorderHandle.tsx:434-449,ListItem.tsx:312,:377,:404,Item.tsx:422,:438. - One Item seam at version 2: verified,
ItemTrailingContext.tsx:26-36,Item.tsx:935-937. - The layout ships with the object, checked by a bundle test: verified,
List.tsx:467,ListItem.tsx:501,ListReorder.bundle.test.ts. - One set of handle sizes with unchanged values, held to the touch minimum by a test: verified,
reorderHandle.stylex.ts:15-26against the base's constants,reorderHandle.stylex.test.ts. - The exports generator lists the new internal entry: verified,
sync-exports.js:242,package.json:852. - A disabled row's handle dims once, to half opacity: verified,
ListReorderHandle.tsx:261-275,:691-693. - ListInput's field focus skips the handle; TransferList's heading moves into the labels' column and keeps it during a search: verified,
ListInput.tsx:476-487,TransferList.tsx:698-701. - The reorder engine key moves to version 2: verified,
listReorderContext.ts:49. - Size: the list page grows 32 B gzip without the feature: verified as reported; the List, ListItem and Item code those pages load is unchanged since the measurement.
- Round 5 rooms (20 px hang; 24, 16, 12 and 24 px rooms; ListInput 24 px; TransferList 24 px less the row inset): verified from the constants.
- Round 8: every Remove keeps the row end while a search pauses reordering: verified,
TransferList.tsx:806-813. - The stack is three pull requests merged in order, with the glide in #11600: false, #11600 is merged into this branch.
- One visible change for callers without the option: false, every mouse drop now glides.
- Unrelated fixes were removed or split: false, the drop glide is folded in.
- Handle-options changeset: verified against the code above.
- Drop-glide changeset (fine-pointer drops glide on the settle spring from the release's speed; coarse unchanged except ListInput's label row; Reduce Motion lands at once): verified,
listReorderEngine.tsx:2059-2121, the unit case atListReorder.test.tsx:1770and the ListInput case atListInputReorder.a11y.chromium.spec.ts:195.
Files:
.changeset/reorder-drop-glide.md: clear (finding 2 covers the description)..changeset/reorder-handle-options.md: clear.apps/storybook/stories/List.stories.tsx,ListInput.stories.tsx,TransferList.stories.tsx,TransferListA11y.stories.tsx: clear.docs/design/ordered-collection-reordering.md,docs/specs/AST-103-reorderable/spec.md,docs/specs/components/Item/Item.spec.md,docs/specs/components/List/List.spec.md: clear (approved for this head).packages/core/package.json,scripts/sync-exports.js: clear.packages/core/src/Item/Item.doc.mjs,Item.tsx,ItemTrailingContext.tsx: clear.packages/core/src/List/List.doc.mjs,List.tsx,ListItem.tsx,ListReorderHandle.tsx,listReorderContext.ts: clear.packages/core/src/List/listReorderEngine.tsx: blocking (desktop decision), and a misplaced doc comment.packages/core/src/List/ListReorderTouch.ts: clear (part of the glide).packages/core/src/List/__tests__/ListReorder.bundle.test.ts,ListReorder.test.tsx,ListReorderHandleOptions.interaction.browser.spec.ts: clear.packages/core/src/__tests__/publicStyleXNamespaces.test.ts,index.ts,internal/reorder.test.tsx: clear.packages/core/src/internal/reorder.ts: non-blocking comment (open thread).packages/core/src/internal/reorderHandle.stylex.ts,reorderHandle.stylex.test.ts,privateAttributes/listReorder.stylex.ts: clear.packages/core/src/reorderable/createReorderable.doc.mjs,createReorderable.ts: clear.packages/core/src/theme/derivedVarRegistry.test.ts: non-blocking, the new entries split an existing comment from its entry.packages/lab/src/ListInput/ListInput.doc.mjs,ListInput.test.tsx,ListInput.tsx,__tests__/ListInputReorder.a11y.chromium.spec.ts: clear.packages/lab/src/TransferList/TransferList.doc.mjs,TransferList.test.tsx,TransferList.tsx,__tests__/TransferListReorder.a11y.chromium.spec.ts: clear.
… stacking; comment fixes The re-grab case from the drop-glide review rides this branch now that the glide is merged into it. handleIn's doc sits above handleIn again, and the adapter's comment gives the reason, not the expression. Co-authored-by: ernestt <[email protected]>
|
/approve-spec 933cf6c |
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.
The handle option (placement and revealBehavior) and its record text are approved for this exact head, the folded-in mouse drop glide follows the touch-presentation record's rule for a gesture's release, and the description now states it with desktop before and after results. No blocking issue remains.
Two optional fixes:
- In
derivedVarRegistry.test.ts, the new reorder-variable block sits between the--_hit-border-bottomcomment and its entry; move it above that comment. - The description's writing rubric results leave out the List record's
isReorderHandlebullet.
Claims and files checked
Review mode: full; reason: author-not-engowner
Claims:
createReorderabletakeshandlewithplacement('end'default or'start') andrevealBehavior('always'or'adaptive'), and exportsReorderHandleOptions: verified:createReorderable.ts:46-65,:85-89;index.ts- Without the option, every handle stays where it is and shows as today: verified:
reorderRowLayoutdefaults (ListReorderHandle.tsx:461-489); unit case for the default end placement - A handle that always shows takes its own place; at the start a row that stays put keeps that place so labels line up: verified:
rowRoomStyles.atStart(ListReorderHandle.tsx:441); unit and browser cases - An adaptive handle shows on hover or focus under a fine pointer, hangs 20 px out so its 24 px target stops at the content, and takes its room from the container's padding, the rows moving in by what the padding lacks: verified:
HANG, gutter styles andmin(…, var(--container-padding-inline-start, 0px))(ListReorderHandle.tsx:120,:343-356); browser case for the 4 px gap - Under a coarse pointer, under
outsetandbleed, and after a list marker at the start, the handle sits in its row and those lists keep no hanging room: verified:isInRowandsitsInRows(ListReorderHandle.tsx:473,:506-507); coarse media queries - Omitted
revealBehaviormeans'always'in List and TransferList and'adaptive'in ListInput: verified:ListReorderHandle.tsx:469,TransferList.tsx:690,ListInput.tsx:737 - The handle's placement, reveal and room ship with the reorderable object; a List without it loads none, and a bundle test checks it: verified:
rowLayout/listLayouton the session (listReorderEngine.tsx);ListReorder.bundle.test.ts - A disabled row's handle dims once to half opacity, also outside the end slot: verified:
revealandshownstyles (ListReorderHandle.tsx:261-275); TransferList browser case at both ends - One Item seam:
ItemTrailingContextcarries the control and its edge at version 2, and Item renders it before or after its slots: verified:ItemTrailingContext.tsx:27-36,Item.tsx:936-941 - After a list marker, a row that stays put keeps the room for bullets, letters, Roman numerals, task checkboxes and numbers in the shared columns: verified:
ListItem.tsx:312,:377,:404,:630;Item.tsx:422,:438 - One constants module holds the grip and reach sizes, shared by Core's handle, ListInput and TransferList, with a unit test tying the finger reach to the minimum touch target; the export list includes it: verified:
internal/reorderHandle.stylex.ts, its test,package.json:852,sync-exports.js:242 - The sizes are unchanged by moving them into the module: verified: the module's values equal the base's handle constants (1rem,
max(4px, (24px - 1rem) / 2),(44px - 1rem) / 2) - ListInput focuses an added record's first field, skipping only a start handle: verified:
firstFieldInwithisReorderHandle(ListInput.tsx:476); unit case with a toggle-button first field - TransferList's selected heading moves into the labels' column for start handles and stays put during a search; Remove keeps the row end during a search: verified:
headingRoomand theisOrderinggate (TransferList.tsx:698); unit cases - The reorder engine's shared key moves to version 2: verified:
listReorderContext.ts:49 - A List without
reorderablegrows 32 B gzip and the reference pages 0 to 51 B, within the 0.3 KB limit: consistent with the code; not re-measured here - Two visible changes with default props: the disabled-handle dim and the mouse drop glide; no other prop, keyboard or announcement change: verified: default-path trace through List, ListItem, ListInput and TransferList
- Under a fine pointer every drop glides on the settle spring from the release velocity; a cancelled drag, reorder mode's moves and Reduce Motion still place rows at once: verified:
listReorderEngine.tsx:2090-2094against theanimatesgates at:1888and:2278; the animator completes at once under Reduce Motion on a fine pointer - A moved ListInput record that gains or loses the column labels glides from where its fields were: verified: handle insets in
rebase(listReorderEngine.tsx:2069-2075); ListInput Chromium case - A row grabbed again during its glide keeps no inline stacking or background: verified: unit case in
ListReorder.test.tsx - The glide follows the touch-presentation record's rule that a gesture's release settles on its spring under every pointer: verified: that record's FR43 and FR45 at the base
- The glide reverts the earlier curve glide and changes no record: verified: no curve helper or motion record in the diff;
ListReorderTouch.tschanges only its header - The option's shape and names match the parallel draft #12146: verified: #12146's
createReorderable.tsdeclares the sameReorderHandleOptions - Earlier change requests were dismissed as stale on 2026-11-18: verified: the dismissal event of 2026-11-18
- Writing rubric results list the changed records: incomplete: the List record's
isReorderHandleOwns bullet is not listed (non-blocking) - Test counts and runs reported in the description: not re-run here; the named new cases exist
- Changeset
reorder-handle-options: verified against the claims above - Changeset
reorder-drop-glide: verified: before, the mouse drop placed rows at once (baseanimatesgate); the coarse and Reduce Motion statements hold
Files:
.changeset/reorder-drop-glide.md: clear.changeset/reorder-handle-options.md: clearapps/storybook/stories/List.stories.tsx: clearapps/storybook/stories/ListInput.stories.tsx: clearapps/storybook/stories/TransferList.stories.tsx: clearapps/storybook/stories/TransferListA11y.stories.tsx: cleardocs/design/ordered-collection-reordering.md: clear (owner-approved)docs/specs/AST-103-reorderable/spec.md: clear (owner-approved)docs/specs/components/Item/Item.spec.md: clear (owner-approved)docs/specs/components/List/List.spec.md: clear (owner-approved)packages/core/package.json: clearpackages/core/src/Item/Item.doc.mjs: clearpackages/core/src/Item/Item.tsx: clearpackages/core/src/Item/ItemTrailingContext.tsx: clearpackages/core/src/List/List.doc.mjs: clearpackages/core/src/List/List.tsx: clearpackages/core/src/List/ListItem.tsx: clearpackages/core/src/List/ListReorderHandle.tsx: clearpackages/core/src/List/ListReorderTouch.ts: clearpackages/core/src/List/__tests__/ListReorder.bundle.test.ts: clearpackages/core/src/List/__tests__/ListReorder.test.tsx: clearpackages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clearpackages/core/src/List/listReorderContext.ts: clearpackages/core/src/List/listReorderEngine.tsx: clearpackages/core/src/__tests__/publicStyleXNamespaces.test.ts: clearpackages/core/src/index.ts: clearpackages/core/src/internal/reorder.test.tsx: clearpackages/core/src/internal/reorder.ts: clearpackages/core/src/internal/reorderHandle.stylex.test.ts: clearpackages/core/src/internal/reorderHandle.stylex.ts: clearpackages/core/src/privateAttributes/listReorder.stylex.ts: clearpackages/core/src/reorderable/createReorderable.doc.mjs: clearpackages/core/src/reorderable/createReorderable.ts: clearpackages/core/src/theme/derivedVarRegistry.test.ts: non-blocking: new block splits an existing comment from its entrypackages/lab/src/ListInput/ListInput.doc.mjs: clearpackages/lab/src/ListInput/ListInput.test.tsx: clearpackages/lab/src/ListInput/ListInput.tsx: clearpackages/lab/src/ListInput/__tests__/ListInputReorder.a11y.chromium.spec.ts: clearpackages/lab/src/TransferList/TransferList.doc.mjs: clearpackages/lab/src/TransferList/TransferList.test.tsx: clearpackages/lab/src/TransferList/TransferList.tsx: clearpackages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clearscripts/sync-exports.js: clear
| // The ::after layer adds it to its offset, so the band starts past the | ||
| // border. It is the layer's geometry, not a property a theme author sets. A | ||
| // theme changes the divider through `--border-width`, which this follows. | ||
| // A reorderable list's values for its rows' handle room: whether the |
There was a problem hiding this comment.
Non-blocking: this block lands between the --_hit-border-bottom comment above and its entry below ('--_hit-border-bottom'), so that comment now reads as if it describes --_reorder-shown. Move these lines above the // The border width a host draws… comment.
Maintainer merge. meta#11575 rewrote the same header on main: the merge keeps main's code and its new exports and @position text, keeps the header to its tags (@output now names every export, the handle option's placement included), moves the handle's behaviour to its own doc comment, and keeps the iOS measurement beside touchAction.
…eorderHandle (#13746) (#13749) * docs(List): consolidate iOS measured fact beside touchAction in ListReorderHandle * Merge branch 'main' into docs/list-reorder-handle-header-comment Maintainer merge. #11445 rewrote the header paragraph on main; the merge keeps main's tags and drops that whole paragraph, as this change intends, and keeps the iOS fact beside touchAction. * chore(changeset): a docs patch note for the ListReorderHandle header Maintainer edit. Core changed, so a changeset names it. * docs(List): one fact per sentence by touchAction; header tags only Maintainer edit, comment only. The iOS measurement is its own sentence beside touchAction, and the header's @output lists only the exports; the handle's behaviour moves to ListReorderHandle's own doc comment. * docs(List): @output names every export Maintainer edit, comment only: reorderListStyle and INSERTION_LINE_THICKNESS were missing from the list. * Merge branch 'main' into docs/list-reorder-handle-header-comment Maintainer merge. #11575 rewrote the same header on main: the merge keeps main's code and its new exports and @position text, keeps the header to its tags (@output now names every export, the handle option's placement included), moves the handle's behaviour to its own doc comment, and keeps the iOS measurement beside touchAction. * Merge branch 'main' into docs/list-reorder-handle-header-comment Co-authored-by: Cindy Zhang <[email protected]>
Reorder stack. #11445 (a
dragicon; the reorder handle is its grip alone, with a 24px target) is merged. #11600 (a drop glides the rows into place) was merged into this branch by its author, so this pull request now carries two changes:handleoption, withplacement('end'by default) andrevealBehavior(folds in feat(List): the reorder handle starts its row and shows on hover or focus #11454);User need
The reorder handle has no settings: an app cannot say where its grips sit or whether they always show, though ResizeHandle already takes
isAlwaysVisibleandpillPlacement. Collections need different defaults:Problem and solution fit
handleoncreateReorderable. One object configures List, TransferList and ListInput alike:createReorderable({onReorder, handle: {placement, revealBehavior}}). Without it, every handle stays where it is today.placement:'end'(the default) or'start'. At the end, with end content, the handle joins the end slot, as today; without end content it is the row's own last child. At the start it is the row's own first child, before its start content.revealBehavior:'always'or'adaptive'. Without it, each collection keeps its default: List and TransferList'always', ListInput'adaptive'.'always': the handle takes its own place in the row.'adaptive': where the primary pointer is fine, the handle shows while its row is hovered or holds the focus; where it is coarse ((pointer: coarse)), it always shows. Where it shows only on hover or focus, it takes no space and hangs outside the row's content, so the content keeps its place. It sits so that its 24px target stops at the row's content: the grip's far edge is 20px out, and the target's 24px. The list takes that room from its container's padding, and moves its rows in only by the room the padding lacks: all of it outside a container that publishes its padding, so no handle reaches past the list's host. Hidden, it keeps its tab stop; reorder mode always shows it.edge'outset'and'bleed', whose rows reach the container's padding edge, and after a list marker at the start, the handle always sits in its row. Those lists keep no hanging room, so FR9's edges hold.ItemTrailingContextnow carries{control, edge}(its shared-context version goes to 2), and Item renders the control before its slots or after them, unwrapped. The seam adds no module; the one new module is the handle size helper below.rowLayout,listLayout) in the reorder machinery, whichcreateReorderablecarries. A List withoutreorderableloads none of them; a bundle test checks it.internal/reorderHandle.stylex, which Core exports to Lab. StyleX cannot readutils/hitArea.tsMIN_TOUCH_TARGETat build time, so the module writes the finger's 44px out and a unit test holds it toMIN_TOUCH_TARGET.--_reorder-shown, switched by the coarse query) and their target's reach (--_reorder-reach); a row that stays put derives its room from those and its own inset.isReorderHandle). TransferList moves its selected panel's heading into the labels' column for start handles, and keeps it put while a search pauses reordering. Both read the owner'shandlethrough the adapted object.Trimmed to the owner's direction (13:11 PT)
max()and one equivalentcalc()nesting.@astryxdesign/core/internal/reorderHandle.stylex(grip,targetReach,touchReach). Core's handle, ListInput and TransferList read it. It replaces three copies of the same sizes (the 1rem box, the 24px target and the 44px finger reach) that each file had to keep in step; the values were the same, and the built stylesheets are identical. No existing module fits.internal/touchHitArea.stylexis the coarse-pointer hit band, not handle geometry, and StyleX constants need their own.stylex.tsmodule. List's record now defines the module (its ownership list, plus a verification row for the unit test).scripts/sync-exports.jslistsinternal/reorderHandle.stylex, sonode scripts/sync-exports.js --checkpasses andpnpm sync:exportskeeps the entry that ListInput and TransferList import.main); the one conflict, the task checkbox box inListItem.tsx, keepsmain's one-line-tall centred box and this PR'smarginInlineEndroom.Current specification
spec:AST-103(reorderable collections) changes in this pull request. Owner approval needed (cixzhang).ReorderableOptions.handleand states its shape, its'end'default and each collection'srevealBehaviordefault.component:Listchanges in this pull request. Owner approval needed (cixzhang). Itsspec:AST-103line keeps the trailing edge as the default and states the leading edge, the reveal, the hanging room, the cases where the handle sits in its row, and the room rows that stay put keep at the leading edge.component:Itemchanges in this pull request. Owner approval needed. It owns the edge control seam (ItemTrailingContext, version 2) and the room after a list marker.design:ordered-collection-reordering(co-owned by ernestt) allows a handle that stays hidden until hover or focus where the primary pointer is fine.architecture:public-component-apiINV25:ReorderableOptions.handleand the exportedReorderHandleOptionstype are decided by FR1 in this pull request. INV2: a prop that chooses how a component responds to input is named<thing>Behavior, with no input word in it, sorevealBehavior. INV3: the value that resolves per pointer is'adaptive', and leaving the option out keeps each collection's shipped default.spec:AST-110FR3), asItemTrailingContextdoes: the session now lays out its rows, so a List never reads a session from an earlier copy of Core that cannot.architecture:component-import-boundariesINV10: a List withoutreorderablestays within the 0.3 KB unused-feature limit (figures under Evidence).spec:AST-094FR13: the touch presentation keys on a coarse primary pointer, as the handle's layout does.Public delta and caller burden
createReorderabletakeshandle?: {placement?: 'start' | 'end'; revealBehavior?: 'always' | 'adaptive'};ReorderHandleOptionsis exported. Leaving it out changes nothing in where handles sit or when they show.Design and alternatives
'start'as the default: rejected by the AST-103 owner. The List record keeps the trailing edge, so existing lists do not move.isAlwaysVisible?: boolean: rejected. Leaving it out meant "the collection decides", a hidden third state (architecture:public-component-apiINV3). The union states each value.visibility?: 'always' | 'hover': rejected. INV2 names a prop that chooses how a component responds to input<thing>Behavior, with no input word such as "hover", and INV3 names the per-pointer value'adaptive'. feat(List): createReorderable's handle option places the reorder handle, at the row's end by default #12146 uses the same names.Evidence
Real Chromium, this branch's static Storybook build, at 2x; the phone is an iPhone 13 profile. The List and ListInput option stories sit in no container that publishes its padding, so their adaptive rows move in by the hanging room. Without the option, nothing changes: the default is the end and
'always', which #11445 shows.List: each placement and reveal behavior (Trash stays put; the adaptive shots have the pointer on Sent)
'end','always'(default)'start','always''end','adaptive''start','adaptive'In a Card,
handle: {placement: 'start', revealBehavior: 'adaptive'}: the hanging handle stays inside the card; underoutsetit sits in its row; after a marker it sits in its row, and Sent, which stays put, keeps the roompaddedflushoutsetListInput
'start','adaptive'(pointer on a record)'start','always''end','always'TransferList
'start','always''end','adaptive'(pointer on a row)Phone,
'start','adaptive': under a coarse pointer the handles show in their rowsSize.
ListReorder.bundle.test.tsbundles List and ListItem withoutreorderable: none of the handle's layout is in it, and the reorder machinery's bundle carries it. First-load JavaScript,pnpm size:pages --base <#11445's head> --page list=List --unused-on list(minified / gzip bytes):reorderable)INV10: the list page grows 32 B gzip without the feature, within its 307 B limit.
The List page's 32 B, and the menu and table pages' 44–51 B, are Item's and ListItem's part of the seam: the edge test in Item, and the room after a marker that rows read (a reset on each row and three reads). No handle style is among them.
Round 5
24px - var(--spacing-2). A browser test checks that the grip ends 4px before the label.outsetandbleed: there the handles sit in their rows, so the list publishes their room whenever they show. The Card story pins a row under every edge, and a browser test lines up its label underoutsetandbleed.Round 6
internal/reorderHandle.stylex.)internal/reorderHandle.stylexmodule is gone, since no record defines it (architecture:knowledge-contractsDEC-22). ListInput and TransferList keep their own constants, derived from the 1rem box and the target's reach, and SYNC comments in all three files name each other. The values are unchanged: the 20px hang, the 24px target, and the 44px finger target.Round 7
CodeBunny's three layout misses, each fixed:
--spacing-2), and starts in the labels' column.inRow's automatic start margin applies only to a handle that takes its place in the row. So end content no longer shifts between rows with and without a handle.The Locked story takes
placementandrevealBehaviorargs. A new TransferList browser test runs it under all four combinations, with a finger and with a mouse. Each run checks one row height, one Remove column, one label column, and, at the start, the heading in that column. On round 6's code, 5 of its 8 cases fail, by 8px and 16px. At this head all 21 TransferList and ListInput accessibility cases pass, and the 66 List interaction cases pass too.Round 8
reorderable. It fails on round 7's code and passes here.Compared with #12146
Cindy's lane carries the same option in #12146, built from #11454 and #11575 ("we'll keep one, yours first if it's complete"). This head matches it on every decision:
handle: {placement, revealBehavior},'end'by default,'always' | 'adaptive', each collection's default stated;ItemTrailingContextversion 2), and the layout in the reorder session.What this head adds: it sits on #11445's grip-only geometry, so Lab reads the handle's sizes from Core's shared constants instead of repeating 28 px and 30 px; a row that stays put keeps the room after every kind of list marker; and a bundle test checks that a List without
reorderablecarries none of the handle's layout.Reviews addressed
'end'default are hers, with feat(List): createReorderable's handle option places the reorder handle, at the row's end by default #12146's names; the List record keeps the trailing edge, and the start-move Changeset is gone; one new internal module for the shared handle sizes,internal/reorderHandle.stylex, which List's record defines (ItemTrailingContextversion 2); the glide came in with fix(List): a mouse drop plays the same settle spring as a finger's drop #11600, under Drop glide; the handle's styles ride the reorder session, a bundle test backs it, and the measured figure is above; two room classes; FR1 namesReorderableOptions.handle.outsetandbleedlists keep no hanging room, so they no longer shift, and FR9's edges hold; the handle sits in their rows.(pointer: coarse), as main's container reveal is.isReorderHandle), with a test whose first field is a toggle button.revealBehavioris a closed union with an'adaptive'value (INV2, INV3), decided in FR1.Earlier change requests on outdated heads were dismissed as stale by the repository owner's decision on 2026-11-18.
Drop glide (merged in from #11600)
User impact
Owner direction and the rule it follows
spec:AST-094FR43 says a part that follows a pointer's drag "follows a mouse, a pen, a trackpad and a finger alike … and a release from any of them settles on FR45's spring from the release velocity". A mouse drop is such a release, so it plays the settle spring, as a finger's does./approve-speccovers this head.This head replaces the timed curve glide that earlier rounds built:
Finger: a finger's drop keeps today's release spring, as the motion owner ruled on 2026-11-17 ("a finger drop follows iPhone behavior and keeps today's release spring").
Mouse: a mouse drop gets the same spring. The mouse path already tracks the release's velocity. The change is the drop's spring condition in
listReorderEngine.tsx(rebase): it no longer requires the finger's presentation.spec:AST-094FR45 with FR43 already says a gesture's settle plays its spring under every pointer.Reverted to the base: the curve glide,
rowMotion.ts's duplicate curve helper (the same timing asmotion/animatedLayout.ts), theListReorderTouch.tsand velocity-tracker removals, and the record rewrites ofspec:AST-094,spec:AST-105andspec:AST-103. No record changes.Re-grab during the glide: a row picked up again while its drop still glides, and released in place, keeps no inline stacking or background once it rests. A unit case in
ListReorder.test.tsxchecks it.Real-Chrome evidence (a7bde72 vs main, desktop mouse)
Hosted previews, Chromium, mouse drag and drop. Full frame strips and labels: https://github.com/vjeux/astryx/tree/15180e897436ec5937135173516ba4822338ee71 (
pr11600-labels.md).ListInput: a mouse drop that moves the first record (3329e0b vs a7bde72)
Only the first record shows the column labels. Strips and labels: https://github.com/vjeux/astryx/tree/6f531c1e38566a00833a51498e1fb6ecd2e28894 (
pr11600-listinput-labels.md).Scope
Components: createReorderable (
handle), List, ListItem, Item (edge seam), ListInput, TransferListFollow-up, not in this pull request: move the reorder-variable block in
derivedVarRegistry.test.tsabove the--_hit-border-bottomcomment (#13746).Testing
vitest run --project uiover core List, Item, Icon, internal, reorderable, Markdown and the derived-variable registry, and Lab ListInput and TransferList: 85 files, 2,313 passed. New:'start'makes the handle the row's own first child, before its slots, and the end slot keeps only the end content;'adaptive'fades the handle with its row, the row is the reveal container, and the hidden handle keeps its tab stop;'start'puts the handle in the first field's cell, before the field;'always'at the end keeps Remove's cell shown; Add focuses a first field that is a toggle button, not the handle;'start'puts the handle before the label; the selected panel's heading moves into the labels' column and keeps its place while a search pauses reordering;ListReorder.bundle.test.ts: the handle's layout is in the reorder machinery's bundle and not in a bundle of List and ListItem.playwright test --config=playwright.interaction.config.ts --project=chromium ListReorderHandleOptions ListReorderPointer ListReorderTouch ListReorderMode: 66 passed, on this branch's built Storybook. New (ListReorderHandleOptions):outsetandbleed, a row that stays put lines its label up with its neighbours';playwright test --project=chromium ListInputReorder TransferListReorder: 21 passed. New: a disabled TransferList row dims its label, Remove and handle once, to half opacity, with the handle at the end and at the start.check:knowledge,check:sync,check:changesets, andpnpm review:pre(0 findings, merge clean).Writing rubric results
Records:
docs/specs/AST-103-reorderable/spec.md(FR1, FR2 and its verification row),docs/specs/components/List/List.spec.md(thespec:AST-103line, the Owns bullet forinternal/reorderHandle.stylex, the Owns bullet for theisReorderHandletest, and its verification row),docs/specs/components/Item/Item.spec.md(two "Owns" bullets),docs/design/ordered-collection-reordering.md(the rest row).touchReachtoMIN_TOUCH_TARGET; the browser tests above check the List line's geometry.