Repository navigation
feat(Icon, List): a drag icon; the reorder handle is its grip alone, with a 24px target - #11445
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
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
dragjoins the sharedIconNameset, a new public API name. - The new resting look: a six-dot grip at 16px in
--color-icon-primaryinstead of three lines in--color-icon-secondary.
Blocking:
- Adding
'drag'toIconNamemakesIconRegistryrequire adragentry, so any complete registry typed asIconRegistry(the shape the CLI theme templates scaffold) stops compiling after this patch release; keepdragoptional onIconRegistryfor now, as was done forupload, 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:
dragis 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
defineThemeicons orregisterIcons(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
dragdefinition 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
dragtoline.3.horizontaland Android todrag_indicator(verified). - Claim: the change is additive for themes, while complete
IconRegistryobjects must adddrag(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 theIconRegistrychange, 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,
dragdefinition, icon names (clear); 7 theme registries and 7 CLI theme templates (clear); native defaults, Apple icon map, generated Swift names (clear).
d8c6286 to
ef74432
Compare
There was a problem hiding this comment.
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
dragjoins the sharedIconNameset, 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'toIconNamemakesIconRegistryrequire adragentry, so any complete registry typed asIconRegistry(the shape the CLI theme templates scaffold) stops compiling after this patch release; keepdragoptional onIconRegistryfor now, as was done forupload, 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-secondaryat rest and in reorder mode (ListReorderHandle.tsxlines 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:
dragis 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
defineThemeicons orregisterIcons(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
dragdefinition 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
dragtoline.3.horizontaland Android todrag_indicator(verified). - Claim: the change is additive for themes, while complete
IconRegistryobjects must adddrag(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 theIconRegistrychange, 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,
dragdefinition, icon name list (clear); 7 theme registries and 7 CLI theme templates (clear); native defaults, Apple icon map, generated Swift names (clear).
josephfarina
left a comment
There was a problem hiding this comment.
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
- In
packages/core/src/Icon/globalIconRegistry.tsx, keepdragoptional for complete registries, the wayuploadstarted:Say in its doc comment that an omittedexport type IconRegistry = Record<Exclude<IconName, 'drag'>, ReactNode> & Partial<Record<'drag', ReactNode>>;
dragresolves the default grip. The bundled themes and CLI templates can keep theirdragentries. - Add a type test beside the registry tests: a complete registry without
dragcompiles. If you wantdragrequired later, add a deprecation and cleanup pair to AST-032 like theuploadones, aimed at the next scheduled minor. - 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'sdragicon 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 newIconNamerow (INV25) together, which your description already asks for. - Optional: tell icon-set authors in the changeset that their sets now map
drag.packages/cli/assets/docs/icons.doc.mjsalso 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 (
builtInexactly for anIconName), and every bundled theme and CLI template mapsdrag. - 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.
|
I'll run a full review to re-check this with your note. |
ef74432 to
50b9051
Compare
There was a problem hiding this comment.
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
Icongrip 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. dragas a new sharedIconName, the newlist-reorder-handlecomponent icon slot, and the List record line that names it.
Blocking:
ListReorderHandle.tsxlines 239-243 and 390-399 copy the sharedComponentIconslot renderer (ComponentIcon.tsxlines 52-70), so render<ComponentIcon slot="list-reorder-handle" …>instead and extendComponentIconif the grip needs its own style.- Authors of complete
IconRegistryregistries are told thatdragbecomes required in the next minor (the changeset and the type's doc comment), which deprecates registries that omitdragand needs an explicit owner decision namingIconRegistry, or the schedule removed. Found by: deprecation rule - The new
ComponentIconSlotMaprow is outside this pull request's declared scope, so addComponentIconSlotMapto the description'sComponents:line. - Miss:
useTableRowStatus.doc.mjsline 16 lists the valid icon names withoutdrag, sodocPropLiterals.test.tsfails at this head (CItest-ui (3/4)); adddragto 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:
dragjoins the semantic icon names with a six-dot default. Verified (globalIconRegistry.tsxline 84,defaultIcons.tsxlines 295-305). - Claim: a theme or app replaces
dragthrough theme icons orregisterIcons. Verified (ListReorder.test.tsxlines 439-453). - Claim: the handle draws its grip through the new
list-reorder-handleslot, falling back todrag, andnullhides the grip and keeps the handle. Verified (ListReorderHandle.tsxlines 239-243 and 390-399;ListReorder.test.tsxlines 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
IconRegistrymay omitdragin this release and an omitteddragdraws the default. Verified (globalIconRegistry.tsxlines 119-120,globalIconRegistry.test.tsxlines 95-100, Core typecheck). - Claim: the next minor makes
dragrequired. Not backed by any record or owner decision (blocking finding above). - Claim: bundled themes and CLI theme templates map
dragtoGripVertical, and the CLIdragdefinition becomes built-in. Verified (14icons.tsxfiles,drag.doc.mjsline 9). - Claim: an icon set without
draggetsicon_builtin_definition_missing. Verified (the check reads built-in definitions;dragis 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 toline.3.horizontalon Apple anddrag_indicatoron Android. Verified (defaults.ts,AstryxIcons.swift; the generatedIconName.swiftregenerates identically). - Claim:
icons.doc.mjswas not Prettier-formatted onmain. Verified (Prettier check warns onmain, 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.mdandglobalIconRegistry.tsx(finding: unrecorded deprecation; owner decision onIconName);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 templateicons.tsxfiles,defaults.ts,AstryxIcons.swift,IconName.swift: clear;icons.doc.mjs: clear (non-blocking formatting note).
50b9051 to
b935ca9
Compare
|
Thanks, Joseph. Round 2 is up at b935ca9, rebased onto main.
Also: CI's |
There was a problem hiding this comment.
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.
dragas a new sharedIconNamewith its six-dot default, thelist-reorder-handlecomponent icon slot with its state shape, the List record line that names it, and the native default symbols. The suggestion to give the slot apressedstate 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.tsxlines 239-243 and 390-399 copy the sharedComponentIconslot renderer (ComponentIcon.tsxlines 52-70), so render<ComponentIcon slot="list-reorder-handle" …>instead and extendComponentIconif the grip needs its own style.- Authors of complete
IconRegistryregistries are told thatdragbecomes required in the next minor (the changeset and the type's doc comment), which deprecates registries that omitdragand needs an explicit owner decision namingIconRegistry, or the schedule removed. Found by: deprecation rule - The new
ComponentIconSlotMaprow is outside this pull request's declared scope, so addComponentIconSlotMapto theComponents: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
reorderableand for the four reference pages (pnpm size:pagesonmain).
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:
dragjoins 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
GripVerticaland the CLI definition becomes built-in. Verified (seven themes, seven templates,drag.doc.mjs). - Claim: the handle draws through
list-reorder-handle, falling back todrag;nullhides 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
IconRegistrymay omitdrag, and an omitteddragdraws the default. Verified (globalIconRegistry.test.tsx:95-100). - Claim: the next minor makes
dragrequired. Not backed by an owner decision (blocking finding). - Claim:
integration checkreports a set withoutdrag. Verified (built-in definitions drive the icon-set check). - Claim: native platforms map
drag, Apple to the same symbol asmenu. Verified (defaults.ts,AstryxIcons.swift, regeneratedIconName.swift). - Claim: Prettier reindents
icons.doc.mjsbesides the new row. Verified. - Claim:
useTableRowStatus's icon list gainsdrag. 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:ComponentIconcopy 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.
There was a problem hiding this comment.
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 (
dragoptional onIconRegistrywith 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
dragname 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
dragicon, andnullhides 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
dragtoGripVertical: verified (14 files; the theme builds pass). - A complete
IconRegistrymay omitdragin 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
dragdefinition becomes built-in, andintegration checkreports 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
reorderablegrows 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
dragon Apple and Android: verified (defaults.ts,AstryxIcons.swift, contract tests pass). icons.doc.mjsgains 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 andnull, registry withoutdrag) 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: cleardocs/architecture/icon-resolution-and-component-slots.md: cleardocs/specs/AST-032/spec.md: cleardocs/specs/AST-103-reorderable/spec.md: cleardocs/specs/components/List/List.spec.md: clearpackages/cli/assets/docs/icons.doc.mjs: clearpackages/cli/assets/icons/definitions/drag.doc.mjs: clearpackages/cli/assets/templates/themes/butter/icons.tsx: clearpackages/cli/assets/templates/themes/chocolate/icons.tsx: clearpackages/cli/assets/templates/themes/gothic/icons.tsx: clearpackages/cli/assets/templates/themes/matcha/icons.tsx: clearpackages/cli/assets/templates/themes/neutral/icons.tsx: clearpackages/cli/assets/templates/themes/stone/icons.tsx: clearpackages/cli/assets/templates/themes/y2k/icons.tsx: clearpackages/cli/authoring/doctypes/icon-set/icon-names.mjs: clearpackages/cli/test/__golden__/no-icon-set/docs-topics.json: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.txt: clearpackages/core/src/Icon/ComponentIcon.tsx: clearpackages/core/src/Icon/Icon.doc.mjs: clearpackages/core/src/Icon/componentIcons.test.tsx: clearpackages/core/src/Icon/defaultIcons.tsx: clearpackages/core/src/Icon/globalIconRegistry.test.tsx: clearpackages/core/src/Icon/globalIconRegistry.tsx: clearpackages/core/src/Icon/index.ts: clearpackages/core/src/List/List.doc.mjs: clearpackages/core/src/List/ListReorderHandle.tsx: clearpackages/core/src/List/__tests__/ListReorder.test.tsx: clearpackages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clearpackages/core/src/List/__tests__/ListReorderTouch.interaction.browser.spec.ts: clearpackages/core/src/Table/useTableRowStatus.doc.mjs: clearpackages/lab/src/ListInput/ListInput.doc.mjs: clearpackages/lab/src/ListInput/ListInput.test.tsx: clearpackages/lab/src/ListInput/ListInput.tsx: clearpackages/lab/src/TransferList/TransferList.tsx: clearpackages/native/apple/Sources/Astryx/Theme/AstryxIcons.swift: clearpackages/native/apple/Sources/AstryxNative/Generated/IconName.swift: clearpackages/native/src/icons/defaults.ts: clearpackages/themes/butter/src/icons.tsx: clearpackages/themes/chocolate/src/icons.tsx: clearpackages/themes/gothic/src/icons.tsx: clearpackages/themes/matcha/src/icons.tsx: clearpackages/themes/neutral/src/icons.tsx: clearpackages/themes/stone/src/icons.tsx: clearpackages/themes/y2k/src/icons.tsx: clear
# 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
|
/approve-spec 12703bb |
There was a problem hiding this comment.
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
mainrenumbered it DEC-8 and DEC-7 is nowmain'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
dragname 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 testListReorderPointer.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 testListReorderTouch.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
dragicon, andnullhides 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
dragtoGripVertical: verified (14 files). - A complete
IconRegistrymay omitdragin 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
dragdefinition becomes built-in, andintegration checkreports 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 frommain(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
reorderablegrows 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
dragon Apple and Android: verified (defaults.ts,AstryxIcons.swift). icons.doc.mjsgains 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: cleardocs/architecture/icon-resolution-and-component-slots.md: cleardocs/specs/AST-032/spec.md: cleardocs/specs/AST-103-reorderable/spec.md: cleardocs/specs/components/List/List.spec.md: clearpackages/cli/assets/docs/icons.doc.mjs: clearpackages/cli/assets/icons/definitions/drag.doc.mjs: clearpackages/cli/assets/templates/themes/butter/icons.tsx: clearpackages/cli/assets/templates/themes/chocolate/icons.tsx: clearpackages/cli/assets/templates/themes/gothic/icons.tsx: clearpackages/cli/assets/templates/themes/matcha/icons.tsx: clearpackages/cli/assets/templates/themes/neutral/icons.tsx: clearpackages/cli/assets/templates/themes/stone/icons.tsx: clearpackages/cli/assets/templates/themes/y2k/icons.tsx: clearpackages/cli/authoring/doctypes/icon-set/icon-names.mjs: clearpackages/cli/test/__golden__/no-icon-set/docs-topics.json: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.txt: clearpackages/core/src/Icon/ComponentIcon.tsx: clearpackages/core/src/Icon/Icon.doc.mjs: clearpackages/core/src/Icon/componentIcons.test.tsx: clearpackages/core/src/Icon/defaultIcons.tsx: clearpackages/core/src/Icon/globalIconRegistry.test.tsx: clearpackages/core/src/Icon/globalIconRegistry.tsx: clear (optional: name DEP-0018 in the doc comment)packages/core/src/Icon/index.ts: clearpackages/core/src/List/List.doc.mjs: clearpackages/core/src/List/ListReorderHandle.tsx: clearpackages/core/src/List/__tests__/ListReorder.test.tsx: clearpackages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clearpackages/core/src/List/__tests__/ListReorderTouch.interaction.browser.spec.ts: clearpackages/core/src/Table/useTableRowStatus.doc.mjs: clearpackages/lab/src/ListInput/ListInput.doc.mjs: clearpackages/lab/src/ListInput/ListInput.test.tsx: clearpackages/lab/src/ListInput/ListInput.tsx: clearpackages/lab/src/TransferList/TransferList.tsx: clearpackages/native/apple/Sources/Astryx/Theme/AstryxIcons.swift: clearpackages/native/apple/Sources/AstryxNative/Generated/IconName.swift: clearpackages/native/src/icons/defaults.ts: clearpackages/themes/butter/src/icons.tsx: clearpackages/themes/chocolate/src/icons.tsx: clearpackages/themes/gothic/src/icons.tsx: clearpackages/themes/matcha/src/icons.tsx: clearpackages/themes/neutral/src/icons.tsx: clearpackages/themes/stone/src/icons.tsx: clearpackages/themes/y2k/src/icons.tsx: clear
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.
|
/approve-spec a298f1b |
There was a problem hiding this comment.
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 privategrowthinpackages/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 fromhitArea.ts(for example ascenteredGrowth) 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:
dragjoins 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 (14icons.tsxfiles). - The CLI's
dragdefinition becomes built-in, andintegration checkreports a set without it: verified (drag.doc.mjs:9,validate-installed-setgoldens). - The handle draws its grip through the new
list-reorder-handleslot with adragatsmfallback, andnullhides the grip but keeps the handle: verified (ListReorderHandle.tsx:91,:443-449;ListReorder.test.tsx:456,:479). ComponentIcongainsxstyle, 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
IconRegistrymay omitdraguntil 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-032DEP-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
dragto system symbols: verified (native/src/icons/defaults.ts,AstryxIcons.swift). - Each handle adds 8 elements, and a List without
reorderableloads 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.tsxand sevenpackages/cli/assets/templates/themes/*/icons.tsxregistries. - Clear:
packages/cli/assets/docs/icons.doc.mjs,packages/cli/assets/icons/definitions/drag.doc.mjs,packages/cli/authoring/doctypes/icon-set/icon-names.mjsand the threeno-icon-setgoldens. - Clear:
packages/native/apple/Sources/Astryx/Theme/AstryxIcons.swift,packages/native/apple/Sources/AstryxNative/Generated/IconName.swift,packages/native/src/icons/defaults.ts.
…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.
|
/approve-spec 155c731 |
There was a problem hiding this comment.
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 nameDEP-0018, as the release note does.- The
ListReorderHandle.tsxheader trim is now tracked in #13746.
Claims and files checked
Review mode: same-head; reason: none
Claims:
dragjoins 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 (14icons.tsxfiles). - The CLI's
dragdefinition becomes built-in, andintegration checkreports a set without it: verified (drag.doc.mjs:9,validate-installed-setgoldens). - The handle draws its grip through the new
list-reorder-handleslot with adragatsmfallback, andnullhides the grip but keeps the handle: verified (ListReorderHandle.tsx:96,:446-452;ListReorder.test.tsx:456,:479). ComponentIcongainsxstyle, 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 atListReorderPointer.interaction.browser.spec.ts:1069and:1155passed 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:1101passed 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:711passed 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
IconRegistrymay omitdraguntil 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
dragon 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
reorderableby 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.mjsgains 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: cleardocs/architecture/icon-resolution-and-component-slots.md: cleardocs/specs/AST-032/spec.md: cleardocs/specs/AST-103-reorderable/spec.md: cleardocs/specs/components/List/List.spec.md: clearpackages/cli/assets/docs/icons.doc.mjs: clearpackages/cli/assets/icons/definitions/drag.doc.mjs: clearpackages/cli/assets/templates/themes/butter/icons.tsx: clearpackages/cli/assets/templates/themes/chocolate/icons.tsx: clearpackages/cli/assets/templates/themes/gothic/icons.tsx: clearpackages/cli/assets/templates/themes/matcha/icons.tsx: clearpackages/cli/assets/templates/themes/neutral/icons.tsx: clearpackages/cli/assets/templates/themes/stone/icons.tsx: clearpackages/cli/assets/templates/themes/y2k/icons.tsx: clearpackages/cli/authoring/doctypes/icon-set/icon-names.mjs: clearpackages/cli/test/__golden__/no-icon-set/docs-topics.json: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.txt: clearpackages/core/src/Icon/ComponentIcon.tsx: clearpackages/core/src/Icon/Icon.doc.mjs: clearpackages/core/src/Icon/componentIcons.test.tsx: clearpackages/core/src/Icon/defaultIcons.tsx: clearpackages/core/src/Icon/globalIconRegistry.test.tsx: clearpackages/core/src/Icon/globalIconRegistry.tsx: clear (optional: name DEP-0018 in the doc comment)packages/core/src/Icon/index.ts: clearpackages/core/src/List/List.doc.mjs: clearpackages/core/src/List/ListReorderHandle.tsx: clear (non-blocking: header comment, tracked in #13746)packages/core/src/List/__tests__/ListReorder.test.tsx: clearpackages/core/src/List/__tests__/ListReorderHandleHitArea.test.ts: clearpackages/core/src/List/__tests__/ListReorderPointer.interaction.browser.spec.ts: clearpackages/core/src/List/__tests__/ListReorderTouch.interaction.browser.spec.ts: clearpackages/core/src/Table/useTableRowStatus.doc.mjs: clearpackages/core/src/utils/hitArea.ts: clearpackages/lab/src/ListInput/ListInput.doc.mjs: clearpackages/lab/src/ListInput/ListInput.test.tsx: clearpackages/lab/src/ListInput/ListInput.tsx: clearpackages/lab/src/TransferList/TransferList.tsx: clearpackages/native/apple/Sources/Astryx/Theme/AstryxIcons.swift: clearpackages/native/apple/Sources/AstryxNative/Generated/IconName.swift: clearpackages/native/src/icons/defaults.ts: clearpackages/themes/butter/src/icons.tsx: clearpackages/themes/chocolate/src/icons.tsx: clearpackages/themes/gothic/src/icons.tsx: clearpackages/themes/matcha/src/icons.tsx: clearpackages/themes/neutral/src/icons.tsx: clearpackages/themes/stone/src/icons.tsx: clearpackages/themes/y2k/src/icons.tsx: clear
| * 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 |
There was a problem hiding this comment.
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.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.
…eorderHandle (#13746) (#13749) * docs(List): consolidate iOS measured fact beside touchAction in ListReorderHandle * Merge branch 'main' into docs/list-reorder-handle-header-comment Maintainer merge. #11445 rewrote the header paragraph on main; the merge keeps main's tags and drops that whole paragraph, as this change intends, and keeps the iOS fact beside touchAction. * chore(changeset): a docs patch note for the ListReorderHandle header Maintainer edit. Core changed, so a changeset names it. * docs(List): one fact per sentence by touchAction; header tags only Maintainer edit, comment only. The iOS measurement is its own sentence beside touchAction, and the header's @output lists only the exports; the handle's behaviour moves to ListReorderHandle's own doc comment. * docs(List): @output names every export Maintainer edit, comment only: reorderListStyle and INSERTION_LINE_THICKNESS were missing from the list. * Merge branch 'main' into docs/list-reorder-handle-header-comment Maintainer merge. #11575 rewrote the same header on main: the merge keeps main's code and its new exports and @position text, keeps the header to its tags (@output now names every export, the handle option's placement included), moves the handle's behaviour to its own doc comment, and keeps the iOS measurement beside touchAction. * Merge branch 'main' into docs/list-reorder-handle-header-comment Co-authored-by: Cindy Zhang <[email protected]>
Reorder stack, now three pull requests. At the spec owner's suggestion, the five pull requests become three. Review and merge in this order:
dragicon; 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)handleoption, withplacement('end'by default) andvisibility(folds in feat(List): the reorder handle starts its row and shows on hover or focus #11454)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.
menuicon's shape. People who see them expect a menu, not a grip.Problem and solution fit
dragicon.dragjoins the semanticIconNameset, 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}})orregisterIcons({drag}). The bundled themes and CLI theme templates map it to Lucide'sGripVertical, and the CLI'sdragicon definition becomes a built-in one.list-reorder-handle, rendered by the sharedComponentIconrenderer, which falls back todragat thesmsize. A theme replaces the grip for the handle alone;nullhides the grip and keeps the handle.ComponentIcongains anxstyleprop, so the grip passes its presses to the handle (pointer-events: none).smicon size. A theme's slotsizechanges 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-slotsINV8). At a 20px root the box, the grip, the target and the ring all scale with the root, centred.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:
spec:AST-103(its DEP section and DEC-8 sentence).dragdefaults (Apple and Android) and the CLI icon-setdragbuilt-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.spec:AST-032FR6 and DEC-3 say a completeIconRegistryrequires every shared name, sodrag's optional window has a deprecation record:DEP-0018inspec:AST-032, andCLN-0030(0.8.0 makesdragrequired) inarchitecture:icon-resolution-and-component-slots, with one cross-reference line in INV10's paragraph.IconRegistry's doc comment says the same.spec:AST-017FR29c makes Astryx's own packages migrate in the deprecation patch, so the seven bundled themes and seven CLI theme templates mapdragto Lucide'sGripVertical, as this pull request first had them.architecture:icon-resolution-and-component-slotstext for the 0.8.0IconRegistrystep: the INV10 line and its CLN-0030 entry."spec:AST-017FR22 requires: a[feat]one for Core, and an[experimental]one for the CLI's icon-set change.draga full built-in definition (AST-084), so an icon set that doesn't map it is reported byastryx integration check. Icon sets are experimental.Current specification
spec:AST-103(reorderable collections) changes in this pull request. Owner approval needed (cixzhang).dragicon, through thelist-reorder-handlecomponent icon slot; the slot's size changes only the icon. It rejects pseudo-element lines, which no theme can replace.component:Listchanges in this pull request. Owner approval needed (cixzhang).componentIcons['list-reorder-handle'],dragatsmwith no entry; the slot's size changes only the icon.Design decisionsrow 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.architecture:component-style-authoringINV7's surface budget: the grip is the theme's icon, so its own elements join the row inside the handle. The defaultdragadds 8 per handle (a wrapper and an SVG of six dots). Measured counts are under Evidence.architecture:public-component-apiINV25: the three API rows,IconName'drag',ComponentIconSlotMap['list-reorder-handle'](a stateless slot), and theIconRegistryrule, are decided byspec:AST-103DEC-8, the List record line andspec:AST-032DEP-0018in this pull request.spec:AST-094FR42 (hit areas): the existing internal moduleutils/hitArea.tsnow also exportscenteredGrowth(rect, minSize), the unclamped growth toward 44 px it already used inside. Usage:reorderHandleGrowthtakescenteredGrowth(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'sgrowthoption 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-slotsINV10 and INV3: a new Core icon role is a slot inComponentIconSlotMapthat maps to a sharedIconName.spec:AST-084(icon sets) FR0, FR4 and FR15, andspec:AST-017FR22:drag.doc.mjsgainsbuiltIn: true, andintegration checkreportsicon_builtin_definition_missingfor 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 mapsdragtoline.3.horizontal, the system's reorder glyph; Android maps it todrag_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
IconNamegains'drag'.defineThemeicons are a partial map, so no theme has to change.IconRegistrykeepsdragoptional until 0.8.0 (DEP-0018), so a complete registry still compiles.ComponentIconSlotMapgains'list-reorder-handle': true, a slot without state, documented in List'stheming.componentIcons.drag. Until it does,integration checkreportsicon_builtin_definition_missing.sm) instead of three lines in a 28px box. No prop, keyboard or announcement change.IconName.dragjoins the generated built-in names.Design and alternatives
drag. The slot maps to the shared name (INV3).dragicon.{pressed}state: left out of this pull request. It waits on an owner's sign-off, and can be added in its own change.architecture:icon-resolution-and-component-slotsINV8). The box is 1rem instead of 16px, so a 20px root still centres the default grip in it.dragrequired inIconRegistrynow: rejected. It would break every complete registry in a patch.menuglyph, 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
mainand of this branch, at 2x; the phone is an iPhone 13 profile.Element counts (
document.body.querySelectorAll('*').lengthfor each story at rest,main→ this branch; the same under a fine and a coarse pointer). Each handle adds 8 elements, thedragicon's wrapper and SVG of six dots (component:ListDEC-7):mainFirst-load JavaScript (
pnpm size:pages --base main --page list=List --unused-on list, minified / gzip bytes). The reference pages grow by the shareddragartwork in the default registry; a List withoutreorderabledoes not grow:mainreorderable)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
mainList, keyboard focus on a handle: the ring's outer edge is the target's edge
mainList, reorder mode: the fill is the target, under the grip
mainList, reorder mode in forced colors: the grip shows over the highlight
mainList (Reorder Flush), keyboard focus: the handle stays clear of the row end, so the ring is whole
mainTransferList (Locked): movable and fixed rows keep one Remove column
mainListInput (Tag options), pointer over a record
mainList on a phone (iPhone 13 profile): the grip at the row's end, its 44px target inside the list
mainReviews addressed
IconRegistrykeepsdragoptional, 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.dragand the slot stay as she decided; the slot lives incomponentIconsand falls back todrag, 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.{pressed}state is left out until an owner signs off.ComponentIconSlotMapis 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 throughComponentIcon; 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 namesFollow-up, not in this pull request: trim
ListReorderHandle.tsx's file header to its tags and keep the iOS note besidetouchAction(#13746).Formatting note
packages/cli/assets/docs/icons.doc.mjsgains 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:dragicon atsm;sizechanges only the icon: the handle keeps its classes and sets no length;list-reorder-handleicon draws the grip, andnulldraws none and keeps the handle;IconRegistrymay omitdragin 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 thedragrow, anddoctor integration validateon a fixture icon set, which now reports one moreicon_builtin_definition_missingand listsdragas built in.playwright test --config=playwright.interaction.config.ts --project=chromium ListReorderPointer ListReorderTouch ListReorderMode: 55 passed, on this branch's built Storybook. New:playwright test --project=chromium ListInputReorder TransferListReorder: 13 passed; TransferList's fixed rows keep the movable rows' Remove column.check:knowledge,check:sync,check:changesets, andpnpm 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'sdragline,CLN-0030).DEP-0018andCLN-0030state what the system does or will do, in the present tense.