Skip to content

feat(Icon, List): a drag icon; the reorder handle is its grip alone, with a 24px target - #11445

Merged
ernestt merged 15 commits into
mainfrom
feat/drag-icon-reorder-handle
Nov 24, 2026
Merged

ernestt merged 15 commits into
mainfrom
feat/drag-icon-reorder-handle

Conversation

@ernestt

@ernestt ernestt commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Reorder stack, now three pull requests. At the spec owner's suggestion, the five pull requests become three. Review and merge in this order:

  1. feat(Icon, List): a drag icon; the reorder handle is its grip alone, with a 24px target #11445: a drag icon; the reorder handle is its grip alone, with a 24px target ← this pull request (folds in feat(List): the reorder handle is its grip alone, with a 24px target #11583)
  2. feat(List): createReorderable's handle option places the reorder handle and sets how it reveals #11575: createReorderable's handle option, with placement ('end' by default) and visibility (folds in feat(List): the reorder handle starts its row and shows on hover or focus #11454)
  3. fix(List): a mouse drop plays the same settle spring as a finger's drop #11600: a drop glides the rows into place (rebases after feat(core): swipe actions come from createSwipe on the shared drag path #8690)

User need

A reorderable collection's handle draws three horizontal lines in a 28px box. Core List draws it, and Lab's ListInput and TransferList use the same handle.

  • On the web, three lines read as a menu: they are the menu icon's shape. People who see them expect a menu, not a grip.
  • The lines are a fixed CSS drawing, so a theme or an app that wants another grip cannot change it.
  • The box has no hover fill, so its 28px are invisible padding round a 20px drawing.

Problem and solution fit

  • A shared drag icon. drag joins the semantic IconName set, with a six-dot grip as its built-in default. A theme or an app replaces it as it replaces any semantic icon: defineTheme({icons: {drag}}) or registerIcons({drag}). The bundled themes and CLI theme templates map it to Lucide's GripVertical, and the CLI's drag icon definition becomes a built-in one.
  • A slot for the handle's grip. The handle draws its grip through a new component icon slot, list-reorder-handle, rendered by the shared ComponentIcon renderer, which falls back to drag at the sm size. A theme replaces the grip for the handle alone; null hides the grip and keeps the handle. ComponentIcon gains an xstyle prop, so the grip passes its presses to the handle (pointer-events: none).
  • The handle is its grip alone. No box round it: in its secondary icon color, with no hover fill, it takes the room the grip takes. A mouse hits it anywhere in an invisible square target of at least 24px round the grip, the WCAG 2.5.8 minimum. The focus ring's outer edge is the target's edge, and reorder mode fills the target with rounded corners, under the grip.
  • A fixed box. The handle's box is 1rem, the sm icon size. A theme's slot size changes only the icon, centred on that box; the handle's box, target, ring and distance from the row's end stay the same (architecture:icon-resolution-and-component-slots INV8). At a 20px root the box, the grip, the target and the ring all scale with the root, centred.
  • A finger keeps its 44px target. The handle stays clear of its row's end by its target's reach, less the row's inset, so a list that clips never cuts its target or ring. Under a coarse primary pointer the reach is the finger target's.
  • ListInput and TransferList follow it. The room they keep for the handle (ListInput's controls track, TransferList's fixed rows) derives from the same 1rem box and target reach, instead of a hard-coded 28px. They import nothing new.

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

The icon, its slot and the handle stay. This head drops what the change did not need:

  • Dropped: List DEC-7's rejected-alternative line, and the extra 0.8.0 prose in spec:AST-103 (its DEP section and DEC-8 sentence).
  • Kept because the native and CLI parity tests require every Core icon name: the native drag defaults (Apple and Android) and the CLI icon-set drag built-in entry with its golden fixtures (packages/native/src/icons/defaults.test.ts, packages/cli/authoring/doctypes/icon-set/icon-names.test.mjs). The CLI docs file keeps its Prettier formatting, which the changed-file format check needs.
  • Kept because a current record requires it:
    • spec:AST-032 FR6 and DEC-3 say a complete IconRegistry requires every shared name, so drag's optional window has a deprecation record: DEP-0018 in spec:AST-032, and CLN-0030 (0.8.0 makes drag required) in architecture:icon-resolution-and-component-slots, with one cross-reference line in INV10's paragraph. IconRegistry's doc comment says the same.
    • spec:AST-017 FR29c makes Astryx's own packages migrate in the deprecation patch, so the seven bundled themes and seven CLI theme templates map drag to Lucide's GripVertical, as this pull request first had them.
    • Owner decision for the schedule (comment, @cixzhang, 2026-11-17): "add the architecture:icon-resolution-and-component-slots text for the 0.8.0 IconRegistry step: the INV10 line and its CLN-0030 entry."
  • Changesets: two, as spec:AST-017 FR22 requires: a [feat] one for Core, and an [experimental] one for the CLI's icon-set change.
  • The CLI keeps drag a full built-in definition (AST-084), so an icon set that doesn't map it is reported by astryx integration check. Icon sets are experimental.

Current specification

  • spec:AST-103 (reorderable collections) changes in this pull request. Owner approval needed (cixzhang).
    • FR5 now reads "Reordering adds one control to a row": the handle is the only element reordering adds to the row, and what it draws stays inside it, as decoration hidden from assistive technology. Its verification row fails "an element added to a row outside the handle, a grip outside the handle, a grip that assistive technology reaches".
    • DEC-8 (new; DEC-7 is main's shift-feedback decision): the grip is the shared drag icon, through the list-reorder-handle component icon slot; the slot's size changes only the icon. It rejects pseudo-element lines, which no theme can replace.
    • INV8 holds: a slot size never changes the handle's box, target or ring.
  • component:List changes in this pull request. Owner approval needed (cixzhang).
    • Its additive theme surface line: componentIcons['list-reorder-handle'], drag at sm with no entry; the slot's size changes only the icon.
    • Its Design decisions row DD1 (new; author ernestt is a design owner): the handle is its grip alone, in a 1rem box, with a square target of at least 24px; the ring's outer edge is the target's edge; reorder mode fills the target with rounded corners; a theme's icon size never changes the box, the target or the ring; a coarse pointer keeps its 44px target.
    • DEC-7 (new), the list-row exception to architecture:component-style-authoring INV7's surface budget: the grip is the theme's icon, so its own elements join the row inside the handle. The default drag adds 8 per handle (a wrapper and an SVG of six dots). Measured counts are under Evidence.
  • architecture:public-component-api INV25: the three API rows, IconName 'drag', ComponentIconSlotMap['list-reorder-handle'] (a stateless slot), and the IconRegistry rule, are decided by spec:AST-103 DEC-8, the List record line and spec:AST-032 DEP-0018 in this pull request.
  • spec:AST-094 FR42 (hit areas): the existing internal module utils/hitArea.ts now also exports centeredGrowth(rect, minSize), the unclamped growth toward 44 px it already used inside. Usage: reorderHandleGrowth takes centeredGrowth(target, MIN_TOUCH_TARGET) and clamps its top and bottom to the list's box, so the first and last rows' finger target never passes the list (FR42: a hit area never takes a neighbour's taps). Why the export: useTouchHitArea's growth option replaces the default growth outright, so without it the handle would copy that arithmetic and miss later changes to it.
  • architecture:icon-resolution-and-component-slots INV10 and INV3: a new Core icon role is a slot in ComponentIconSlotMap that maps to a shared IconName.
  • spec:AST-084 (icon sets) FR0, FR4 and FR15, and spec:AST-017 FR22: drag.doc.mjs gains builtIn: true, and integration check reports icon_builtin_definition_missing for a set that does not map it. Icon sets are experimental, so the CLI change has its own [experimental] patch changeset.
  • spec:AST-082 (native-first surfaces) FR17 requires a mapping, not a symbol. Owner decision (AST-082 owner): Apple maps drag to line.3.horizontal, the system's reorder glyph; Android maps it to drag_indicator.
  • spec:AST-020 (accessibility conformance): 2.5.8 Target Size (Minimum) holds with a fine pointer; 1.4.11 holds in reorder mode, where the grip shows over the fill, in forced colors too.

Public delta and caller burden

  • IconName gains 'drag'. defineTheme icons are a partial map, so no theme has to change. IconRegistry keeps drag optional until 0.8.0 (DEP-0018), so a complete registry still compiles.
  • ComponentIconSlotMap gains 'list-reorder-handle': true, a slot without state, documented in List's theming.componentIcons.
  • An icon set must map drag. Until it does, integration check reports icon_builtin_definition_missing.
  • The reorder handle: the grip alone (16px at sm) instead of three lines in a 28px box. No prop, keyboard or announcement change.
  • ListInput: with a mouse, its Remove moves 8px toward the record's end, because its handle room narrows from 28px to 20px; under a coarse pointer it moves 2px toward the start (30px against 28px). TransferList: with a mouse, its Remove moves 4px toward the row's end (20px against 16px); under a coarse pointer it moves 2px toward the start (22px against 20px).
  • Native: IconName.drag joins the generated built-in names.
// Another grip everywhere:
defineTheme({icons: {drag: <GripHorizontal />}});
// Only on the reorder handle:
defineTheme({componentIcons: {'list-reorder-handle': 'menu'}});

Design and alternatives

  • A slot alone, with no shared name: rejected. Drag handles appear across collections and in apps, and the CLI already defines drag. The slot maps to the shared name (INV3).
  • The shared name alone: rejected. INV10 gives a new Core icon role a slot, so a theme can change the handle's grip without changing every drag icon.
  • A slot with a {pressed} state: left out of this pull request. It waits on an owner's sign-off, and can be added in its own change.
  • A box that follows the slot's size: rejected. A slot size never changes a control's outer dimensions or touch target (architecture:icon-resolution-and-component-slots INV8). The box is 1rem instead of 16px, so a 20px root still centres the default grip in it.
  • drag required in IconRegistry now: rejected. It would break every complete registry in a patch.
  • Three lines or six dots: on the web, three lines are the menu glyph, and six dots are the common drag affordance. The Apple platform map keeps the system's three-line reorder glyph, where people expect it.

Evidence

Real Chromium, static Storybook builds of main and of this branch, at 2x; the phone is an iPhone 13 profile.

Element counts (document.body.querySelectorAll('*').length for each story at rest, main → this branch; the same under a fine and a coarse pointer). Each handle adds 8 elements, the drag icon's wrapper and SVG of six dots (component:List DEC-7):

Story Handles main This branch
List, Reorderable 6 129 177
ListInput, Tag options 4 421 453
TransferList, Default 3 217 241

First-load JavaScript (pnpm size:pages --base main --page list=List --unused-on list, minified / gzip bytes). The reference pages grow by the shared drag artwork in the default registry; a List without reorderable does not grow:

Page (components) main This branch Change
docs (Text, Heading, Link, Card, Divider, List) 230,733 / 75,924 230,985 / 75,959 +252 / +35
form (Button, IconButton, TextInput, CheckboxInput, Text, Heading, Card) 311,581 / 105,475 311,838 / 105,507 +257 / +32
menu (DropdownMenu, ContextMenu, Button, Text) 318,780 / 108,095 319,037 / 108,150 +257 / +55
table (Table, Text, Button) 348,823 / 119,664 349,076 / 119,697 +253 / +33
list (List, without reorderable) 49,814 / 18,463 49,814 / 18,463 +0 / +0

ListInput and TransferList are Lab components, outside that script; CI's size report gives their figures for this head. They no longer import anything new for the handle.

The pictures below were captured again at this head (the fixed 1rem box): every one is byte-identical to round 2's, because at the default size the handle draws the same pixels.

List (Reorderable), at rest

main This branch
List (Reorderable), at rest, main List (Reorderable), at rest, this branch

List, keyboard focus on a handle: the ring's outer edge is the target's edge

main This branch
List, keyboard focus on a handle: the ring's outer edge is the target's edge, main List, keyboard focus on a handle: the ring's outer edge is the target's edge, this branch

List, reorder mode: the fill is the target, under the grip

main This branch
List, reorder mode: the fill is the target, under the grip, main List, reorder mode: the fill is the target, under the grip, this branch

List, reorder mode in forced colors: the grip shows over the highlight

main This branch
List, reorder mode in forced colors: the grip shows over the highlight, main List, reorder mode in forced colors: the grip shows over the highlight, this branch

List (Reorder Flush), keyboard focus: the handle stays clear of the row end, so the ring is whole

main This branch
List (Reorder Flush), keyboard focus: the handle stays clear of the row end, so the ring is whole, main List (Reorder Flush), keyboard focus: the handle stays clear of the row end, so the ring is whole, this branch

TransferList (Locked): movable and fixed rows keep one Remove column

main This branch
TransferList (Locked): movable and fixed rows keep one Remove column, main TransferList (Locked): movable and fixed rows keep one Remove column, this branch

ListInput (Tag options), pointer over a record

main This branch
ListInput (Tag options), pointer over a record, main ListInput (Tag options), pointer over a record, this branch

List on a phone (iPhone 13 profile): the grip at the row's end, its 44px target inside the list

main This branch
List on a phone (iPhone 13 profile): the grip at the row's end, its 44px target inside the list, main List on a phone (iPhone 13 profile): the grip at the row's end, its 44px target inside the list, this branch

Reviews addressed

  • Earlier change requests on outdated heads were dismissed as stale by the repository owner's decision on 2026-11-18.
  • Joey Farina: IconRegistry keeps drag optional, with a type test; FR5 is changed, not worked around; a finger's target keeps 44px at the row's end (it was cut to about 38px); the Changeset says reorder mode rounds the target's corners.
  • Cindy (through her coordinator): drag and the slot stay as she decided; the slot lives in componentIcons and falls back to drag, with a test for the fallback; FR5 makes the handle and its decorative icon the one added control; the API rows are recorded; DD1 records the grip-only geometry; feat(List): the reorder handle is its grip alone, with a 24px target #11583 is folded in.
  • Ivor: the box is 1rem, so the default grip fills it at any root size, with a browser test at a 20px root. A theme's larger slot size overflows the box evenly instead of resizing it, as INV8 requires. The {pressed} state is left out until an owner signs off.
  • CodeBunny: FR5's heading now matches its body; ComponentIconSlotMap is on the Components line; ListInput's handle stays clear of the record's end under a coarse pointer (a record has no inset); DD1 says "at least 24px" and that reorder mode rounds the corners. Round 3: no {pressed}; the geometry is fixed (INV8); the grip-length hook is gone, and with it Lab's added JavaScript; the grip renders through ComponentIcon; the CLI has its own [experimental] Changeset; the deprecation cites its owner decision; the Remove movements and element counts are corrected and measured; first-load sizes are under Evidence.

Scope

Components: Icon (IconName, IconRegistry, ComponentIconSlotMap), List, ListInput, TransferList (shared reorder handle), CLI icon definitions, native icon names

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

Follow-up, not in this pull request: trim ListReorderHandle.tsx's file header to its tags and keep the iOS note beside touchAction (#13746).

Formatting note

packages/cli/assets/docs/icons.doc.mjs gains one row. Prettier also reindents the rest of that file: the file was not Prettier-formatted on main, and the commit hook formats every staged file.

Testing

  • vitest run --project ui (all of core, Lab, charts, richtext, vega and the docsite showcase): 1,049 files, 26,088 passed. New:
    • with no theme entry, the grip is the drag icon at sm;
    • a theme's slot size changes only the icon: the handle keeps its classes and sets no length;
    • a theme's list-reorder-handle icon draws the grip, and null draws none and keeps the handle;
    • a complete IconRegistry may omit drag in this release.
  • vitest run --project node packages/cli: 1,226 files passed. The 6 theme-edit files that fail here (14 tests) fail the same way on main in this environment. Two goldens change: the docs-topics hash, for the drag row, and doctor integration validate on a fixture icon set, which now reports one more icon_builtin_definition_missing and lists drag as built in.
  • playwright test --config=playwright.interaction.config.ts --project=chromium ListReorderPointer ListReorderTouch ListReorderMode: 55 passed, on this branch's built Storybook. New:
    • the handle is its 16px grip, and a mouse lands on it 11.5px from its centre on every side and corner, not at 12.5px;
    • at a 20px root, the grip is 20px, centred, its target reaches 4px past it, and the ring's outer edge is the target's edge;
    • in reorder mode the grip shows over the fill, in forced colors too;
    • under a coarse pointer, a padded and a flush row each give a finger at least 44px across the handle's centre, inside the list.
  • playwright test --project=chromium ListInputReorder TransferListReorder: 13 passed; TransferList's fixed rows keep the movable rows' Remove column.
  • 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 (FR5, its verification row, DEC-8), docs/specs/components/List/List.spec.md (one theme surface line, DD1, DEC-7), docs/specs/AST-032/spec.md (DEP-0018), docs/architecture/icon-resolution-and-component-slots.md (INV10's drag line, CLN-0030).

  • R1 narration: none. FR5, AST-103 DEC-8, List DEC-7, DD1, INV10, DEP-0018 and CLN-0030 state what the system does or will do, in the present tense.
  • R2 research: none.
  • R3 evidence: FR5's verification row names what fails; DD1's geometry is checked by the browser tests above.
  • R4 rejected alternatives: AST-103 DEC-8 names one, in one line.
  • R5 change references: none.
  • R6 open questions: none in the records. The owner questions are in this description.
  • R7 project status: none in the changed text. The records' older hits ("not built", "first adopter", "not implemented yet") are outside it.

@vercel

vercel Bot commented Nov 12, 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 5:56pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 12, 2026
@github-actions github-actions Bot added the needs:code-review High-risk change (new package/component/API) — needs human code review before merge label Nov 12, 2026
@astracat-bot

astracat-bot Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

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

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

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

Thanks for the clear write-up and the captures. This can't be approved yet: it needs an owner decision on direction, and one change is needed either way.

Waiting on an owner decision. No current record decides these yet, so an engineering owner (or, for the appearance alone, a design owner) needs to settle them, either by updating the records or by commenting /approve-spec <full head SHA> on this pull request; the author can do this too where they are such an owner:

  • Whether the reorderable-collections spec (FR5: the grip is "drawn by a pseudo-element or a theme-role glyph, not by elements") and the minimal-DOM rule admit a grip rendered as an Icon, which adds 8 elements to every handle, or whether FR5 needs updating or an exception recorded.
  • Whether drag joins the shared IconName set, a new public API name.
  • The new resting look: a six-dot grip at 16px in --color-icon-primary instead of three lines in --color-icon-secondary.

Blocking:

  • Adding 'drag' to IconName makes IconRegistry require a drag entry, so any complete registry typed as IconRegistry (the shape the CLI theme templates scaffold) stops compiling after this patch release; keep drag optional on IconRegistry for now, as was done for upload, and leave requiring it to a declared minor with a [breaking] changeset.

Non-blocking: the changeset could also tell experimental icon-set authors that their sets now have to map drag.

Claims and files checked
  • Claim: drag is a new semantic icon name with a six-dot default (verified in the icon registry type and the default icons).
  • Claim: themes and apps replace it through defineTheme icons or registerIcons (verified by the new List test and the resolver order).
  • Claim: every bundled theme and CLI theme template maps it to GripVertical (verified, 14 files).
  • Claim: the CLI drag definition becomes built-in (verified).
  • Claim: the handle draws it at 16px in the primary icon colour with no hover fill (verified in source and captures; the base had no hover fill either).
  • Claim: the handle keeps its 28px box, focus ring, touch hit area, reorder-mode fill, keyboard path and announcements (verified in captures and passing tests).
  • Claim: the grip is hidden from assistive technology (verified, aria-hidden).
  • Claim: Apple maps drag to line.3.horizontal and Android to drag_indicator (verified).
  • Claim: the change is additive for themes, while complete IconRegistry objects must add drag (verified; the second part is a breaking type change, finding above).
  • Claim: Lab ListInput and TransferList show the new grip with no code change (verified in captures).
  • Claim: the changeset bump is patch [feat] (false for the IconRegistry change, finding above).
  • Files: changeset (finding); icon registry type (finding, owner decision); default icons, Icon docs (clear); reorder handle and its two List tests, ListInput test (owner decision); touch interaction spec, ListInput docs (clear); CLI icons docs, drag definition, icon names (clear); 7 theme registries and 7 CLI theme templates (clear); native defaults, Apple icon map, generated Swift names (clear).

Automated review (maintainer link)

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

Thanks for the update. This can't be approved yet: it needs an owner decision on direction, and two changes are needed either way.

Waiting on an owner decision. No current record decides these yet, so an engineering owner (or, for the glyph alone, a design owner) needs to settle them, either by updating the records or by commenting /approve-spec <full head SHA> on this pull request; the author can do this too where they are such an owner:

  • Whether the reorderable-collections spec (FR5: the grip is "drawn by a pseudo-element or a theme-role glyph, not by elements") and the minimal-DOM rule admit a grip rendered as an Icon, which adds 8 elements to every handle, or whether FR5 needs updating or an exception recorded.
  • Whether drag joins the shared IconName set, a new public API name.
  • The new resting glyph: six dots in a 16px box instead of three 20px lines, in the unchanged secondary icon colour.

Blocking:

  • Adding 'drag' to IconName makes IconRegistry require a drag entry, so any complete registry typed as IconRegistry (the shape the CLI theme templates scaffold) stops compiling after this patch release; keep drag optional on IconRegistry for now, as was done for upload, and leave requiring it to a declared minor with a [breaking] changeset.
  • The description still says the grip moves to --color-icon-primary, but at this head the handle keeps --color-icon-secondary at rest and in reorder mode (ListReorderHandle.tsx lines 127 and 130), so the three statements that say otherwise need updating.

Non-blocking: the changeset could also tell experimental icon-set authors that their sets now have to map drag.

Claims and files checked
  • Claim: drag is a new semantic icon name with a six-dot default (verified in the icon name type and the default icons).
  • Claim: themes and apps replace it through defineTheme icons or registerIcons (verified by the new List test and the resolver order).
  • Claim: every bundled theme and CLI theme template maps it to GripVertical (verified, 14 files).
  • Claim: the CLI drag definition becomes built-in (verified).
  • Claim: the handle draws it at 16px in the primary icon colour (16px verified; the colour part is false, finding above).
  • Claim: the handle draws no hover fill (verified; the base drew none either).
  • Claim: the handle keeps its 28px box, focus ring, touch hit area, reorder-mode fill, keyboard path and announcements (verified in source, captures and passing tests).
  • Claim: the grip is hidden from assistive technology (verified, aria-hidden).
  • Claim: Apple maps drag to line.3.horizontal and Android to drag_indicator (verified).
  • Claim: the change is additive for themes, while complete IconRegistry objects must add drag (verified; the second part is a breaking type change, finding above).
  • Claim: Lab ListInput and TransferList show the new grip with no change of their own (verified in captures).
  • Claim: the tests now count a row's elements outside the handle (verified).
  • Claim: the changeset is a patch [feat] that keeps the secondary colour and draws no hover fill (colour and hover verified; the patch classification is false for the IconRegistry change, finding above).
  • Claim: the listed unit suites pass (verified for the List, Icon, ListInput, TransferList, CLI icon and native suites; the browser interaction specs were not rerun).
  • Files: changeset (finding); icon name and registry type (finding, owner decision); default icons, Icon docs (clear); reorder handle (owner decision; colour claim finding is in the description); its unit test and the ListInput test (owner decision); touch interaction spec, ListInput docs (clear); CLI icons docs, drag definition, icon name list (clear); 7 theme registries and 7 CLI theme templates (clear); native defaults, Apple icon map, generated Swift names (clear).

Automated review (maintainer link)

@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, this is a nice upgrade. The six-dot grip reads as "drag me" instead of "menu", and making it a theme icon means a brand can swap it without touching List. The captures cover rest, hover, focus, reorder mode, dark mode, ListInput and TransferList, which made this easy to check.

I can't approve it yet, for two reasons. Both are small to fix.

Why it can't ship yet

1. Adding drag to IconName breaks complete registries at compile time, in a patch.
IconRegistry is Record<IconName, ReactNode>, so any object typed IconRegistry without a drag entry stops compiling (TS2741) as soon as someone upgrades. That is the exact shape the CLI theme templates scaffold (packages/cli/assets/templates/themes/*/icons.tsx are typed IconRegistry), so every app that ejected or copied a theme hits it. The changeset ships this as a patch [feat]. When upload joined the set, it stayed optional on IconRegistry first and became required only in a scheduled minor (AST-032 FR6, with its DEP-0012 and CLN-0021 entries). drag should take the same path.

2. The PR works around AST-103 FR5 instead of changing it.
FR5 says the grip is "drawn by a pseudo-element or a theme-role glyph, not by elements", and its verification row fails "a grip drawn with elements". Icon renders its own elements inside the handle (its wrapper, the svg and six circles). The element-count tests now skip the handle's subtree so they pass, but FR5 is unchanged, so the record and the tests disagree. The record has to change in this PR so the owner approves the rule the code follows.

Exact steps

  1. In packages/core/src/Icon/globalIconRegistry.tsx, keep drag optional for complete registries, the way upload started:
    export type IconRegistry = Record<Exclude<IconName, 'drag'>, ReactNode> &
      Partial<Record<'drag', ReactNode>>;
    Say in its doc comment that an omitted drag resolves the default grip. The bundled themes and CLI templates can keep their drag entries.
  2. Add a type test beside the registry tests: a complete registry without drag compiles. If you want drag required later, add a deprecation and cleanup pair to AST-032 like the upload ones, aimed at the next scheduled minor.
  3. In docs/specs/AST-103-reorderable/spec.md, change FR5's grip sentence to match the code, for example: "Its grip is decoration, hidden from assistive technology: a pseudo-element, or the theme's drag icon inside the handle." Update FR5's verification row the same way (for example, "a grip outside the handle, or one that assistive technology reaches, fails"), and add the writing-rubric results for that record to the description. Then the AST-103 owner (cixzhang) can approve the record change and the new IconName row (INV25) together, which your description already asks for.
  4. Optional: tell icon-set authors in the changeset that their sets now map drag. packages/cli/assets/docs/icons.doc.mjs also picks up unrelated reformatting (indentation and quote style) that you could drop to keep the diff focused.

What I checked

  • Unit tests at this head over List, Icon, reorderable, ListInput, TransferList, native and themes: 23 files, 576 tests pass. Core typecheck passes.
  • The CLI icon-set side follows AST-084 FR4 (builtIn exactly for an IconName), and every bundled theme and CLI template maps drag.
  • The description now matches the code on color: the handle keeps --color-icon-secondary.

Once steps 1 to 3 are in, this is good to go from my side.

@astracat-bot

astracat-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

In reply to @josephfarina

I'll run a full review to re-check this with your note.

@ernestt
ernestt force-pushed the feat/drag-icon-reorder-handle branch from ef74432 to 50b9051 Compare November 13, 2026 22:46
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 13, 2026
@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.

This can't be approved yet: it waits on an owner decision about the reorderable-collections spec and the new public names, and four changes are needed either way.

Waiting on an owner decision. No current record decides these, so an engineering owner needs to approve them by commenting /approve-spec <full head SHA> on this pull request; the author can do this only if they are an engineering owner.

  • The reorderable-collections spec says the handle's grip is drawn "not by elements", and the Icon grip adds 8 elements to every handle; as an earlier review asked, that requirement and its verification row need amending in this pull request so the approval covers the rule the code follows.
  • drag as a new shared IconName, the new list-reorder-handle component icon slot, and the List record line that names it.

Blocking:

  • ListReorderHandle.tsx lines 239-243 and 390-399 copy the shared ComponentIcon slot renderer (ComponentIcon.tsx lines 52-70), so render <ComponentIcon slot="list-reorder-handle" …> instead and extend ComponentIcon if the grip needs its own style.
  • Authors of complete IconRegistry registries are told that drag becomes required in the next minor (the changeset and the type's doc comment), which deprecates registries that omit drag and needs an explicit owner decision naming IconRegistry, or the schedule removed. Found by: deprecation rule
  • The new ComponentIconSlotMap row is outside this pull request's declared scope, so add ComponentIconSlotMap to the description's Components: line.
  • Miss: useTableRowStatus.doc.mjs line 16 lists the valid icon names without drag, so docPropLiterals.test.ts fails at this head (CI test-ui (3/4)); add drag to that list.

The earlier compile break for complete registries and the colour wording in the description are fixed. Non-blocking: the Prettier reflow of icons.doc.mjs could ship separately.

Claims and files checked
  • Claim: drag joins the semantic icon names with a six-dot default. Verified (globalIconRegistry.tsx line 84, defaultIcons.tsx lines 295-305).
  • Claim: a theme or app replaces drag through theme icons or registerIcons. Verified (ListReorder.test.tsx lines 439-453).
  • Claim: the handle draws its grip through the new list-reorder-handle slot, falling back to drag, and null hides the grip and keeps the handle. Verified (ListReorderHandle.tsx lines 239-243 and 390-399; ListReorder.test.tsx lines 455-476).
  • Claim: the grip is 16px in the secondary icon colour with no hover fill, and the handle keeps its 28px box, focus ring, reorder-mode fill, keyboard path and announcements. Verified by before/after captures and probes and the unit tests.
  • Claim: a complete IconRegistry may omit drag in this release and an omitted drag draws the default. Verified (globalIconRegistry.tsx lines 119-120, globalIconRegistry.test.tsx lines 95-100, Core typecheck).
  • Claim: the next minor makes drag required. Not backed by any record or owner decision (blocking finding above).
  • Claim: bundled themes and CLI theme templates map drag to GripVertical, and the CLI drag definition becomes built-in. Verified (14 icons.tsx files, drag.doc.mjs line 9).
  • Claim: an icon set without drag gets icon_builtin_definition_missing. Verified (the check reads built-in definitions; drag is now one).
  • Claim: Lab ListInput and TransferList show the new grip with no change of their own. Verified (captures; only their docs and a test change).
  • Claim: native built-in names include drag, mapped to line.3.horizontal on Apple and drag_indicator on Android. Verified (defaults.ts, AstryxIcons.swift; the generated IconName.swift regenerates identically).
  • Claim: icons.doc.mjs was not Prettier-formatted on main. Verified (Prettier check warns on main, passes here).
  • Claim: the listed scoped test runs pass. Not reproduced at that scope; broader suites pass except docPropLiterals.test.ts, which fails (blocking finding above).
  • Files: ListReorderHandle.tsx (finding: duplicated slot renderer); .changeset/drag-icon-reorder-handle.md and globalIconRegistry.tsx (finding: unrecorded deprecation; owner decision on IconName); Icon/index.ts (owner decision on the slot; scope finding); docs/specs/components/List/List.spec.md (owner decision); ListReorder.test.tsx, ListInput.test.tsx (element counts skip the handle, part of the spec question); defaultIcons.tsx, Icon.doc.mjs, componentIcons.test.tsx, globalIconRegistry.test.tsx, List.doc.mjs, ListInput.doc.mjs, ListReorderTouch.interaction.browser.spec.ts, drag.doc.mjs, icon-names.mjs, the 7 theme and 7 CLI template icons.tsx files, defaults.ts, AstryxIcons.swift, IconName.swift: clear; icons.doc.mjs: clear (non-blocking formatting note).

Automated review (maintainer link)

Comment thread .changeset/drag-icon-reorder-handle.md Resolved
@ernestt
ernestt force-pushed the feat/drag-icon-reorder-handle branch from 50b9051 to b935ca9 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 b935ca9, rebased onto main.

  1. IconRegistry keeps drag optional in this release, as upload did, with a type test for a complete registry without it. The changeset names the migration and tells icon-set authors to map drag.
  2. FR5 changes in this pull request: "Its grip is decoration, hidden from assistive technology: a pseudo-element, or the theme's icon for the handle drawn inside the handle." Its verification row now fails a grip outside the handle, or one that assistive technology reaches. The rubric results are in the description, which asks cixzhang to approve it with the IconName row.
  3. The grip also resolves through a new component icon slot, list-reorder-handle, which falls back to drag (icon-resolution INV10).

Also: CI's docPropLiterals check wanted drag in useTableRowStatus's icon list, now added. The icons.doc.mjs reformat comes from the commit hook formatting a file main hadn't formatted; I kept it and noted it in the description.

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

This can't be approved yet: it waits on an engineering owner's decision about the reorderable-collections spec and the new public names, and four changes are needed either way.

Waiting on an owner decision. No current record decides these, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. The earlier change request also stays open until its reviewer re-reviews.

  • The amended FR5 of the reorderable-collections spec, which now allows the theme's icon drawn inside the handle.
  • drag as a new shared IconName with its six-dot default, the list-reorder-handle component icon slot with its state shape, the List record line that names it, and the native default symbols. The suggestion to give the slot a pressed state is part of this decision, because adding a state field after release is a compatibility change.

Blocking:

  • The amended FR5 still says reordering adds at most one element to a row and its verification row still fails more than one added element per row, while each handle's icon adds 8 elements and the minimal-DOM rule's list-row budget has no recorded exception, so align FR5's heading, its failure cell and the List record's matching line with what is counted, and record that exception with measured counts.
  • ListReorderHandle.tsx lines 239-243 and 390-399 copy the shared ComponentIcon slot renderer (ComponentIcon.tsx lines 52-70), so render <ComponentIcon slot="list-reorder-handle" …> instead and extend ComponentIcon if the grip needs its own style.
  • Authors of complete IconRegistry registries are told that drag becomes required in the next minor (the changeset and the type's doc comment), which deprecates registries that omit drag and needs an explicit owner decision naming IconRegistry, or the schedule removed. Found by: deprecation rule
  • The new ComponentIconSlotMap row is outside this pull request's declared scope, so add ComponentIconSlotMap to the Components: line.

Evidence needed:

  • Newly live check: the import-boundaries record now asks a pull request that changes an optional feature to report its first-load gzip delta, so add the base-against-head delta for a page that renders List without reorderable and for the four reference pages (pnpm size:pages on main).

The description's rubric results and spec section now describe the FR5 change, and IconRegistry keeps drag optional in this release.

Claims and files checked

Review mode: full; reason: recipe-changed (many rules)

  • Claim: three lines read as a menu and are the menu's shape. Verified (the base handle draws three lines).
  • Claim: ListInput and TransferList use the same handle. Verified (both render the new grip).
  • Claim: drag joins the shared icon names with a six-dot default. Verified (globalIconRegistry.tsx:86, defaultIcons.tsx:296-304).
  • Claim: a theme or app replaces it through theme icons or registerIcons. Verified (ListReorder.test.tsx).
  • Claim: bundled themes map it to GripVertical and the CLI definition becomes built-in. Verified (seven themes, seven templates, drag.doc.mjs).
  • Claim: the handle draws through list-reorder-handle, falling back to drag; null hides the grip and keeps the handle. Verified (ListReorder.test.tsx).
  • Claim: the grip is 16px in the secondary icon colour with no hover fill; box, focus ring, reorder fill, keyboard path and announcements are unchanged. Verified (browser probes; no keyboard or announcement code changes).
  • Claim: FR5 changes in this pull request, with a new grip sentence and verification row. Verified (spec.md:280-283, :322).
  • Claim: reordering still adds one element to a row, the handle. False as a count: each row gains 9 elements (blocking finding).
  • Claim: the List record gains one theme-surface line for the slot. Verified (List.spec.md:234-236).
  • Claim: a complete IconRegistry may omit drag, and an omitted drag draws the default. Verified (globalIconRegistry.test.tsx:95-100).
  • Claim: the next minor makes drag required. Not backed by an owner decision (blocking finding).
  • Claim: integration check reports a set without drag. Verified (built-in definitions drive the icon-set check).
  • Claim: native platforms map drag, Apple to the same symbol as menu. Verified (defaults.ts, AstryxIcons.swift, regenerated IconName.swift).
  • Claim: Prettier reindents icons.doc.mjs besides the new row. Verified.
  • Claim: useTableRowStatus's icon list gains drag. Verified.
  • Claim: the listed tests pass. Consistent with CI and this review's focused run.
  • .changeset/drag-icon-reorder-handle.md: deprecation finding.
  • docs/specs/AST-103-reorderable/spec.md: FR5 finding; owner decision.
  • docs/specs/components/List/List.spec.md: owner decision; line 240 in the FR5 finding.
  • packages/core/src/List/ListReorderHandle.tsx: ComponentIcon copy finding; first-load evidence.
  • packages/core/src/Icon/index.ts: scope finding; owner decision.
  • packages/core/src/Icon/globalIconRegistry.tsx: deprecation finding (doc comment); owner decision.
  • packages/core/src/Icon/defaultIcons.tsx: first-load evidence.
  • packages/core/src/Icon/globalIconRegistry.test.tsx, componentIcons.test.tsx, Icon.doc.mjs: clear.
  • packages/core/src/List/List.doc.mjs, __tests__/ListReorder.test.tsx, __tests__/ListReorderTouch.interaction.browser.spec.ts: clear.
  • packages/core/src/Table/useTableRowStatus.doc.mjs: clear.
  • packages/lab/src/ListInput/ListInput.doc.mjs, ListInput.test.tsx: clear.
  • packages/cli/assets/docs/icons.doc.mjs, packages/cli/assets/icons/definitions/drag.doc.mjs, packages/cli/authoring/doctypes/icon-set/icon-names.mjs, packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear.
  • packages/cli/assets/templates/themes/{butter,chocolate,gothic,matcha,neutral,stone,y2k}/icons.tsx: clear.
  • packages/themes/{butter,chocolate,gothic,matcha,neutral,stone,y2k}/src/icons.tsx: clear.
  • packages/native/apple/Sources/Astryx/Theme/AstryxIcons.swift, packages/native/apple/Sources/AstryxNative/Generated/IconName.swift, packages/native/src/icons/defaults.ts: native symbols in the owner decision; otherwise clear.

Automated review (maintainer link)

Comment thread docs/specs/AST-103-reorderable/spec.md Resolved
Comment thread packages/core/src/Icon/index.ts 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.

This can't be approved yet: approval waits only on an engineering owner's open change request.

  • josephfarina's change request of 2026-11-13 was dismissed from another account rather than by him, so under the review gate it stays open until he re-reviews or dismisses it himself; the three changes it asked for (drag optional on IconRegistry with a type test, the rewritten grip sentence and verification row in the reorderable-collections spec, and the writing-rubric results) are in at this head.

The record changes carry an engineering owner's /approve-spec for this exact head, and the Changeset and description claims hold against the code, the unit tests and browser captures of the base and this branch. Required CI has not run on this head yet, since the pull request is a draft. Optional: name the deprecation id in the IconRegistry doc comment, as the release note does.

Claims and files checked

Review mode: same-head; reason: none

Claims:

  • Icon gains a drag name with a six-dot default: verified (globalIconRegistry.tsx:86, defaultIcons.tsx:295).
  • The handle is the grip alone at 16px in the secondary icon color, instead of three lines in a 28px box: verified (Chromium: 28x28 to 16x16, color unchanged).
  • A mouse hits the handle anywhere in a square of at least 24px round the grip: verified (hits 11.5px from the centre on every side, a miss at 12.5px).
  • The focus ring's outer edge is that square's edge: verified (outline offset +2px plus 2px width).
  • Reorder mode fills the square with rounded corners, under the grip, in forced colors too: verified (ListReorderHandle.tsx:171-180, reorder-mode captures).
  • A finger keeps a 44px target inside the list: verified (phone-profile probe: hits 14px on either side, the handle 14px clear of the row end).
  • With a mouse, ListInput's Remove moves 8px and TransferList's 4px toward the end: verified (x 916 to 924, 565 to 569).
  • Under a coarse pointer each Remove moves 2px toward the start: verified from the styles (30px against 28px, 22px against 20px).
  • The grip resolves through a new component icon slot; a theme replaces it there or through the shared drag icon, and null hides the grip but keeps the handle: verified (unit tests).
  • A slot size changes only the icon, never the handle's box, target or room: verified (unit test; fixed 1rem box).
  • The bundled themes and CLI theme templates map drag to GripVertical: verified (14 files; the theme builds pass).
  • A complete IconRegistry may omit drag in this release and must map it in 0.8.0: verified (globalIconRegistry.tsx:121-122, type test, Core typecheck, deprecation and cleanup records).
  • The CLI's drag definition becomes built-in, and integration check reports a set without it: verified (drag.doc.mjs, golden tests pass).
  • Each handle adds 8 elements: verified (List +48 over six handles, ListInput +32, TransferList +24); the description's absolute counts come from a static build and are 4 lower than a dev-server Storybook.
  • A List without reorderable grows by nothing, and the reference pages grow by 32-55 B gzip: consistent with the code; the numbers were not re-measured.
  • ListInput and TransferList import nothing new: verified (their diffs add no imports).
  • Native maps drag on Apple and Android: verified (defaults.ts, AstryxIcons.swift, contract tests pass).
  • icons.doc.mjs gains one row plus a Prettier reindent: verified.
  • Two Changesets, a [feat] patch for Core and the themes and an [experimental] patch for the CLI: verified.
  • The new unit tests (fallback grip at sm, slot size, theme slot and null, registry without drag) pass: verified.
  • The description's captures show what this branch renders: consistent with this review's captures of the same stories.
  • Earlier change requests were dismissed by the repository owner on 2026-11-18: true, but that dismissal does not resolve the engineering owner's request (above).

Files (all 46 clear):

  • .changeset/drag-icon-definition.md: clear
  • .changeset/drag-icon-reorder-handle.md: clear
  • docs/architecture/icon-resolution-and-component-slots.md: clear
  • docs/specs/AST-032/spec.md: clear
  • docs/specs/AST-103-reorderable/spec.md: clear
  • docs/specs/components/List/List.spec.md: clear
  • packages/cli/assets/docs/icons.doc.mjs: clear
  • packages/cli/assets/icons/definitions/drag.doc.mjs: clear
  • packages/cli/assets/templates/themes/butter/icons.tsx: clear
  • packages/cli/assets/templates/themes/chocolate/icons.tsx: clear
  • packages/cli/assets/templates/themes/gothic/icons.tsx: clear
  • packages/cli/assets/templates/themes/matcha/icons.tsx: clear
  • packages/cli/assets/templates/themes/neutral/icons.tsx: clear
  • packages/cli/assets/templates/themes/stone/icons.tsx: clear
  • packages/cli/assets/templates/themes/y2k/icons.tsx: clear
  • packages/cli/authoring/doctypes/icon-set/icon-names.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear
  • packages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clear
  • packages/cli/test/__golden__/no-icon-set/validate-installed-set.txt: clear
  • packages/core/src/Icon/ComponentIcon.tsx: clear
  • packages/core/src/Icon/Icon.doc.mjs: clear
  • packages/core/src/Icon/componentIcons.test.tsx: clear
  • packages/core/src/Icon/defaultIcons.tsx: clear
  • packages/core/src/Icon/globalIconRegistry.test.tsx: clear
  • packages/core/src/Icon/globalIconRegistry.tsx: clear
  • packages/core/src/Icon/index.ts: clear
  • packages/core/src/List/List.doc.mjs: clear
  • packages/core/src/List/ListReorderHandle.tsx: clear
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear
  • packages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clear
  • packages/core/src/List/__tests__/ListReorderTouch.interaction.browser.spec.ts: clear
  • packages/core/src/Table/useTableRowStatus.doc.mjs: 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.tsx: clear
  • packages/native/apple/Sources/Astryx/Theme/AstryxIcons.swift: clear
  • packages/native/apple/Sources/AstryxNative/Generated/IconName.swift: clear
  • packages/native/src/icons/defaults.ts: clear
  • packages/themes/butter/src/icons.tsx: clear
  • packages/themes/chocolate/src/icons.tsx: clear
  • packages/themes/gothic/src/icons.tsx: clear
  • packages/themes/matcha/src/icons.tsx: clear
  • packages/themes/neutral/src/icons.tsx: clear
  • packages/themes/stone/src/icons.tsx: clear
  • packages/themes/y2k/src/icons.tsx: clear

Automated review (maintainer link)

@ernestt
ernestt marked this pull request as ready for review November 23, 2026 19:51
# 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
cixzhang marked this pull request as draft November 24, 2026 15:40
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 24, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 12703bb

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

This can't be approved yet: one edit to the description is needed, and nothing else in this review holds approval.

  • Regression: the description cites the reorderable-collections spec's grip decision as DEC-7 in five places (the Current specification list, the API-rows line, and the Records, R1 and R4 lines of the writing-rubric results), but merging main renumbered it DEC-8 and DEC-7 is now main's shift-feedback decision, so change those references to DEC-8 (the List record's DEC-7 is correct as written).

The record changes carry an engineering owner's /approve-spec for this exact head. josephfarina's change request of 2026-11-13 was dismissed from the maintainer account with his three points addressed, each still holds here, and that dismissal counts once no other finding remains, so he does not need to re-review. Required CI has not run on this head yet, since the pull request is a draft.

Claims and files checked

Review mode: same-head; reason: none

changed rules (1): An owner's CHANGES_REQUESTED stays unresolved (maintainer-account dismissal): checked the dismissal of the engineering owner's change request, his review and each of his three points at this head; the points hold, and the dismissal counts once the description finding above is fixed.

Claims:

  • Icon gains a drag name with a six-dot default: verified (globalIconRegistry.tsx:86, defaultIcons.tsx:295-305).
  • The handle is the grip alone at 16px in the secondary icon color, instead of three lines in a 28px box: verified (ListReorderHandle.tsx:95, :411-417).
  • A mouse hits the handle anywhere in a square of at least 24px round the grip: verified (ListReorderHandle.tsx:84, :97, :136-140; browser test ListReorderPointer.interaction.browser.spec.ts:1069).
  • The focus ring's outer edge is that square's edge: verified (ListReorderHandle.tsx:128-131).
  • Reorder mode fills the square with rounded corners, under the grip, in forced colors too: verified (ListReorderHandle.tsx:171-180; browser test :1155).
  • A finger keeps a 44px target inside the list: verified (ListReorderHandle.tsx:105; browser test ListReorderTouch.interaction.browser.spec.ts:711).
  • With a mouse, ListInput's Remove moves 8px and TransferList's 4px toward the end: verified from the styles (20px against 28px; 16px against 20px).
  • Under a coarse pointer each Remove moves 2px toward the start: verified from the styles (30px against 28px; 22px against 20px).
  • The grip resolves through a new component icon slot; a theme replaces it there or through the shared drag icon, and null hides the grip but keeps the handle: verified (index.ts:73-74, ListReorder.test.tsx:440, :456).
  • A slot size changes only the icon, centred on the fixed 1rem box: verified (ListReorder.test.tsx:497, ListReorderHandle.tsx:95).
  • The bundled themes and CLI theme templates map drag to GripVertical: verified (14 files).
  • A complete IconRegistry may omit drag in this release and must map it in 0.8.0: verified (globalIconRegistry.tsx:121-122, globalIconRegistry.test.tsx:95, the deprecation and cleanup records).
  • The deprecation schedule cites the owner's own decision: verified (quoted with its date and a link in the description).
  • The CLI's drag definition becomes built-in, and integration check reports a set without it: verified (drag.doc.mjs, icon-names.mjs, the golden files).
  • Two Changesets, a [feat] patch for Core and the themes and an [experimental] patch for the CLI: verified.
  • The reorderable-collections spec's FR5 now reads "Reordering adds one control to a row", with the rewritten verification row: verified (docs/specs/AST-103-reorderable/spec.md:285, :359).
  • That spec's new grip decision is DEC-7: false; it is DEC-8 at this head (spec.md:459), and DEC-7 is the shift-feedback decision from main (spec.md:447).
  • The List record gains a theme-surface line, DD1, and DEC-7 with measured element counts: verified (List.spec.md:221, :242, :360).
  • Each handle adds 8 elements: verified at the previous head, whose handle code is identical (List +48 over six handles).
  • A List without reorderable grows by nothing, and the reference pages grow by 32-55 B gzip: consistent with the code; not re-measured.
  • ListInput and TransferList import nothing new: verified (their diffs add no imports).
  • Native maps drag on Apple and Android: verified (defaults.ts, AstryxIcons.swift).
  • icons.doc.mjs gains one row plus a Prettier reindent: verified.
  • The new unit and browser tests in the Testing list exist: verified (ListReorder.test.tsx:420-497, the two browser specs); they passed at the previous, code-identical head and have not run at this head.
  • The description's captures show what this branch renders: consistent with earlier captures of the same stories.
  • Earlier change requests were dismissed by the repository owner on 2026-11-18: true; the maintainer-account dismissal of the engineering owner's request counts once no other finding remains (above).

Files (all 46 visited; the finding is in the description):

  • .changeset/drag-icon-definition.md: clear
  • .changeset/drag-icon-reorder-handle.md: clear
  • docs/architecture/icon-resolution-and-component-slots.md: clear
  • docs/specs/AST-032/spec.md: clear
  • docs/specs/AST-103-reorderable/spec.md: clear
  • docs/specs/components/List/List.spec.md: clear
  • packages/cli/assets/docs/icons.doc.mjs: clear
  • packages/cli/assets/icons/definitions/drag.doc.mjs: clear
  • packages/cli/assets/templates/themes/butter/icons.tsx: clear
  • packages/cli/assets/templates/themes/chocolate/icons.tsx: clear
  • packages/cli/assets/templates/themes/gothic/icons.tsx: clear
  • packages/cli/assets/templates/themes/matcha/icons.tsx: clear
  • packages/cli/assets/templates/themes/neutral/icons.tsx: clear
  • packages/cli/assets/templates/themes/stone/icons.tsx: clear
  • packages/cli/assets/templates/themes/y2k/icons.tsx: clear
  • packages/cli/authoring/doctypes/icon-set/icon-names.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear
  • packages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clear
  • packages/cli/test/__golden__/no-icon-set/validate-installed-set.txt: clear
  • packages/core/src/Icon/ComponentIcon.tsx: clear
  • packages/core/src/Icon/Icon.doc.mjs: clear
  • packages/core/src/Icon/componentIcons.test.tsx: clear
  • packages/core/src/Icon/defaultIcons.tsx: clear
  • packages/core/src/Icon/globalIconRegistry.test.tsx: clear
  • packages/core/src/Icon/globalIconRegistry.tsx: clear (optional: name DEP-0018 in the doc comment)
  • packages/core/src/Icon/index.ts: clear
  • packages/core/src/List/List.doc.mjs: clear
  • packages/core/src/List/ListReorderHandle.tsx: clear
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear
  • packages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clear
  • packages/core/src/List/__tests__/ListReorderTouch.interaction.browser.spec.ts: clear
  • packages/core/src/Table/useTableRowStatus.doc.mjs: 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.tsx: clear
  • packages/native/apple/Sources/Astryx/Theme/AstryxIcons.swift: clear
  • packages/native/apple/Sources/AstryxNative/Generated/IconName.swift: clear
  • packages/native/src/icons/defaults.ts: clear
  • packages/themes/butter/src/icons.tsx: clear
  • packages/themes/chocolate/src/icons.tsx: clear
  • packages/themes/gothic/src/icons.tsx: clear
  • packages/themes/matcha/src/icons.tsx: clear
  • packages/themes/neutral/src/icons.tsx: clear
  • packages/themes/stone/src/icons.tsx: clear
  • packages/themes/y2k/src/icons.tsx: clear

Automated review (maintainer link)

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.
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec a298f1b

@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 are needed before this can be approved: one fix in the reorder handle's touch growth.

  • The new reorderHandleGrowth (packages/core/src/List/ListReorderHandle.tsx:121-122) recomputes the shared touch hit area's default growth toward 44px, the private growth in packages/core/src/utils/hitArea.ts:105-109, instead of calling it, so a later fix to how the shared hit area grows targets would miss the reorder handle; export that default from hitArea.ts (for example as centeredGrowth) and have the handle clamp its result.

The description now names the right spec:AST-103 decision, and an engineering owner has approved this head's record changes. With this fixed, nothing else in this review holds approval.

Optional: IconRegistry's doc comment could name DEP-0018, as the release note does.

Claims and files checked

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

Claims:

  • drag joins the shared icon names with a six-dot default: verified (globalIconRegistry.tsx:86, defaultIcons.tsx:295-305).
  • A theme or app replaces it like any shared icon: verified (ListReorder.test.tsx:440).
  • The bundled themes and CLI theme templates map it to Lucide's GripVertical: verified (14 icons.tsx files).
  • The CLI's drag definition becomes built-in, and integration check reports a set without it: verified (drag.doc.mjs:9, validate-installed-set goldens).
  • The handle draws its grip through the new list-reorder-handle slot with a drag at sm fallback, and null hides the grip but keeps the handle: verified (ListReorderHandle.tsx:91, :443-449; ListReorder.test.tsx:456, :479).
  • ComponentIcon gains xstyle, so the grip passes presses to the handle: verified (ComponentIcon.tsx, ListReorderHandle.tsx:214).
  • The handle is the grip alone, in the secondary icon color, with a target of at least 24px, the ring on the target's edge and a rounded reorder-mode fill: verified (ListReorderHandle.tsx:97-99, :140-216; ListReorderPointer.interaction.browser.spec.ts:1069, :1155).
  • The box is a fixed 1rem and a slot size changes only the icon: verified (ListReorderHandle.tsx:97; ListReorder.test.tsx:497).
  • A finger keeps its 44px target and the list never cuts it: verified across the handle (ListReorderHandle.tsx:107; ListReorderTouch.interaction.browser.spec.ts:711); on the block axis it now stops at the list's edge (:116-135).
  • ListInput and TransferList derive their handle room from the same box and reach and import nothing new: verified (ListInput.tsx:195-202, TransferList.tsx:158-172).
  • Remove moves 8px (ListInput) and 4px (TransferList) toward the end with a mouse, and 2px toward the start under a coarse pointer: verified from the styles.
  • A complete IconRegistry may omit drag until 0.8.0, with a type test: verified (globalIconRegistry.tsx:121-122, globalIconRegistry.test.tsx:95).
  • The 0.8.0 step is recorded as a deprecation and cleanup pair with the owner's decision: verified (spec:AST-032 DEP-0018, icon-resolution CLN-0030, the quoted comment).
  • Two Changesets, a feature one for Core and the themes and an experimental one for the CLI: verified.
  • Native platforms map drag to system symbols: verified (native/src/icons/defaults.ts, AstryxIcons.swift).
  • Each handle adds 8 elements, and a List without reorderable loads none of the new handle code: verified (element-count deltas; the handle loads with the reorder engine).
  • The description's record references (FR5, DEC-8, DD1, DEC-7, DEP-0018, CLN-0030) and writing-rubric results: verified against the records.

Files:

  • packages/core/src/List/ListReorderHandle.tsx: finding (shared growth copied).
  • packages/core/src/Icon/globalIconRegistry.tsx: clear, with the optional doc-comment note.
  • Clear: both Changesets; the four records (docs/architecture/icon-resolution-and-component-slots.md, docs/specs/AST-032/spec.md, docs/specs/AST-103-reorderable/spec.md, docs/specs/components/List/List.spec.md).
  • Clear: packages/core/src/Icon/ComponentIcon.tsx, Icon.doc.mjs, componentIcons.test.tsx, defaultIcons.tsx, globalIconRegistry.test.tsx, index.ts; packages/core/src/List/List.doc.mjs, __tests__/ListReorder.test.tsx, __tests__/ListReorderHandleHitArea.test.ts, __tests__/ListReorderPointer.interaction.browser.spec.ts, __tests__/ListReorderTouch.interaction.browser.spec.ts; packages/core/src/Table/useTableRowStatus.doc.mjs.
  • Clear: packages/lab/src/ListInput/ListInput.doc.mjs, ListInput.test.tsx, ListInput.tsx; packages/lab/src/TransferList/TransferList.tsx.
  • Clear: the seven packages/themes/*/src/icons.tsx and seven packages/cli/assets/templates/themes/*/icons.tsx registries.
  • Clear: packages/cli/assets/docs/icons.doc.mjs, packages/cli/assets/icons/definitions/drag.doc.mjs, packages/cli/authoring/doctypes/icon-set/icon-names.mjs and the three no-icon-set goldens.
  • Clear: packages/native/apple/Sources/Astryx/Theme/AstryxIcons.swift, packages/native/apple/Sources/AstryxNative/Generated/IconName.swift, packages/native/src/icons/defaults.ts.

Automated review (maintainer link)

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

Copy link
Copy Markdown
Contributor

/approve-spec 155c731

@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 finished on this head yet.

An engineering owner has approved this head's record changes, no blocking finding remains, and josephfarina's change request of 2026-11-13 is resolved: it was dismissed from the maintainer account, and each of his three points holds here. Every CI job that has finished on this head passed, including the new browser tests for the grip, its 24px target and the 44px finger target.

Optional, non-blocking:

  • IconRegistry's doc comment could name DEP-0018, as the release note does.
  • The ListReorderHandle.tsx header trim is now tracked in #13746.
Claims and files checked

Review mode: same-head; reason: none

Claims:

  • drag joins the shared icon names with a six-dot default: verified (globalIconRegistry.tsx:86, defaultIcons.tsx:295-305).
  • A theme or an app replaces it as it replaces any shared icon: verified (ListReorder.test.tsx:440).
  • The bundled themes and CLI theme templates map it to Lucide's GripVertical: verified (14 icons.tsx files).
  • The CLI's drag definition becomes built-in, and integration check reports a set without it: verified (drag.doc.mjs:9, validate-installed-set goldens).
  • The handle draws its grip through the new list-reorder-handle slot with a drag at sm fallback, and null hides the grip but keeps the handle: verified (ListReorderHandle.tsx:96, :446-452; ListReorder.test.tsx:456, :479).
  • ComponentIcon gains xstyle, so the grip passes presses to the handle: verified (ComponentIcon.tsx:30, ListReorderHandle.tsx:217-219).
  • The handle is the grip alone, in the secondary icon color with no hover fill, with a target of at least 24px, the ring's outer edge on the target's edge and a rounded reorder-mode fill under the grip: verified (ListReorderHandle.tsx:104, :171-215; browser tests at ListReorderPointer.interaction.browser.spec.ts:1069 and :1155 passed in CI).
  • The box is a fixed 1rem, a slot size changes only the icon, and at a 20px root the box, grip, target and ring scale together, centred: verified (ListReorderHandle.tsx:102; ListReorder.test.tsx:497; ListReorderPointer.interaction.browser.spec.ts:1101 passed in CI).
  • A finger keeps its 44px target, clear of the row's end and inside the list: verified (ListReorderHandle.tsx:112, :121-138; ListReorderTouch.interaction.browser.spec.ts:711 passed in CI for padded and flush rows).
  • The handle's touch growth clamps the shared hit area's centred growth: verified (ListReorderHandle.tsx:126, utils/hitArea.ts:106).
  • ListInput and TransferList derive their handle room from the same box and reach and import nothing new: verified (ListInput.tsx:200-202, TransferList.tsx:160-173).
  • With a mouse, ListInput's Remove moves 8px and TransferList's 4px toward the end; under a coarse pointer each moves 2px toward the start: verified from the styles (20px against 28px, 16px against 20px; 30px against 28px, 22px against 20px).
  • A complete IconRegistry may omit drag until 0.8.0, with a type test: verified (globalIconRegistry.tsx:121-122, globalIconRegistry.test.tsx:95; typecheck passed in CI).
  • The 0.8.0 step is recorded as a deprecation and cleanup pair and cites the owner's own quoted decision: verified (the icon registry deprecation and cleanup records, the INV10 line, the quoted comment).
  • The trimmed record text drops the List decision's rejected-alternative line and the extra 0.8.0 prose in the reorderable-collections spec: verified.
  • The native and CLI parity tests require every Core icon name: verified (native/src/icons/defaults.test.ts:19, icon-names.test.mjs:18-24).
  • Two Changesets, a feature one for Core and the themes and an experimental one for the CLI: verified.
  • Native maps drag on Apple and Android: verified (native/src/icons/defaults.ts, AstryxIcons.swift).
  • The reorderable-collections spec's FR5 now reads "Reordering adds one control to a row", with the rewritten verification row and a new DEC-8 for the grip: verified (docs/specs/AST-103-reorderable/spec.md:285, :359, :459).
  • The List record gains a theme-surface line, DD1 and DEC-7 with measured element counts: verified (List.spec.md:221, :242, :360).
  • Each handle adds 8 elements (List 129 to 177, ListInput 421 to 453, TransferList 217 to 241): consistent with the code (a wrapper, an SVG and six circles per handle); measured at an earlier head with the same rendering.
  • The reference pages grow by 32-55 B gzip and a List without reorderable by nothing: consistent with CI's size report for this head (List +0 B; Icon importers +30 to +50 B).
  • The description's captures show the fixed-1rem handle: consistent; the handle's styles have not changed since.
  • The new unit and browser tests in the Testing list exist and run in CI: verified; the browser tests passed at this head, and the unit-test shards were finishing.
  • Earlier change requests were dismissed by the repository owner on 2026-11-18: verified.
  • The Scope line names Icon with its three types, List, ListInput, TransferList, the CLI icon definitions and the native icon names: verified.
  • icons.doc.mjs gains one row plus a Prettier reindent: verified.
  • The writing-rubric results match the changed record text: verified.
  • Trimming the handle's file header is a follow-up outside this pull request, tracked in #13746: verified (the issue is open).

Files (all 48 visited):

  • .changeset/drag-icon-definition.md: clear
  • .changeset/drag-icon-reorder-handle.md: clear
  • docs/architecture/icon-resolution-and-component-slots.md: clear
  • docs/specs/AST-032/spec.md: clear
  • docs/specs/AST-103-reorderable/spec.md: clear
  • docs/specs/components/List/List.spec.md: clear
  • packages/cli/assets/docs/icons.doc.mjs: clear
  • packages/cli/assets/icons/definitions/drag.doc.mjs: clear
  • packages/cli/assets/templates/themes/butter/icons.tsx: clear
  • packages/cli/assets/templates/themes/chocolate/icons.tsx: clear
  • packages/cli/assets/templates/themes/gothic/icons.tsx: clear
  • packages/cli/assets/templates/themes/matcha/icons.tsx: clear
  • packages/cli/assets/templates/themes/neutral/icons.tsx: clear
  • packages/cli/assets/templates/themes/stone/icons.tsx: clear
  • packages/cli/assets/templates/themes/y2k/icons.tsx: clear
  • packages/cli/authoring/doctypes/icon-set/icon-names.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear
  • packages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clear
  • packages/cli/test/__golden__/no-icon-set/validate-installed-set.txt: clear
  • packages/core/src/Icon/ComponentIcon.tsx: clear
  • packages/core/src/Icon/Icon.doc.mjs: clear
  • packages/core/src/Icon/componentIcons.test.tsx: clear
  • packages/core/src/Icon/defaultIcons.tsx: clear
  • packages/core/src/Icon/globalIconRegistry.test.tsx: clear
  • packages/core/src/Icon/globalIconRegistry.tsx: clear (optional: name DEP-0018 in the doc comment)
  • packages/core/src/Icon/index.ts: clear
  • packages/core/src/List/List.doc.mjs: clear
  • packages/core/src/List/ListReorderHandle.tsx: clear (non-blocking: header comment, tracked in #13746)
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear
  • packages/core/src/List/__tests__/ListReorderHandleHitArea.test.ts: clear
  • packages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clear
  • packages/core/src/List/__tests__/ListReorderTouch.interaction.browser.spec.ts: clear
  • packages/core/src/Table/useTableRowStatus.doc.mjs: clear
  • packages/core/src/utils/hitArea.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.tsx: clear
  • packages/native/apple/Sources/Astryx/Theme/AstryxIcons.swift: clear
  • packages/native/apple/Sources/AstryxNative/Generated/IconName.swift: clear
  • packages/native/src/icons/defaults.ts: clear
  • packages/themes/butter/src/icons.tsx: clear
  • packages/themes/chocolate/src/icons.tsx: clear
  • packages/themes/gothic/src/icons.tsx: clear
  • packages/themes/matcha/src/icons.tsx: clear
  • packages/themes/neutral/src/icons.tsx: clear
  • packages/themes/stone/src/icons.tsx: clear
  • packages/themes/y2k/src/icons.tsx: clear

Automated review (maintainer link)

* trailing edge of a row in edit mode. A finger held still on it for the
* scroll view's content-touch delay (150 ms) claims the drag. A flick that
* starts on it scrolls the table instead. So until the claim, the handle
* On iOS 26.2 (measured), a finger held still on a table's reorder control

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 (source comments): this header now runs 31 lines, past the guide of about 12, and this iOS paragraph repeats the touchAction comment at lines 189-194. Keep the @file/@input/@output/@position lines and the SYNC line here, and move the one measured fact next to touchAction:

// On iOS 26.2, a finger held still on a table's reorder control for 150 ms
// claims the drag. A flick that starts on it scrolls the table.

@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
@cixzhang
cixzhang marked this pull request as ready for review November 24, 2026 18:53
@ernestt
ernestt merged commit c46deaa into main Nov 24, 2026
164 checks passed
cixzhang added a commit to Geervan/astryx that referenced this pull request Nov 24, 2026
Maintainer merge. meta#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.
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/drag-icon-reorder-handle branch November 25, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 155c7312 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 A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) 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.

4 participants