Skip to content

feat(List): createReorderable's handle option places the reorder handle, at the row's end by default - #12146

Draft
cixzhang wants to merge 13 commits into
lane2/drag-icon-handlefrom
lane2/reorder-handle-option
Draft

cixzhang wants to merge 13 commits into
lane2/drag-icon-handlefrom
lane2/reorder-handle-option

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Original work by @ernestt. This pull request carries Ernest's commits from #11454 and #11575 unchanged, plus commits on top, and supersedes both. Each new commit credits him (Co-authored-by). It is based on #12195, the stack's bottom (which supersedes Ernest's #11445 with his commit carried), and retargets to main when #12195 merges. #12195's commit is merged in, not rebased.

Owner: fix lane 2. Land path: draft → owner decision bound by Specs & Decisions (/approve-spec on this head) → CodeBunny → merge queue. #11454 and #11575 close as superseded once this merges.

Overlap checked: #11454, #11575, #11583, #11600, #11445, #12195, #11205, #11226, #10849, #11680, #11916, #11922, #11866 (the five reorder-stack PRs are Ernest's: this folds #11454 and #11575, sits on #12195 (which supersedes #11445); #11583's grip geometry follows as its own pull request and #11600 retargets onto this; #11205, #11226, #10849 and #11680 touch reorder or Item files in different hunks; #11916, #11922 and #11866 touch only a test, a doc or the root index)

User need

A reorderable collection's handle has no settings. An app cannot say where its grips sit or whether they always show. Collections need different defaults: an ordering list (List, TransferList) is read for its order, so its grips always show, while a record list (ListInput) keeps its controls quiet until a record is used. An app that follows a platform with a leading reorder control needs the handle at the row's start.

Problem and solution fit

  • createReorderable({handle: {placement, revealBehavior}}). One object configures List, TransferList and ListInput alike.
  • placement: 'end', the default and where the handle sits today, or 'start', before the row's start content. Without the option, no reorderable collection moves its handle on upgrade.
  • revealBehavior: 'always', the handle takes its own place in the row (at the start, a row that stays put keeps that room, so labels line up); or 'adaptive', where the primary pointer is fine the handle shows while its row is hovered or holds the focus, and where it is coarse it always shows. Where it shows only on hover or focus, it takes no space and hangs outside the row's content; outside a container that publishes its padding, the rows move in by that room instead of the handle reaching past the host. Without it, List and TransferList use 'always' and ListInput uses 'adaptive', as today. The name follows architecture:public-component-api INV2 and INV3 (a behavior prop, 'adaptive' resolving per pointer).
  • An adaptive end handle covers no end content. Beside end content (TransferList's Remove), an adaptive handle stays the row's own child, after the end slot, so where it hangs it gives back only the row's gap.
  • TransferList keeps one hang room. Core List pads the room of hanging handles; TransferList's heading moves in by the same room, and while a search pauses reordering each row keeps it, so nothing moves as the query changes. Lab still repeats core's 28 px and 30 px numbers with a sync note; reading them through the reorder session is a follow-up.
  • Today's geometry is kept. With no handle, every collection's handle sits exactly where it sits today: an end handle reaches 8 px into the row's inline inset, joins the end slot after end content, and ListInput keeps it in Remove's cell, on the same track.
  • A plain List pays about nothing. The handle's placement logic and its room styles, for the list and for a row that stays put, come with the reorderable's session. A List without reorderable loads none of them.

Current specification

  • spec:AST-103 FR1 owns createReorderable's options. This adds handle to FR1's contract and a Verification row for it. FR5 still holds: the handle is the one control reordering adds to a row, with its grip inside it (as feat(Icon, List): a drag icon; the reorder handle draws it through ComponentIcon #12195 words FR5).

  • The owner decision on the option, with 'end' as the default, is bound on this head by Specs & Decisions (/approve-spec).

  • component:List: the handle sits at the row edge handle.placement names, the trailing edge by default. Its room styles come with the session (architecture:component-import-boundaries INV7).

  • component:Item: the edge control seam is the existing ItemTrailingContext, its value widened to the control and its edge. No new module.

  • design:ordered-collection-reordering, rest row: its Allowed variation gains "Where the primary pointer is fine, the handle may stay hidden until its item is hovered or holds the focus", the design side of revealBehavior: 'adaptive'.

Public delta and caller burden

  • New exported type ReorderHandleOptions; new option ReorderableOptions.handle?: ReorderHandleOptions with placement?: 'start' | 'end' (default 'end') and revealBehavior?: 'always' | 'adaptive' (default per collection).
  • No change for callers who pass no handle: placement and visibility match today's.
  • One visible change for a disabled row: its handle dims with the row, once, to half opacity. Inside the row's end slot that is as today (the slot dims it); outside it (a List row without end content, ListInput) the handle showed at full opacity and now shows at half, like the row's label.
  • Internal only: ItemTrailingContext carries {control, edge} (shared-context version 2), so two Core copies never read each other's old value.
// A leading grip that appears on hover:
createReorderable({onReorder, handle: {placement: 'start', revealBehavior: 'adaptive'}});

Design and alternatives

  • Default 'end' over 'start'. 'start' would move every reorderable List, TransferList and ListInput grip on upgrade. 'end' keeps them where they are and makes the leading grip an opt-in.
  • Reuse ItemTrailingContext, not a new ItemEdgeControlContext. The seam already exists for one edge; widening its value (with the version bump) serves both edges with no new module, and keeps one provider per row, so a deeply nested list keeps its render depth.
  • Styles behind the session. List and ListItem apply whatever the session hands them, so the reorder-only styles leave the plain-List bundle.

Evidence

First load, real bundlers (Core built with its own build:esm at #11445's head b935ca9 and at this head; each reference page bundled by Vite 8 (Rolldown), Rolldown with inline common chunks off and at 64 KiB, and webpack 5 in production mode; React, React DOM and StyleX external; Δ is first-load JS gzip in bytes):

Page Vite 8 Rolldown (off) Rolldown (64 KiB) webpack 5 Chunks
List (List, ListItem) +143 +154 +157 +174 unchanged
docs (Text, Heading, Link, Card, Divider, List) +23 +29 +24 +25 unchanged
form (Button, IconButton, TextInput, CheckboxInput, Text, Heading, Card) 0 0 0 +14 unchanged
menu (DropdownMenu, ContextMenu, Button, Text) +146 +146 +143 +175 unchanged; motion/animator stays lazy
table (Table, Text, Button) +166 +143 +149 +154 unchanged; motion/animator stays lazy

Every delta is under architecture:component-import-boundaries INV10's 0.3 KB. None of it is handle styles: the handle's placement logic and every gutter and room style live in ListReorderHandle.tsx, which loads only with createReorderable (guarded by listReorderImports.test.ts). What remains is Item's ItemTrailingContext seam rendering the control before or after its slots (it reaches every page that renders Item), ListItem's {control, edge} value and its two session calls behind reorder != null, and three reads of the private --_item-marker-room custom property, which only the session sets.

Red first: on #11575's head, the three default-placement tests fail (List, ListInput, TransferList put the handle at the start). All pass on this head.

Real Chromium, 2x, desktop (mouse, 1280 px) and mobile (touch, 390 px), base b935ca9 → this head: every default is pixel-identical (0 differing px, each pair byte-identical): List (Reorderable), TransferList (Default) and ListInput (Tag Options). With revealBehavior: 'adaptive', the hovered handle and its focus ring sit inside the list's clip at both edges; TransferList's end handle sits 2 px clear of Remove; inside a Card, TransferList's labels line up with the panel heading, no handle is clipped and the panel does not scroll sideways; under touch every adaptive handle shows inside its row.

At c898291 (since then only the List record line changed), real Chromium: the TransferList reorder accessibility spec passes 7 of 7, including "dims a disabled row once: its label, Remove and handle at half opacity" and the adaptive case at half opacity on keyboard focus. The List reorder interaction specs pass 57 of 57, and the three defaults stay at 0 px against b935ca9 on desktop and mobile.

Defaults after merging the drag icon's pull request (#12195): re-measured at d52e03f against b935ca9 in real Chromium, desktop and mobile: List (Reorderable), TransferList (Default) and ListInput (Tag Options) differ by 0 px on every pair, with the same canvas sizes, so the images below still apply. After that, the disabled-row fix changed ListReorderHandle.tsx and ListItem.tsx; the farm run at c898291 below re-measured the defaults at 0 px.

Defaults, base → this head (byte-identical)

Base (b935ca9) This head
List (Reorderable) List, reorderable, base List, reorderable, this head
TransferList (Default) TransferList default, base TransferList default, this head
ListInput (Tag Options) ListInput tag options, base ListInput tag options, this head

revealBehavior: 'adaptive', this head (desktop, first row hovered)

placement: 'start' placement: 'end'
List List, start, adaptive List, end, adaptive
TransferList TransferList, start, adaptive TransferList, end, adaptive: handle clear of Remove
TransferList in a Card TransferList in a Card, start, adaptive TransferList in a Card, end, adaptive

Touch, placement: 'end', revealBehavior: 'adaptive': every handle shows, inside its row.

Touch, end, adaptive

Scope

Components: List, ListItem, Item, createReorderable, ListInput (lab), TransferList (lab)

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

Testing

  • vitest run --project ui on packages/core/src/List, Item, reorderable, internal/reorder.test.tsx, theme/derivedVarRegistry.test.ts, lab ListInput.test.tsx and TransferList.test.tsx: At the final head, the List, ListInput and TransferList suites pass (15 files, 306 tests), including ListInput's import guard; earlier, 17 files and 412 tests, including a red-first case for an adaptive end handle beside end content (566 across the wider set at an earlier head).
  • New List/__tests__/listReorderImports.test.ts: List and ListItem statically reach none of the handle, its styles, the session or createReorderable.
  • tsc -p packages/core/tsconfig.json --noEmit: clean. ESLint on changed files: clean. pnpm check:knowledge: aligned.
  • Browser specs updated for the 'end' default and the revealBehavior args (ListReorderHandleOptions, TransferListReorder; the ReorderInCard story sets placement: 'start' for its hanging-handle check).

Writing rubric results

Records changed: spec:AST-103 (FR1 contract and a Verification row), component:List, component:Item, and design:ordered-collection-reordering (the rest row's Allowed variation: "Where the primary pointer is fine, the handle may stay hidden until its item is hovered or holds the focus", which states the adaptive reveal as an allowed variation, in the present tense, with no project status). Present tense, no history or project status, one fact per sentence; each claim names its owner record.

ernestt and others added 4 commits November 13, 2026 16:43
…nd by default

createReorderable's handle option now defaults placement to 'end', where
the handle sits today, so no reorderable List, TransferList or ListInput
moves its handle on upgrade. 'start' puts it before the row's start
content.

- One seam for the handle at either edge: Item's ItemTrailingContext, its
  value widened to the control and its edge (shared-context version 2).
  No new module.
- The handle's placement logic and its room styles, for the list and for
  a row that stays put, come with the reorderable's session, so a List
  without reorderable loads none of them. A static-import test guards it.
- The reorder-handle-start changeset is folded into reorder-handle-options.

Co-authored-by: Ernest Tien <[email protected]>
@vercel

vercel Bot commented Nov 16, 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 17, 2026 12:59am UTC

Request Review

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

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

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

@cixzhang cixzhang added the lane:2 Astryx fix-loop lane 2 owns this label Nov 16, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec ed755d3

…revealBehavior

With no handle option, every collection's handle now sits exactly where it
sits today:

- A handle at the row's end reaches 8 px into the row's inline inset again.
- At the end of a row with end content, the handle joins the end slot after
  that content, with no row gap before it.
- ListInput keeps its end handle in Remove's cell for every pointer, on the
  same track and gap as today; only a start handle hangs before the record.
- TransferList's rows that stay put keep their Remove 20 px clear, as today,
  and a List row that stays put gets room only where handles start rows.

A hover handle outside a container that publishes its padding no longer
reaches past the host: the rows move in by the whole room.

The option is handle.revealBehavior: 'always' | 'adaptive', per the
behavior-prop naming rule. 'adaptive' shows the handle on hover or focus
where the primary pointer is fine, and always where it is coarse.

Co-authored-by: Ernest Tien <[email protected]>
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec b891900

@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 default handle now stays where it sits today, revealBehavior takes the behavior-option shape, and an adaptive handle no longer reaches past a host that publishes no padding; four issues remain.

Blocking

  • With revealBehavior: 'adaptive' at the end, a row with end content puts the handle in its end slot, where the -6px give-back makes it cover the last 6 px of that content, so a click on the edge of TransferList's Remove toggles reorder mode instead (ListReorderHandle.tsx:193-196).
  • In TransferList, revealBehavior: 'adaptive' takes the hang room twice, core List's 22 px gutter plus TransferList's own 20 px, so the selected labels sit 22 px past the panel heading (TransferList.tsx:664-676).
  • ListInput (ListInput.tsx:202-239) and TransferList (TransferList.tsx:168-200) still copy core's hang room and its 28 px and 30 px numbers instead of using the reorder session's gutterStyle, so a fix to core's room misses their users, as the TransferList item above shows.
  • The description still documents visibility: 'always' | 'hover', and its example does not typecheck against revealBehavior: 'always' | 'adaptive'.

Also needed before approval

  • Add the first-load gzip deltas for the docs, form, menu and table reference pages, since the shared Item module grows (the component import boundaries record, INV10).

Non-blocking: two comments now disagree with the code (ListInput.tsx:224-225, ListReorderHandle.tsx:106-107).

Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • Changeset: the handle option takes placement (end by default, where the handle sits today, or start) and revealBehavior (always or adaptive): verified (the option's type; the default handle measured at the same place on both trees in all three collections).
  • Changeset: an always-shown handle takes its own place, and at the start a row that stays put keeps that room: verified (every label, the pinned row's included, starts in one column).
  • Changeset: with adaptive on a fine pointer the handle shows on hover or focus and hangs outside the row's content, taking the room from the container's padding, and under a coarse pointer it always shows: false for a row with end content (blocking item 1); otherwise verified (frames; the coarse case by reading the styles).
  • Changeset: ListInput keeps an end handle in its Remove cell, as today: verified (same position on both trees).
  • Changeset: without revealBehavior, List and TransferList always show the handle and ListInput uses adaptive: verified.
  • Changeset and description: a List without reordering loads none of the handle's styles: verified (the static-import test passes).
  • Description: the earlier pull requests' commits are carried unchanged, plus one commit on top: the carried commits are unchanged; false on the count (two commits on top).
  • Description: one handle object configures List, TransferList and ListInput: verified (unit tests of all three).
  • Description: the option is {placement, visibility} with 'always' or 'hover', and its example uses visibility: 'hover': false (blocking item 4).
  • Description: end is the default and no collection moves its handle without the option: verified (measured).
  • Description: a hover handle shows on hover or focus, always under a coarse pointer, takes no space and hangs outside the content: false for a row with end content (blocking item 1).
  • Description: List and TransferList default to always and ListInput to the reveal: verified, under the new value names.
  • Description: a plain List pays about 129 B gzip: under the allowance at the commit it was measured on; the reference-page numbers the shared module needs are missing.
  • Description: the edge seam reuses the existing trailing context with a version bump and adds no module: verified.
  • Description: a new exported type and a new option: verified (two added core rows).
  • Description: red first on the earlier pull request's head: not re-run at this head.
  • Description: 19 test files and 566 tests pass: verified (567 at this head).
  • Description: the core typecheck is clean and the knowledge check is aligned: verified; ESLint not run.
  • Description: browser specs are updated for the end default: verified by reading; not run.
  • Description: the overlap list of related pull requests: not checked.

Files:

  • .changeset/reorder-handle-options.md: its adaptive sentence fails for rows with end content (blocking item 1).
  • apps/storybook/stories/List.stories.tsx: clear.
  • apps/storybook/stories/ListInput.stories.tsx: clear.
  • apps/storybook/stories/TransferList.stories.tsx: clear; its Reorder Handle Options story shows blocking items 1 and 2.
  • 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); the code falls short of its hang sentence (blocking item 1).
  • docs/specs/components/Item/Item.spec.md: clear (owner-approved).
  • docs/specs/components/List/List.spec.md: clear (owner-approved); the code falls short of its hang sentence (blocking item 1).
  • packages/core/src/Item/Item.doc.mjs: clear.
  • packages/core/src/Item/Item.tsx: clear; reference-page size deltas missing.
  • 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: blocking item 1 (end slot).
  • packages/core/src/List/ListReorderHandle.tsx: blocking items 1 and 3; stale SYNC pointer (non-blocking).
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear.
  • packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clear (read).
  • packages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clear (read).
  • packages/core/src/List/__tests__/listReorderImports.test.ts: clear.
  • packages/core/src/List/listReorderContext.ts: clear.
  • packages/core/src/List/listReorderEngine.tsx: 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/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: blocking item 3; stale comment (non-blocking).
  • packages/lab/src/TransferList/TransferList.doc.mjs: clear.
  • packages/lab/src/TransferList/TransferList.test.tsx: clear.
  • packages/lab/src/TransferList/TransferList.tsx: blocking items 2 and 3.
  • packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clear (read).

Automated review (maintainer link)

* How far a hanging handle sits before its record's first field, px: core
* List's hang.
*/
const REORDER_HANDLE_HANG = 30;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This copies core's hang room (REORDER_HANDLE_HANG, reachOf and reorderGutterStyle in List/ListReorderHandle.tsx). The session already exposes it as gutterStyle; extend that for this group and drop the copy, so a fix to core's room reaches ListInput too.

…, and TransferList keeps one hang room

- An adaptive handle at a row's end stays the row's own child, out of the
  end slot: where it hangs it gives back the row's gap, which in the slot
  covered the last 6 px of the end content (TransferList's Remove).
- TransferList no longer adds its own hang room to rows that core List
  already pads. The selected panel's heading moves in by core's room, and
  while a search pauses reordering each row keeps that room itself, so
  nothing moves as the query changes.
- Comments that disagreed with the code now match it.

Co-authored-by: Ernest Tien <[email protected]>
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec f61f8b6

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested. An adaptive end handle no longer covers end content, TransferList keeps a single hang room, and the description and the reference-page sizes are now in order; two issues remain.

Blocking

  • ListInput (ListInput.tsx:197-239) and TransferList (TransferList.tsx:158-203) still copy core's hang room and its 28 px and 30 px numbers instead of reading it from the reorder session's gutterStyle, so a fix to core's room misses their users.
  • Miss: with revealBehavior: 'adaptive' inside a Card, TransferList's list reaches into the Card's 12 px padding from inside the scrolling selected panel, so at the start the labels sit 12 px left of the panel heading and jump when a search starts, the panel clips the handle, and at the end the panel scrolls sideways by 12 px (TransferList.tsx:168-172, :303-317); setting the selected panel body's --container-padding-inline-start and -end to 0px fixes it.

Non-blocking: the comment at TransferList.tsx:162 calls the inset core subtracts "the row gap".

Claims and files checked

Review mode: incremental; reason: none

Changed rules (0): none.

Claims:

  • Changeset: the handle option takes placement (end by default, where the handle sits today, or start) and revealBehavior (always or adaptive): verified (the option's type; default frames pixel-identical on the base and this head).
  • Changeset: an always-shown handle takes its own place, and at the start a row that stays put keeps that room: verified (every label starts in one column, the pinned row's included).
  • Changeset: with adaptive on a fine pointer the handle shows on hover or focus, hangs outside the content and takes its room from the container's padding, and on a coarse pointer it always shows: verified for List and for TransferList outside a padded container; false for TransferList inside a Card (blocking item 2).
  • Changeset: ListInput keeps an end handle in its Remove cell, as today: verified (unit test; unchanged since it was measured against the base).
  • Changeset: without revealBehavior, List and TransferList always show the handle and ListInput uses adaptive: verified (code and tests).
  • Changeset and description: a List without reordering loads none of the handle's styles or placement logic: verified (the static-import test passes).
  • Description: the earlier pull requests' commits are carried unchanged and each new commit credits their author: verified (identical commits; co-author trailers on the three new ones).
  • Description: one handle object configures List, TransferList and ListInput: verified (unit tests of all three).
  • Description: end is the default and no collection moves its handle without the option: verified (pixel-identical default frames).
  • Description: an adaptive handle hides at rest on a fine pointer, shows on hover or focus, always shows on a coarse pointer and takes no space, and outside a container that publishes its padding the rows move in: verified for List (rows move in by 22 px; the handle stays inside the page).
  • Description: the option name follows the behavior-prop rule: verified.
  • Description: an adaptive end handle covers no end content: verified (Remove 563–591 px, handle 593–621 px; clicks inside Remove stay on Remove).
  • Description: TransferList keeps one hang room, its heading moves in by core's room, and nothing moves as a search starts: verified outside a padded container (heading and labels both at 294 px); false inside a Card (blocking item 2).
  • Description: Lab still repeats core's numbers and reading them through the session is a follow-up: accurate; it is blocking item 1.
  • Description: with no handle option every collection keeps today's geometry: verified.
  • Description: the spec, List and Item record changes and the owner decision at this head: verified (record diff; exact-head approval).
  • Description: a new exported type and option with their defaults, and an internal edge-seam version bump: verified (two added core rows; the seam's source).
  • Description: first-load deltas on the List page and the four reference pages are all under the allowance: the reported numbers are under 0.3 KB and consistent with an earlier build of ours where the shared Item module is unchanged; not re-measured at this head.
  • Description: red first on an earlier pull request's head: not re-run.
  • Description: defaults are pixel-identical in real Chromium: verified for List and TransferList; ListInput unchanged since it was verified.
  • Description: adaptive handles and their focus rings stay inside the story frame, and under touch every adaptive handle shows in its row: verified for the List and TransferList stories.
  • Description: the named test set passes: verified (19 files and 568 tests here; the description counts 17 files and 412 tests).
  • Description: the core typecheck, ESLint on changed files and the knowledge check are clean: verified.
  • Description: browser specs are updated for the end default and the reveal arguments: verified by reading; not run.
  • Description: the overlap list of related pull requests: not checked.

Files:

  • .changeset/reorder-handle-options.md: its adaptive sentence fails for TransferList inside a Card (blocking item 2).
  • 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); TransferList inside a Card falls short of its clipping-host sentence (blocking item 2).
  • 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; the end-slot fix holds.
  • packages/core/src/List/ListReorderHandle.tsx: owns the room the Lab files copy (blocking item 1).
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear.
  • packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clear (read).
  • packages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clear (read).
  • packages/core/src/List/__tests__/listReorderImports.test.ts: clear.
  • packages/core/src/List/listReorderContext.ts: clear.
  • packages/core/src/List/listReorderEngine.tsx: 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/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: blocking item 1.
  • packages/lab/src/TransferList/TransferList.doc.mjs: clear.
  • packages/lab/src/TransferList/TransferList.test.tsx: clear.
  • packages/lab/src/TransferList/TransferList.tsx: blocking items 1 and 2; one non-blocking comment.
  • packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clear (read).

Automated review (maintainer link)

…s padding

The selected panel body scrolls and clips and has no padding of its own,
so it publishes zero container padding. An adaptive list inside it then
keeps the handles' whole room itself: labels stay under the heading, the
panel clips no handle and never scrolls sideways.

Co-authored-by: Ernest Tien <[email protected]>
@cixzhang

Copy link
Copy Markdown
Contributor Author

(Posted by Cindy's agent.) Specs ruling on "one shared path": the local 28/30 px copies in ListInput and TransferList, with SYNC pointers to core, are accepted for this pull request. Reading core's room through the session would need a new style seam from core to lab, which is an internal API decision of its own, so it is tracked as a follow-up and is not a blocker here.

@cixzhang

Copy link
Copy Markdown
Contributor Author

(Posted by Cindy's agent.) Records basis for keeping the local 28/30 px copies (supersedes my earlier note): a shared path would need new Core writers that Lab imports, named and parameterized for Lab's layouts. Under knowledge-contracts DEC-22, a new internal module or hook that other packages import is API between them and needs an owner decision before it is built. The copies carry SYNC pointers to core, as core's own file already does toward Lab, and the shared path is tracked as a follow-up for that decision.

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 8e3e3bf

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: one fix. TransferList's handles now stay inside the selected panel when it sits in a Card, and an adaptive end handle no longer covers end content; the copied 28 px and 30 px handle geometry in ListInput and TransferList is accepted for now, with the reason and the follow-up stated on this pull request.

Blocking

  • The SYNC comment added at packages/lab/src/ListInput/ListInput.tsx:197 names ListReorderHandle, so ListInput's import guard (ListInput.test.tsx:1136) fails and the description's "all tests pass" claim no longer holds; naming the constants without the module path fixes it.

Non-blocking: the new comment at TransferList.tsx:325-327 has a 26-word sentence; see the inline suggestion.

Claims and files checked

Review mode: incremental; reason: none

Changed rules (0): none.

Claims:

  • Changeset: the handle option takes a placement (end by default, where the handle sits today, or start) and a reveal behavior (always or adaptive): verified (the option's type; default frames pixel-identical on the base and this head).
  • Changeset: a handle that always shows takes its own place, and at the start a row that stays put keeps that room: verified (every label at 60 px, the pinned row included).
  • Changeset: an adaptive handle shows on hover or focus under a fine pointer, hangs outside the content and takes its room from the container's padding, and always shows under a coarse pointer: verified (hover probes; the coarse-pointer rules in the handle and list room styles).
  • Changeset: ListInput keeps an end handle in its Remove cell; List and TransferList default to always, ListInput to adaptive: verified (ListInput tests; each collection's fallback in code).
  • Changeset: a List without reorderable loads none of the handle's styles: verified (the static-import test passes).
  • Description: with no option, no collection moves its handle: verified (three default stories pixel-identical).
  • Description: an adaptive end handle covers no end content: verified (Remove and handle side by side, no overlap).
  • Description: TransferList keeps one hang room, and nothing moves while a search pauses reordering: verified (heading and labels in one column, unchanged while searching, also inside a Card).
  • Description: Lab repeats core's 28 px and 30 px numbers with a sync note, and reading them through the session is a follow-up: verified (both Lab files).
  • Description: a plain List pays about nothing, with first-load deltas under 0.3 KB on every reference page: verified as reported; no Core file changed since the last reviewed revision.
  • Description: the listed unit suites all pass at this head: false (ListInput's import guard fails).
  • Description: ESLint on changed files is clean: verified for the files changed since the last reviewed revision.
  • Description: the owner decision is bound on this head: verified (an engineering owner's approval names this head).

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: proposed record; owner-approved at this head
  • docs/specs/AST-103-reorderable/spec.md: proposed record; owner-approved at this head
  • docs/specs/components/Item/Item.spec.md: proposed record; owner-approved at this head
  • docs/specs/components/List/List.spec.md: proposed record; owner-approved at this head
  • 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.test.tsx: clear
  • packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clear
  • packages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clear
  • packages/core/src/List/__tests__/listReorderImports.test.ts: clear
  • packages/core/src/List/listReorderContext.ts: clear
  • packages/core/src/List/listReorderEngine.tsx: 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/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; its guard fails because of the comment in ListInput.tsx
  • packages/lab/src/ListInput/ListInput.tsx: finding 1 (SYNC comment fails the import guard)
  • packages/lab/src/TransferList/TransferList.doc.mjs: clear
  • packages/lab/src/TransferList/TransferList.test.tsx: clear
  • packages/lab/src/TransferList/TransferList.tsx: non-blocking comment suggestion; panel padding fix verified
  • packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clear

Automated review (maintainer link)

Brings the grip through ComponentIcon, FR5's control count, IconRegistry's 0.8.0 rule and List DD1 under the handle option.

Co-authored-by: Ernest Tien <[email protected]>
@cixzhang
cixzhang changed the base branch from feat/drag-icon-reorder-handle to lane2/drag-icon-handle November 16, 2026 23:20
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 5d5e749

@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 new handle option works and keeps every default handle in place, but a disabled row's default handle now renders fainter than before, and the description says nothing changes.

  • Miss: a disabled row's handle dims itself to half (ListReorderHandle.tsx:223-228) while it sits inside Item's end slot, which already dims to half (ListItem.tsx:629-632), so in a disabled TransferList, or a List row with end content, each focusable handle shows at 0.25 opacity instead of 0.5, and the pull request's own test at TransferListReorder.a11y.chromium.spec.ts:264 fails.
  • Miss: the description says callers who pass no handle keep today's placement and visibility, but a disabled row's handle outside the end slot (a List row without end content, ListInput's handle) also changes from full opacity to half, so either keep the base opacity or state the change.

Two non-blocking suggestions sit inline: ListInput's anatomy doc describes the end handle as hanging when it sits on a reserved track, and one TransferList comment sentence runs long.

Claims and files checked

Review mode: full; reason: spec-record

Claims

  • The changeset's handle option with placement ('end' default, or 'start') and revealBehavior ('always' or 'adaptive'): verified in createReorderable.ts.
  • 'end' is where the handle sits today, and no collection moves its handle without the option: verified, nine base and head frame pairs are pixel-identical.
  • An always-shown handle takes its own place, and at the start a row that stays put keeps the room: verified in the room styles and unit tests.
  • An adaptive handle shows on hover or focus under a mouse, hangs outside the row and takes the room from the container's padding, and always shows under touch: verified by geometry probes and a touch frame.
  • ListInput keeps its end handle in Remove's cell, as today: verified, ListInput's frames are unchanged.
  • Without revealBehavior, List and TransferList use 'always' and ListInput uses 'adaptive': verified in code.
  • A List without reorderable loads none of the handle's styles: verified by listReorderImports.test.ts and the session-provided gutter.
  • An adaptive end handle covers no end content: verified, it sits 2 px clear of Remove.
  • TransferList keeps one hang room, and its heading stays put while a search pauses reordering: verified by unit test and capture.
  • Every first-load delta stays under 0.3 KB: consistent with per-entry measurements of +33 B to +175 B.
  • No change for callers who pass no handle, including visibility: false for disabled rows (see findings).
  • ItemTrailingContext carries {control, edge} at a new shared-context version: verified.
  • The List, ListInput and TransferList unit suites pass: verified (21 files, 586 tests).
  • The updated browser specs pass: false for the TransferList disabled-row test, which expects 0.5 and measures 0.25.
  • Red-first on an earlier pull request's head, and clean typecheck, lint and knowledge checks: not checked here.

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 (owner-approved at this head)
  • docs/specs/AST-103-reorderable/spec.md: clear (owner-approved at this head)
  • docs/specs/components/Item/Item.spec.md: clear (owner-approved at this head)
  • docs/specs/components/List/List.spec.md: clear (owner-approved at this head)
  • packages/core/src/Item/Item.doc.mjs: clear
  • packages/core/src/Item/Item.tsx: clear; its end slot's disabled dim is half of the double dim
  • 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: finding: puts the self-dimming handle in the dimmed end slot
  • packages/core/src/List/ListReorderHandle.tsx: finding: disabled handle dims itself inside the dimmed end slot
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear
  • packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clear (not run)
  • packages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clear (not run)
  • packages/core/src/List/__tests__/listReorderImports.test.ts: clear
  • packages/core/src/List/listReorderContext.ts: clear
  • packages/core/src/List/listReorderEngine.tsx: 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/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: non-blocking: anatomy wording for the end handle
  • packages/lab/src/ListInput/ListInput.test.tsx: clear
  • packages/lab/src/ListInput/ListInput.tsx: clear (Lab geometry copies accepted by an owner)
  • packages/lab/src/TransferList/TransferList.doc.mjs: clear
  • packages/lab/src/TransferList/TransferList.test.tsx: clear
  • packages/lab/src/TransferList/TransferList.tsx: non-blocking: one long comment sentence
  • packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: finding: its disabled-row test expects 0.5 and the head gives 0.25

Automated review (maintainer link)

Comment on lines +191 to +193
// At the end, a handle that always shows joins the row's end slot after
// Remove and reaches 8 px into the row's end padding, so a row without one
// keeps its Remove 20 px clear. An adaptive handle under a coarse pointer

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 (INV29): this sentence runs 35 words. Suggested:

// At the end, a shown handle joins the end slot after Remove. It reaches
// 8 px into the row's end padding. A row without a handle keeps Remove 20 px
// clear.

A handle in the row's end slot keeps its own opacity: the slot already
dims a disabled row to half, so the handle showed at a quarter. A handle
outside the end slot still dims itself to half, with the row. The
Changeset states that this is new for a List row without end content and
for ListInput. ListInput's anatomy doc now says the end handle sits in
Remove's cell.

Co-authored-by: Ernest Tien <[email protected]>
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec c898291

@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, pending one owner decision: the handle option works, every default handle stays where it was, and the double dim on disabled rows is fixed.

  • A disabled row's handle outside the end slot (a List row without end content, ListInput) now shows at half opacity where it showed at full; the changeset states it, but no record does, so an engineering owner decides whether that ships as is or a record states it first (for example the List reorder-handle bullet).
  • The description says that since the defaults were re-measured "only a record line and a comment changed", but the disabled-handle fix since then changed ListReorderHandle.tsx:229-233 and ListItem.tsx:516; the frames still hold, so the sentence is the only thing to correct.

One non-blocking suggestion stays open inline: a 35-word comment sentence in TransferList.tsx.

Claims and files checked

Review mode: incremental; reason: none

Claims

  • The changeset's handle option with placement ('end' default, or 'start') and revealBehavior ('always' or 'adaptive'): verified in createReorderable.ts.
  • Without revealBehavior, List and TransferList use 'always' and ListInput 'adaptive': verified in ListReorderHandle.tsx, TransferList.tsx:670 and ListInput.tsx:726.
  • No change for callers who pass no handle: verified, the List, TransferList and ListInput default stories render byte-identical to the base.
  • In a disabled row the handle dims once, to half: verified, 0.5 in a disabled TransferList (0.5 on the base too) and 0.5 on a disabled List row without end content (full on the base).
  • A List without reorderable loads none of the handle's styles: verified by the repository's own import-guard test.
  • ListInput keeps its end handle in Remove's cell: verified in code and in its unchanged frames.
  • An adaptive handle hangs outside the row and takes the room from the container's padding: verified in the room and gutter styles.
  • Every first-load delta stays under 0.3 KB: consistent with the per-page measurements in the description.
  • The List, ListInput and TransferList suites pass: verified, 21 files and 586 tests.
  • The updated browser spec files pass: not run here; the disabled-row expectation they encode was checked with an equivalent browser probe.
  • Red-first on an earlier pull request's head, and clean typecheck, lint and knowledge checks: not checked here.

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 (owner-approved at this head)
  • docs/specs/AST-103-reorderable/spec.md: clear (owner-approved at this head)
  • docs/specs/components/Item/Item.spec.md: clear (owner-approved at this head)
  • docs/specs/components/List/List.spec.md: clear (owner-approved at this head)
  • 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: the disabled-row opacity outside the end slot waits on the owner decision above
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear
  • packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clear (not run)
  • packages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clear (not run)
  • packages/core/src/List/__tests__/listReorderImports.test.ts: clear
  • packages/core/src/List/listReorderContext.ts: clear
  • packages/core/src/List/listReorderEngine.tsx: 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/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: non-blocking, one long comment sentence
  • packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clear

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec e7713ee

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: one description fix. The handle option works, every default handle stays where it was, and every proposed record, including the sentence on a disabled row's handle, is approved for this revision.

  • Miss: the description's "Writing rubric results" lists the changed records as the reorder spec, List and Item, but this pull request also changes the rest row of design:ordered-collection-reordering (docs/design/ordered-collection-reordering.md:73), so add that record with its rubric result and name it under "Current specification".

Non-blocking: Miss: ListInput's default end handle now fades itself inside Remove's fading cell, so it trails Remove during the 125 ms reveal (0.75 against 0.86 opacity at 44 ms); rendering it as shown there restores today's fade (inline at ListInput.tsx:1379). The Evidence heading that calls its measured commit "this head" names the previous revision, and two comment sentences in TransferList.tsx (lines 159-162 and 191-193) run past the comment style's length.

Claims and files checked

Review mode: same-head; reason: none

Claims

  • The changeset's handle option, placement ('end' by default, or 'start') and revealBehavior ('always' or 'adaptive'): verified in createReorderable.ts:47-67.
  • A shown handle takes its own place, and at the start a row that stays put keeps that room: verified by the room style and its unit test.
  • An adaptive handle shows on hover or focus under a mouse, hangs outside the row, takes its room from the container's padding, and always shows under touch: verified in the styles and in hover and touch frames.
  • Without revealBehavior, List and TransferList use 'always' and ListInput 'adaptive': verified in ListReorderHandle.tsx:436, TransferList.tsx:670 and ListInput.tsx:726.
  • ListInput keeps its end handle in Remove's cell: verified in code, its unit test and its unchanged frame.
  • No handle moves for callers who pass no handle, and placement and visibility match today's: verified, the List, TransferList and ListInput default stories render byte-identical to the base; only ListInput's fade curve differs (non-blocking note above).
  • A disabled row's handle dims once, to half: verified, 0.5 in a disabled TransferList on both sides, and 1 to 0.5 on a disabled List row without end content.
  • An adaptive end handle covers no end content: verified in ListItem.tsx:496-500 and its unit test.
  • TransferList keeps one hang room, its heading moves in by it, and a search keeps it: verified in its styles and its unit test.
  • A List without reorderable loads none of the handle's logic or styles: verified by the import-guard test.
  • The original author's commits are carried unchanged, each authored commit since credits him, and the drag-icon branch is merged, not rebased: verified in the history.
  • Every first-load delta stays under 0.3 KB: consistent with the code and the reported per-page numbers; not re-measured.
  • The affected suites pass, and typecheck, lint and the knowledge check are clean: suites verified, 19 files and 569 tests.
  • Red-first on an earlier pull request's head, and the browser specs pass: not re-run.
  • The records changed are the reorder spec, List and Item: false, the ordered-collection reordering design record also changes.

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 (owner-approved); missing from the description's rubric results
  • 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/src/Item/Item.doc.mjs: clear
  • packages/core/src/Item/Item.tsx: clear
  • packages/core/src/Item/ItemTrailingContext.tsx: clear; one 26-word comment sentence (non-blocking)
  • 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; one 26-word comment sentence (non-blocking)
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear
  • packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clear (not run)
  • packages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clear (not run)
  • packages/core/src/List/__tests__/listReorderImports.test.ts: clear
  • packages/core/src/List/listReorderContext.ts: clear
  • packages/core/src/List/listReorderEngine.tsx: 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/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: non-blocking, the end handle fades twice; one 26-word comment sentence
  • packages/lab/src/TransferList/TransferList.doc.mjs: clear
  • packages/lab/src/TransferList/TransferList.test.tsx: clear
  • packages/lab/src/TransferList/TransferList.tsx: non-blocking, two long comment sentences
  • packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clear (not run)

Automated review (maintainer link)

Comment on lines +160 to +162
// `handle.placement`). Where it shows only on hover or focus, it hangs
// outside the row's content, and core List keeps that room on its side
// (30 px less the row's own inline inset). The selected panel's heading moves in by 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 (INV29): this sentence runs 31 words and joins two topics. Suggested:

// Where it shows only on hover or focus, it hangs outside the row's
// content. Core List keeps that room on its side: 30 px less the row's
// own inline inset.

@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, so it is not ready to merge.

The description now names the ordered-collection reordering design record, the one change left, and an engineering owner approved every record this pull request proposes for this head.

  • Non-blocking: ListInput's default end handle fades itself inside Remove's fading cell, so it trails Remove during the 125 ms reveal; rendering it as shown there restores today's fade (ListInput.tsx:1379).
Claims and files checked

Review mode: same-head; reason: none

Claims

  • Changeset: the handle option takes a placement (end by default, or start) and a reveal behavior (always or adaptive): verified in createReorderable.ts:46-68.
  • Changeset: a handle that always shows takes its own place, and at the start a row that stays put keeps that room: verified by the room style (ListReorderHandle.tsx:446) and its unit test.
  • Changeset and description: an adaptive handle shows on hover or focus under a mouse, hangs outside the content, takes that room from the container's padding, moves the rows in where no padding is published, and always shows under touch: verified in ListReorderHandle.tsx:181-200 and :299-386, and in hover and touch frames of this revision.
  • Changeset and description: ListInput keeps an end handle in its Remove cell on the same track: verified in ListInput.tsx:1370-1382, its unit test and its unchanged frame.
  • Changeset and description: without a reveal behavior, List and TransferList always show handles and ListInput reveals them: verified in ListReorderHandle.tsx:436, TransferList.tsx:670 and ListInput.tsx:726.
  • Changeset and description: a List without reorderable loads none of the handle's logic or room styles: verified by the import-guard test.
  • Changeset and description: a disabled row's handle dims once, to half, now also outside the end slot: verified in ListReorderHandle.tsx:216-233 and in disabled-row frames (half on both sides in the end slot, full to half outside it).
  • The original author's commits are carried unchanged, every authored commit since credits him, and the base branch's commit is merged in, not rebased: verified in the history (one clean merge carries no credit line).
  • One handle object configures all three collections: verified, each reads the reorderable's handle option.
  • Without the option no handle moves on upgrade and today's geometry is kept (the end handle reaches 8 px into the inset and joins the end slot after end content): verified in code, and the List, TransferList and ListInput default stories render byte-identical to the base.
  • An adaptive end handle covers no end content and gives back only the row's gap: verified in ListItem.tsx:496-500 and its unit test.
  • TransferList keeps one hang room, its heading moves in by it, a search keeps it, and Lab repeats core's numbers behind sync notes: verified in its styles and its unit test.
  • The proposed records are the reorder spec's option paragraph and verification row, the List and Item bullets and the design record's rest row: verified against the four record hunks, which are exactly the records changed.
  • An engineering owner's spec approval binds this revision: verified, an exact-revision approval and a passing spec-owner status.
  • The public delta is one new type and one optional option with the stated defaults, and the internal seam carries the control and its edge under a new shared-context version: verified in createReorderable.ts, index.ts:201 and ItemTrailingContext.tsx.
  • No change for callers who pass no handle beyond the disabled-row opacity: verified for placement and visibility; ListInput's fade curve differs during the reveal (non-blocking note above).
  • Every first-load delta stays under 0.3 KB and none of it is handle styles: verified, the repository's own esbuild size build of the same five pages adds 174 to 190 B gzip, and what remains in a plain List is Item's seam, ListItem's edge value and session calls, and three declarations of a private room property (two reads and Item's per-row reset).
  • Red-first on the earlier pull request's head: consistent, that head places handles at the start by default; not re-run.
  • Adaptive handles stay inside the clip, sit 2 px clear of Remove, and inside a Card nothing is clipped or scrolls sideways: verified in the hang and clearance styles and the panel's zero published padding (TransferList.tsx:327-328).
  • The browser specs passed at the previous revision and only the List record changed since: the one commit since edits only the List record (verified); the browser specs were not re-run.
  • The disabled-row fix changed the handle and ListItem after the drag-icon merge: verified in that commit.
  • The affected suites pass, and typecheck, lint and the knowledge check are clean: verified, 19 files and 569 tests, Core's typecheck clean once the ignored pseudo-locale file is generated, lint clean on the changed files, records aligned.
  • The browser specs and the in-Card story were updated for the end default and the reveal args: verified in the diff.
  • The records changed are the reorder spec, List, Item and the ordered-collection reordering design record: verified.

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 (owner-approved); now named in the description
  • 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/src/Item/Item.doc.mjs: clear
  • packages/core/src/Item/Item.tsx: clear
  • packages/core/src/Item/ItemTrailingContext.tsx: clear; one 26-word comment sentence (non-blocking)
  • 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; one 26-word comment sentence (non-blocking)
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear
  • packages/core/src/List/__tests__/ListReorderHandleOptions.interaction.browser.spec.ts: clear (not run)
  • packages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clear (not run)
  • packages/core/src/List/__tests__/listReorderImports.test.ts: clear
  • packages/core/src/List/listReorderContext.ts: clear
  • packages/core/src/List/listReorderEngine.tsx: 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/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: non-blocking: the default end handle fades twice; one 26-word comment sentence
  • packages/lab/src/TransferList/TransferList.doc.mjs: clear
  • packages/lab/src/TransferList/TransferList.test.tsx: clear
  • packages/lab/src/TransferList/TransferList.tsx: non-blocking: two long comment sentences
  • packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clear (not run)

Automated review (maintainer link)

})}
itemKey={itemKey}
isDisabled={isDisabled || isLoading}
isAlwaysVisible={isHandleAlwaysVisible}

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: Remove's cell already fades with the record (lines 1337-1341), and with isAlwaysVisible={false} this handle also runs its own reveal fade, so during the 125 ms reveal it trails Remove (0.75 against 0.86 opacity at 44 ms; both 0.86 on the base). Rendering the end handle as shown while its cell does the fading restores today's curve, and shown keeps the disabled half. The Remove-cell test in ListInput.test.tsx would then check the cell's fade rather than the handle's.

@github-actions
github-actions Bot deleted the branch lane2/drag-icon-handle November 18, 2026 06:04
@cixzhang cixzhang removed the needs:design-review Affects visuals — Design should review label Nov 20, 2026

This branch was successfully deployed

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

Labels

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.

2 participants