Skip to content

feat(List): createReorderable's handle option places the reorder handle and sets how it reveals - #11575

Merged
ernestt merged 26 commits into
mainfrom
feat/reorder-handle-options
Nov 24, 2026
Merged

ernestt merged 26 commits into
mainfrom
feat/reorder-handle-options

Conversation

@ernestt

@ernestt ernestt commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Reorder stack. #11445 (a drag icon; 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:

  1. createReorderable's handle option, with placement ('end' by default) and revealBehavior (folds in feat(List): the reorder handle starts its row and shows on hover or focus #11454);
  2. the drop glide from fix(List): a mouse drop plays the same settle spring as a finger's drop #11600, under Drop glide below.

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 isAlwaysVisible and pillPlacement. Collections need different defaults:

  • List and TransferList: an ordering list is read for its order, so its grips always show.
  • ListInput: a record's controls stay quiet until the record is used.
  • Placement: some apps want the grip beside the content it moves, at the row's start; others follow a platform with a trailing reorder control, such as UIKit's editing rows, at the end.

Problem and solution fit

  • handle on createReorderable. 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.
    • Under 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.
  • Rows that stay put line up. At the start, a row that stays put keeps the place its neighbours' handles take, so every label starts in one column. After a list marker the room follows the marker: bullets, letters, Roman numerals, task checkboxes, and numbers in the shared number columns.
  • One Item seam. ItemTrailingContext now 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.
  • The layout ships with the object. Placement, reveal and room are functions of the reorder session (rowLayout, listLayout) in the reorder machinery, which createReorderable carries. A List without reorderable loads none of them; a bundle test checks it.
  • One set of handle sizes. Core's handle, ListInput and TransferList read the grip's 1rem box and the target's reach from one StyleX constants module, internal/reorderHandle.stylex, which Core exports to Lab. StyleX cannot read utils/hitArea.ts MIN_TOUCH_TARGET at build time, so the module writes the finger's 44px out and a unit test holds it to MIN_TOUCH_TARGET.
  • Two room classes, not eight. The list publishes whether its handles take a place (--_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.
  • A disabled row's handle dims once, to half opacity, as the row's label does. Inside the end slot the slot dims it, as today; outside it (a List row without end content, a start handle, ListInput's Remove cell) the handle now dims itself.
  • ListInput and TransferList. ListInput's start handle hangs before the first field (a track of its own when it always shows), and field focus after Add skips only the handle (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's handle through the adapted object.

Trimmed to the owner's direction (13:11 PT)

  • One size helper instead of three copies, per Cindy's direction, which supersedes Round 6's per-component constants. The values are unchanged: the core and Lab stylesheets built from this head carry the same declarations as the previous head, apart from whitespace inside max() and one equivalent calc() nesting.
  • The module: @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.stylex is the coarse-pointer hit band, not handle geometry, and StyleX constants need their own .stylex.ts module. List's record now defines the module (its ownership list, plus a verification row for the unit test).
  • Exports: scripts/sync-exports.js lists internal/reorderHandle.stylex, so node scripts/sync-exports.js --check passes and pnpm sync:exports keeps the entry that ListInput and TransferList import.
  • Base: merged with feat(Icon, List): a drag icon; the reorder handle is its grip alone, with a 24px target #11445's branch at ff5351e (which carries main); the one conflict, the task checkbox box in ListItem.tsx, keeps main's one-line-tall centred box and this PR's marginInlineEnd room.
  • No other change. The placement, target, reveal and room stay as they were.

Current specification

  • spec:AST-103 (reorderable collections) changes in this pull request. Owner approval needed (cixzhang).
    • FR1 names ReorderableOptions.handle and states its shape, its 'end' default and each collection's revealBehavior default.
    • FR2 adds that the handle's placement, reveal and room ship with the object; its verification row fails the handle's layout styles in a List bundle without the prop.
  • component:List changes in this pull request. Owner approval needed (cixzhang). Its spec:AST-103 line 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:Item changes 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-api INV25: ReorderableOptions.handle and the exported ReorderHandleOptions type 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, so revealBehavior. INV3: the value that resolves per pointer is 'adaptive', and leaving the option out keeps each collection's shipped default.
  • The reorder engine's shared key moves to version 2 (spec:AST-110 FR3), as ItemTrailingContext does: 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-boundaries INV10: a List without reorderable stays within the 0.3 KB unused-feature limit (figures under Evidence).
  • spec:AST-094 FR13: the touch presentation keys on a coarse primary pointer, as the handle's layout does.

Public delta and caller burden

  • createReorderable takes handle?: {placement?: 'start' | 'end'; revealBehavior?: 'always' | 'adaptive'}; ReorderHandleOptions is exported. Leaving it out changes nothing in where handles sit or when they show.
  • Two visible changes with default props:
    • a disabled row's handle outside the end slot dims to half opacity, as the row does;
    • where the primary pointer is fine (a mouse or trackpad), every drop glides the rows into place on the settle spring instead of landing at once (Drop glide below).
  • No other prop, keyboard or announcement change.
const reorderable = useMemo(
  () =>
    createReorderable({
      onReorder,
      handle: {placement: 'start', revealBehavior: 'adaptive'},
    }),
  [onReorder],
);
<List reorderable={reorderable}>{rows}</List>

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-api INV3). 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.
  • A second Item seam for the leading edge: rejected. One seam carries the edge.
  • Handle styles on List and ListItem: rejected. They would ship with every list; the session carries them instead.
  • Eight room classes, one per edge and pointer: replaced by two that read the list's published values.

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'
List, handles at the end, always shown List, handles at the start, always shown; Trash keeps the room
'end', 'adaptive' 'start', 'adaptive'
List, handles at the end, shown on hover, hanging past the row List, handles at the start, shown on hover, hanging before the row

In a Card, handle: {placement: 'start', revealBehavior: 'adaptive'}: the hanging handle stays inside the card; under outset it sits in its row; after a marker it sits in its row, and Sent, which stays put, keeps the room

padded flush outset numbered
Card, padded Card, flush Card, outset Card, numbered

ListInput

'start', 'adaptive' (pointer on a record) 'start', 'always' 'end', 'always'
ListInput, start, hover ListInput, start, always ListInput, end, always

TransferList

'start', 'always' 'end', 'adaptive' (pointer on a row)
TransferList, start, always TransferList, end, hover

Phone, 'start', 'adaptive': under a coarse pointer the handles show in their rows

List on a phone, start, hover: handles shown in their rows

Size. ListReorder.bundle.test.ts bundles List and ListItem without reorderable: 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):

Page (components) #11445 This branch Change
docs (Text, Heading, Link, Card, Divider, List) 230,985 / 75,959 231,045 / 75,984 +60 / +25
form (Button, IconButton, TextInput, CheckboxInput, Text, Heading, Card) 311,838 / 105,507 311,838 / 105,507 +0 / +0
menu (DropdownMenu, ContextMenu, Button, Text) 319,037 / 108,150 319,164 / 108,201 +127 / +51
table (Table, Text, Button) 349,076 / 119,697 349,203 / 119,741 +127 / +44
list (List, without reorderable) 49,814 / 18,463 49,874 / 18,495 +60 / +32

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

  • The hang is 20px (the spec owner's request): the grip's far edge sits 20px outside the row's content, so its 24px target stops at the content. The list's room is 24px, a padded row's 16px, a spacious row's 12px and a flush row's 24px; ListInput's hang room is 24px and TransferList's 24px - var(--spacing-2). A browser test checks that the grip ends 4px before the label.
  • A row that stays put keeps the room under outset and bleed: 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 under outset and bleed.
  • The engine's shared key is version 2.

Round 6

  • (Superseded by "Trimmed to the owner's direction" above: the sizes now live in one helper, internal/reorderHandle.stylex.)
  • Per-component constants (the spec owner's request): the shared internal/reorderHandle.stylex module is gone, since no record defines it (architecture:knowledge-contracts DEC-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:

  • TransferList, start and adaptive: core List already keeps the hanging handles' room while it reorders, so the rows no longer add their own on top. The labels now sit under the heading. While a search pauses reordering, core List keeps no room, so each row keeps it then, and nothing moves as the query changes.
  • TransferList, start and always: the heading is not a row, so it now reads the compact rows' inset (--spacing-2), and starts in the labels' column.
  • A hidden end handle that is its row's own child keeps its give-back: 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 placement and revealBehavior args. 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

  • Remove keeps the row end while a search pauses reordering, as without the option (CodeBunny). The clearance a row without a handle keeps for the handles' column at the end applies only while the list reorders. A unit test compares every Remove's classes during a search, with and without 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:

  • the shape and names: handle: {placement, revealBehavior}, 'end' by default, 'always' | 'adaptive', each collection's default stated;
  • an adaptive end handle beside end content stays the row's own child, after the end slot, so it covers no end content;
  • outside a container that publishes its padding, the rows move in by the hanging room;
  • a disabled row's handle dims once, also outside the end slot;
  • one Item seam (ItemTrailingContext version 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 reorderable carries none of the handle's layout.

Reviews addressed

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

  • Who: people who reorder a List, or Lab's ListInput or TransferList, where the primary pointer is fine: a computer with a mouse or trackpad, a touchscreen laptop included.
  • Before: there, a drop put the rows in their new places at once, while on a phone or tablet (a coarse primary pointer) every drop glided them there on the settle spring.
  • After: every drop glides where the primary pointer is fine too, on the same settle spring. The dropped row starts from where its copy was let go, at the release's speed, and the rows it passed glide from their old places. A ListInput record that gains or loses the column labels as it moves glides from where its fields were.
  • Unchanged: where the primary pointer is coarse, the drop's motion, except that a ListInput record that gains or loses the column labels now starts where its fields were, as it does with a mouse (in a container wider than 640 px, its first field starts about 22 px higher at the first frame after release); where it's fine, a cancelled drag (everything goes back at once), reorder mode's moves, and Reduce Motion (a drop still lands at once; the animator's plan decides it).

Owner direction and the rule it follows

  • The rule: spec:AST-094 FR43 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.
  • Owner direction: the owner directed this stack to keep the handle placement the design owner chose and the glide the motion owner wanted; that direction's /approve-spec covers 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-094 FR45 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 as motion/animatedLayout.ts), the ListReorderTouch.ts and velocity-tracker removals, and the record rewrites of spec:AST-094, spec:AST-105 and spec: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.tsx checks 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).

Case Just before release After release
main, mouse drop main, before release main, 12 ms after: already in place
this head, mouse drop head, before release head, 20 ms after head, 165 ms after head, 549 ms after: settled
main, Reduce Motion main reduced, before main reduced, 13 ms after
this head, Reduce Motion head reduced, before head reduced, 16 ms after
  • main: a mouse drop lands at once (settled in 7.5–12.1 ms).
  • This head: the dropped row springs from where it was released, with no overshoot. It's within 0.5 px of its place at 442–446 ms, and the rows it passed settle at 511–525 ms.
  • Reduce Motion: both land at once.
  • While dragging: the other rows behave as on main.
  • Finger, iPhone 14 (iOS 26.2): this head matches main, the same release spring. Six interleaved takes per build agree within 0.5 pt frame by frame, with no bounce.

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).

a7bde72, 34 ms after release this head, 34 ms after release
a7bde721: fields 22 px off head: fields where they were
  • First-record drop: a 22 px field jump at a7bde72, 0 px at this head. Fields stay aligned with their column labels throughout, with no overshoot; it settles in about 542 ms.
  • Unchanged: a drop that keeps the first record first, and the Core List cases.

Scope

Components: createReorderable (handle), List, ListItem, Item (edge seam), ListInput, TransferList

  • One capability is added.
  • Unrelated fixes, cleanup, and policy changes were removed or split. The drop glide is not split: its author merged fix(List): a mouse drop plays the same settle spring as a finger's drop #11600 into this branch, and it is disclosed in full under Drop glide.
  • Consumer docs, focused tests, and migration evidence ship with the feature.
  • Public text and artifacts contain no internal Meta context.

Follow-up, not in this pull request: move the reorder-variable block in derivedVarRegistry.test.ts above the --_hit-border-bottom comment (#13746).

Testing

  • vitest run --project ui over 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;
    • by default the handle stays at the end: in the end slot with end content, else the row's own last child;
    • after a list marker the handle follows the marker;
    • a row that stays put changes only its classes, and only at the start;
    • 'adaptive' fades the handle with its row, the row is the reveal container, and the hidden handle keeps its tab stop;
    • ListInput: '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;
    • TransferList: '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):
    • by default a handle always shows and ends its row, inside it;
    • at the start, it starts its row, and Trash, which stays put, keeps its label in the column;
    • at the start and at the end, an adaptive handle is hidden at rest, shows on hover, hangs outside the row, and the pointer reaches it;
    • in a padded and a flush Card, a hanging handle stays inside the card and nothing clips it;
    • at the start, the hanging grip ends 4px before the label, so its target stops at the row's content;
    • under outset and bleed, a row that stays put lines its label up with its neighbours';
    • a numbered row that stays put keeps the room after its marker;
    • under a finger, an adaptive handle shows in its row at the start and at the end.
  • 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.
  • Core and Lab typecheck, strict ESLint (no new warnings), Prettier, check:knowledge, check:sync, check:changesets, and pnpm 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 (the spec:AST-103 line, the Owns bullet for internal/reorderHandle.stylex, the Owns bullet for the isReorderHandle test, and its verification row), docs/specs/components/Item/Item.spec.md (two "Owns" bullets), docs/design/ordered-collection-reordering.md (the rest row).

  • R1 narration: none. Each change states what the system does, in the present tense.
  • R2 research: none.
  • R3 evidence: FR2's verification row names what fails; List's new verification row names the unit test that ties touchReach to MIN_TOUCH_TARGET; the browser tests above check the List line's geometry.
  • R4 rejected alternatives: none added to the records; the description lists them.
  • R5 change references: none.
  • R6 open questions: none.
  • R7 project status: none in the changed text.

@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 24, 2026 8:46pm UTC

Request Review

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

astracat-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 24, 2026, 9:03 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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:683 skips 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 handle option 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: false the 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: placement defaults 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-441 unchanged 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.

Automated review (maintainer link)

Comment thread packages/core/src/List/ListItem.tsx Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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:683 skips rows after a marker, so a pinned label sits 36 px before the movable labels, contradicting the changeset, the List record and List.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 handle option with placement ('start' by default, or 'end') and isAlwaysVisible configures List, TransferList and ListInput. Verified (createReorderable.ts:47-90; internal/reorder.ts:54 passes 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 ReorderHandleOptions and the option ReorderableOptions.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.

Automated review (maintainer link)

Comment thread packages/core/src/List/ListItem.tsx Resolved
Comment thread packages/core/src/List/List.tsx Resolved
Comment thread packages/core/src/internal/reorder.ts Resolved

@josephfarina josephfarina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

  1. 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 update createReorderable.ts, createReorderable.doc.mjs, the FR1 text and the collection docs to match.
  2. Get the FR1 change approved in this PR.
  3. 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.
  4. Apply the outset/bleed fix from #11454 to both gutter variants here.
  5. 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.

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 13, 2026
@ernestt
ernestt force-pushed the feat/reorder-handle-start branch from f80dcc4 to 66cbf4e Compare November 13, 2026 22:46
@ernestt
ernestt force-pushed the feat/reorder-handle-options branch from ab193b0 to 12d9694 Compare November 13, 2026 22:46
@ernestt
ernestt marked this pull request as ready for review November 13, 2026 22:49

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 a 0px fallback 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 handle option 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:55 passes 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 under outset and bleed, 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 ReorderHandleOptions and the option ReorderableOptions.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.tsx and packages/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.md and .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.

Automated review (maintainer link)

Comment thread packages/core/src/List/List.tsx Resolved
@ernestt
ernestt force-pushed the feat/reorder-handle-start branch from 66cbf4e to 81ec89b Compare November 14, 2026 00:44
@ernestt
ernestt force-pushed the feat/reorder-handle-options branch from 12d9694 to 4ab27d7 Compare November 14, 2026 00:44
@ernestt

ernestt commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, Joseph. Round 2 is up at 4ab27d7, rebased onto main.

  1. The option is now visibility?: 'always' | 'hover', your option (b). Left out, each collection keeps its default: List and TransferList 'always', ListInput 'hover'. FR1, the docs and the stories follow.
  2. FR1 and the List record text are in this pull request for cixzhang's approval.
  3. A numbered list's row that stays put keeps the room after its marker: Item pads its content after the marker by a private --_item-marker-room, which that row sets. Unit and browser tests cover it.
  4. outset/bleed at either edge: those rows keep their handles in the row now, so there's no gutter to lose.
  5. The comments that restated ?? true are gone or give the reason. TransferList's selected-panel heading now starts in its labels' column.

Running the full suite also turned up two things, both fixed: the two Item seams (leading and trailing) became one, ItemEdgeControlContext, because a provider per seam per row made Markdown's 100-deep list test exhaust the stack; and --_item-marker-room is documented on Item, where it is declared.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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-alpha and lower-roman lists 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 a lower-alpha case 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 a 0px fallback so the list keeps that room inside its own box.
  • ItemEdgeControlContext is 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 isAlwaysVisible and an ItemTrailingContext seam, while the code ships visibility: 'always' | 'hover' and one ItemEdgeControlContext; 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 outset and bleed (createReorderable.ts:51-53).

The TransferList heading alignment from the previous review is fixed.

Claims and files checked
  • Claim: one handle option 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:55 passes it to adapted lists).
  • Claim: the option takes isAlwaysVisible and placement. False: the head takes visibility: 'always' | 'hover' and placement (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 under outset and bleed, 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 seam ItemTrailingContext, which is false: it is ItemEdgeControlContext.
  • Claim: the Item record defines the trailing seam beside ItemLeadingContext. False: it defines one ItemEdgeControlContext in place of ItemLeadingContext.
  • Claim: the public delta is the new type ReorderHandleOptions and the option ReorderableOptions.handle. Verified (built-surface comparison: two added rows); its members are visibility and placement, not isAlwaysVisible.
  • 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 is handleVisibility: 'hover', not isHandleAlwaysVisible: false.
  • Claim (changeset): placement and visibility, 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.tsx and packages/lab/src/ListInput/ListInput.tsx (end reach), packages/core/src/Item/ItemEdgeControlContext.tsx and docs/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.md and docs/specs/components/List/List.spec.md (owner decision), .changeset/reorder-handle-options.md and packages/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.

Automated review (maintainer link)

Comment thread packages/core/src/List/ListItem.tsx Resolved
Comment thread packages/core/src/List/ListItem.tsx Resolved
@ernestt
ernestt marked this pull request as ready for review November 23, 2026 23:53
# 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
@cixzhang

Copy link
Copy Markdown
Contributor

🤖 (Posted by Cindy's agent.) How each point of the 2026-11-13 change request is addressed at this head (e5c4fa9a), under the repository owner's standing rule for stale change requests:

  1. isAlwaysVisible had a hidden third state. Replaced by a closed union, option (b) of the review: revealBehavior?: 'always' | 'adaptive' (createReorderable.ts L47–L65). Leaving it out keeps each collection's documented default: 'always' in List and TransferList, 'adaptive' in ListInput (TransferList.tsx L690, ListInput.tsx L737). The name follows the <thing>Behavior rule for a prop that chooses how a component responds to input.
  2. The new option had no approved record. The FR1 text and the new API rows are approved for this exact head: /approve-spec e5c4fa9a.
  3. A row that stays put didn't keep the room in numbered or bulleted lists. After a marker, the handle sits inside the row (ListReorderHandle.tsx L438–L450), and a row without a handle keeps the same room between its marker and its content, for every marker kind (ListItem.tsx L312, L377, L404; Item.tsx L437). Tests: a numbered row that stays put keeps the room, so every label lines up, and the start-placement unit case.
  4. The outset/bleed gutter stopped short of the host's padding edge. Under outset and bleed the handle now sits inside its row, so the rows reach the padding edge (ListReorderHandle.tsx L439, L472). A row's start room reads the container's published padding (L335, L408), and the hanging room comes from that padding first (L317). Test: under each edge, a row that stays put keeps its neighbours' room, so every label lines up.

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.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet, 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):

  • createReorderable takes handle with placement ('end' by default, or 'start') and revealBehavior ('always' or 'adaptive'): verified (createReorderable.ts:47-65, :89).
  • Without the option every handle stays where it is today: verified (reorderRowLayout defaults 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 case ListReorder.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 (HANG and the gutter styles, ListReorderHandle.tsx:317-322; the browser case that checks the 4 px gap).
  • Under a coarse pointer, under outset or bleed, 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 reveal and shown styles; a probe reads 1 on the base and 0.5 here).

Claims (description):

  • The handle had no settings, while ResizeHandle takes isAlwaysVisible and pillPlacement: verified (ResizeHandle.tsx:370, :381 on 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 (HANG is the grip plus the target's reach; the aria-pressed arm of reveal; unit case).
  • Rows that stay put line up after every marker kind: verified (ListItem.tsx:312, :377, :404; Item.tsx:437).
  • ItemTrailingContext carries {control, edge} at version 2, and the one new module is the size helper: verified (ItemTrailingContext.tsx:32; the only new source file is internal/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 (rowRoomStyles in ListReorderHandle.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 reorderable grows 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: clear
  • apps/storybook/stories/List.stories.tsx: clear
  • apps/storybook/stories/ListInput.stories.tsx: clear
  • apps/storybook/stories/TransferList.stories.tsx: clear
  • apps/storybook/stories/TransferListA11y.stories.tsx: clear
  • docs/design/ordered-collection-reordering.md: clear
  • docs/specs/AST-103-reorderable/spec.md: clear
  • docs/specs/components/Item/Item.spec.md: clear
  • docs/specs/components/List/List.spec.md: clear
  • packages/core/package.json: clear
  • packages/core/src/Item/Item.doc.mjs: clear
  • packages/core/src/Item/Item.tsx: clear
  • packages/core/src/Item/ItemTrailingContext.tsx: clear
  • packages/core/src/List/List.doc.mjs: clear
  • packages/core/src/List/List.tsx: clear
  • packages/core/src/List/ListItem.tsx: clear
  • packages/core/src/List/ListReorderHandle.tsx: clear
  • packages/core/src/List/__tests__/ListReorder.bundle.test.ts: clear
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear
  • packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clear
  • packages/core/src/List/listReorderContext.ts: clear
  • packages/core/src/List/listReorderEngine.tsx: clear
  • packages/core/src/__tests__/publicStyleXNamespaces.test.ts: clear
  • packages/core/src/index.ts: clear
  • packages/core/src/internal/reorder.test.tsx: clear
  • packages/core/src/internal/reorder.ts: non-blocking, the comment at line 54 restates the ?? below it
  • packages/core/src/internal/reorderHandle.stylex.test.ts: clear
  • packages/core/src/internal/reorderHandle.stylex.ts: clear
  • packages/core/src/privateAttributes/listReorder.stylex.ts: clear
  • packages/core/src/reorderable/createReorderable.doc.mjs: clear
  • packages/core/src/reorderable/createReorderable.ts: clear
  • packages/core/src/theme/derivedVarRegistry.test.ts: clear
  • packages/lab/src/ListInput/ListInput.doc.mjs: clear
  • packages/lab/src/ListInput/ListInput.test.tsx: clear
  • packages/lab/src/ListInput/ListInput.tsx: clear
  • packages/lab/src/TransferList/TransferList.doc.mjs: clear
  • packages/lab/src/TransferList/TransferList.test.tsx: clear
  • packages/lab/src/TransferList/TransferList.tsx: clear
  • packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clear
  • scripts/sync-exports.js: clear

Automated review (maintainer link)

cixzhang and others added 4 commits November 24, 2026 09:41
…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
@cixzhang
cixzhang changed the base branch from feat/drag-icon-reorder-handle to main November 24, 2026 19:38
@cixzhang
cixzhang marked this pull request as draft November 24, 2026 19:38
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 933cf6c

Storybook · Sandbox · built from this PR's head

Modified components

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

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 023d4de

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 24, 2026

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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-2094 no 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-spec for 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):

  • createReorderable takes handle with placement ('end' default) and revealBehavior: verified, createReorderable.ts:46-65, :85-89.
  • Left out, handles stay where they are today: verified, ListReorderHandle.tsx:461-489 keeps 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, outset and bleed, 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-26 against 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 at ListReorder.test.tsx:1770 and the ListInput case at ListInputReorder.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.

Automated review (maintainer link)

… 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]>
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 933cf6c

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

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-bottom comment and its entry; move it above that comment.
  • The description's writing rubric results leave out the List record's isReorderHandle bullet.
Claims and files checked

Review mode: full; reason: author-not-engowner

Claims:

  • createReorderable takes handle with placement ('end' default or 'start') and revealBehavior ('always' or 'adaptive'), and exports ReorderHandleOptions: verified: createReorderable.ts:46-65, :85-89; index.ts
  • Without the option, every handle stays where it is and shows as today: verified: reorderRowLayout defaults (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 and min(…, var(--container-padding-inline-start, 0px)) (ListReorderHandle.tsx:120, :343-356); browser case for the 4 px gap
  • Under a coarse pointer, under outset and bleed, and after a list marker at the start, the handle sits in its row and those lists keep no hanging room: verified: isInRow and sitsInRows (ListReorderHandle.tsx:473, :506-507); coarse media queries
  • Omitted revealBehavior means '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/listLayout on the session (listReorderEngine.tsx); ListReorder.bundle.test.ts
  • A disabled row's handle dims once to half opacity, also outside the end slot: verified: reveal and shown styles (ListReorderHandle.tsx:261-275); TransferList browser case at both ends
  • One Item seam: ItemTrailingContext carries 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: firstFieldIn with isReorderHandle (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: headingRoom and the isOrdering gate (TransferList.tsx:698); unit cases
  • The reorder engine's shared key moves to version 2: verified: listReorderContext.ts:49
  • A List without reorderable grows 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-2094 against the animates gates at :1888 and :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.ts changes only its header
  • The option's shape and names match the parallel draft #12146: verified: #12146's createReorderable.ts declares the same ReorderHandleOptions
  • 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 isReorderHandle Owns 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 (base animates gate); the coarse and Reduce Motion statements hold

Files:

  • .changeset/reorder-drop-glide.md: clear
  • .changeset/reorder-handle-options.md: clear
  • apps/storybook/stories/List.stories.tsx: clear
  • apps/storybook/stories/ListInput.stories.tsx: clear
  • apps/storybook/stories/TransferList.stories.tsx: clear
  • apps/storybook/stories/TransferListA11y.stories.tsx: clear
  • docs/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: clear
  • packages/core/src/Item/Item.doc.mjs: clear
  • packages/core/src/Item/Item.tsx: clear
  • packages/core/src/Item/ItemTrailingContext.tsx: clear
  • packages/core/src/List/List.doc.mjs: clear
  • packages/core/src/List/List.tsx: clear
  • packages/core/src/List/ListItem.tsx: clear
  • packages/core/src/List/ListReorderHandle.tsx: clear
  • packages/core/src/List/ListReorderTouch.ts: clear
  • packages/core/src/List/__tests__/ListReorder.bundle.test.ts: clear
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear
  • packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clear
  • packages/core/src/List/listReorderContext.ts: clear
  • packages/core/src/List/listReorderEngine.tsx: clear
  • packages/core/src/__tests__/publicStyleXNamespaces.test.ts: clear
  • packages/core/src/index.ts: clear
  • packages/core/src/internal/reorder.test.tsx: clear
  • packages/core/src/internal/reorder.ts: clear
  • packages/core/src/internal/reorderHandle.stylex.test.ts: clear
  • packages/core/src/internal/reorderHandle.stylex.ts: clear
  • packages/core/src/privateAttributes/listReorder.stylex.ts: clear
  • packages/core/src/reorderable/createReorderable.doc.mjs: clear
  • packages/core/src/reorderable/createReorderable.ts: clear
  • packages/core/src/theme/derivedVarRegistry.test.ts: non-blocking: new block splits an existing comment from its entry
  • packages/lab/src/ListInput/ListInput.doc.mjs: clear
  • packages/lab/src/ListInput/ListInput.test.tsx: clear
  • packages/lab/src/ListInput/ListInput.tsx: clear
  • packages/lab/src/ListInput/__tests__/ListInputReorder.a11y.chromium.spec.ts: clear
  • packages/lab/src/TransferList/TransferList.doc.mjs: clear
  • packages/lab/src/TransferList/TransferList.test.tsx: clear
  • packages/lab/src/TransferList/TransferList.tsx: clear
  • packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clear
  • scripts/sync-exports.js: clear

Automated review (maintainer link)

// 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@github-actions github-actions Bot removed the needs:code-review High-risk change (new package/component/API) — needs human code review before merge label Nov 24, 2026
@ernestt
ernestt marked this pull request as ready for review November 24, 2026 21:18
@ernestt
ernestt merged commit db19fdd into main Nov 24, 2026
165 checks passed
cixzhang added a commit to Geervan/astryx that referenced this pull request Nov 24, 2026
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.
cixzhang added a commit that referenced this pull request Nov 25, 2026
…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]>
@github-actions
github-actions Bot deleted the feat/reorder-handle-options branch November 25, 2026 06:04

This branch was successfully deployed

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

Labels

ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot. lane:2 Astryx fix-loop lane 2 owns this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants