Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
fc7fbbb to
90f9370
Compare
798aa67 to
2c036ec
Compare
|
Restacked at 2c036ec for the review rounds on the pull requests below it; this one has no review yet.
|
90f9370 to
fda25c6
Compare
2c036ec to
6244a7a
Compare
|
Restacked at 6244a7a for the reviews on the pull requests below it; this one has no review yet.
|
|
Updated at f3e40d4: a second commit on top of 6244a7a gives Core's ListInput #13758's latest focus fix. The guard reads the list's own document and calls 922 targeted tests pass, Core's and Lab's typecheck is clean, strict lint has 0 errors, |
|
Updated at b73a830: a third commit on top of f3e40d4 takes #13758's latest round into Core's copy. The iframe case moves focus inside ListInput's tests in Core and Lab pass (53, with no act() warnings), strict lint has 0 errors, and |
b73a830 to
67ec891
Compare
fda25c6 to
2385091
Compare
|
Rebased onto the new #13761 (2385091). The content is unchanged apart from the rebase. #13758's later focus fixes are now on
On this head (67ec891): build, Core's and Lab's typecheck, 2,821 UI tests and 30,023 node tests, strict lint (0 errors), |
2385091 to
a04fc85
Compare
67ec891 to
7c66d73
Compare
|
Rebased onto the new #13761 (a04fc85). The content is unchanged apart from the rebase: this pull request's own diff is the same patch (identical On this head (7c66d73): build and Core's and Lab's typecheck are clean. 2,821 UI tests and 30,157 node tests pass. Strict lint has 0 errors. |
a04fc85 to
63e48d1
Compare
7c66d73 to
3a4b87f
Compare
|
Rebased onto the new #13761 (63e48d1). The content is unchanged apart from the rebase: this pull request's own diff is the same patch (identical On this head (3a4b87f): build and Core's and Lab's typecheck are clean. 2,821 UI tests and 30,205 node tests pass. Strict lint has 0 errors. |
ListInput composes Field, but it put a caller's ref, id, data and ARIA attributes, and handlers on the Field box, an unlabelled wrapper around the labelled role="group" element, and its type took root xstyle, className, and style. As in CheckboxList, RadioList, and the other inputs that follow the input-fields family's FR10, base props and ref now reach the group, which joins a caller's aria-labelledby and aria-describedby to its own. The type takes no root styling: containerXstyle, containerClassName, and containerStyle style the Field box, except inside an InputGroup and in a horizontal-labels FormLayout, where they are ignored with a development warning; controlXstyle, controlClassName, and controlStyle style the group. An untyped caller's root styling is dropped with a development warning.
ListInput, its types, and its four blocks move from Lab to Core: @astryxdesign/core/ListInput, the package root, and Core's component blocks. The Lab entry re-exports the Core component and its types. In Core, ListInput takes Field's shared styling rule and the component translator, and imports its modules by relative path. Its stories move to Core/ListInput, and its draft record joins the component records.
3a4b87f to
c6e2007
Compare
63e48d1 to
2e20a52
Compare
PR Analysis Report🔎 Preview ·
|
ListInput to Core: #13758, #13759, and #13760 merged; two pull requests remain. Review and merge them in this order. #13762 is based on #13761, and only #13761 targets
main, so #13762 gets CI once it is retargeted.User need
A form that collects a short list of records, such as guests, travelers, tag options, or budget lines, needs fields that repeat per record, with add, remove, and reorder. ListInput does that job, but only in Lab, which is canary-only with no stability promise, so a stable app either takes a canary dependency for one component or builds the repeating fields by hand. The four pull requests below this one clear the component's open audit blockers. This one moves ListInput to Core.
Problem and solution fit
ListInputand its typesListInputProps,ListInputChange,ListInputColumn,ListInputRenderContext, andListInputValueContextmove frompackages/lab/src/ListInput/topackages/core/src/ListInput/, exported from@astryxdesign/core/ListInputand the package root, with the props, defaults, and behavior fix(ListInput): base props reach the group, and styling only named parts #13761 gives it. Git reads the source, its tests, its doc, its Chromium spec, and the four blocks as renames.main, so the moved file carries them and this pull request no longer repeats them. The record's FR5 and its verification row keep the wording those fixes need. Conflicts, all frommain: the movedListInput.tsxkeeps fix(ListInput): a start reorder handle's finger target is at least an end handle's #13757's start-handle changes and test(ListInput): the clipping-host case stops when the field root has no box to clip #13878's comment, and importsisFocusDetachedfrom its own module; the moved Chromium spec keeps test(ListInput): the first-record mouse-drop case holds the animation clock across the release #13778's, test(ListInput): the finger-target cases run for both reveal behaviours #13841's, and test(ListInput): the clipping-host case stops when the field root has no box to clip #13878's cases, with the Core story ids; and the CLI's "close" search goldens count 55 matches.useFieldInputStyling, comes from its own module,Field/fieldParts, in place of the internal@astryxdesign/core/internal/selectable-cardentry fix(ListInput): base props reach the group, and styling only named parts #13761 imports from Lab. The shared input-fields FR10 suite runs on ListInput (ListInput.fr10.test.tsx), whichfieldInputFamily.test.tsxrequires of every Core component that renders Field.joinAriaIDs, the record-row map's ref is namedrowsRef, and test helpers drop two unneeded assertions and return their promise from an async function.'error' | 'warning' | 'success', whichInputStatushides; ListInput is listed as a component that sets Item's private--_item-inset-inline, the inset core List's reorder handle reaches into; and reduced motion comes from Core's shared reader,useReducesMotion, in place of ListInput's own media query.reducedMotion: 'always', so under such a theme the add and remove motion is instant, as every Core component's motion is (design:reduced-motionDR1, DR2a). It is the one behavior change in this pull request.@deprecatedmarker and no removal date: no owner decision deprecates them yet (the record's OQ1). A test checks that each is the Core one.Core/ListInput; the Chromium specs and the RTL audit entry take the new story id and name. The four blocks move to the CLI's component blocks and import from@astryxdesign/core/ListInput; the sandbox's route list gains their pages. The ShadCN route moves tocomponents/list-inputand keepscomponents/lab/list-inputas an alias. The probe theme covers thelist-inputtarget. The translation-screenshot script takes the two new story ids.design:ordered-collection-reorderinglists the Core path beside the Lab ones.component:ListInputrecord, a[feat]Core Changeset, and a CLI Changeset for the blocks.Current specification
component:ListInput(new,authority: draft) records the contract this pull request ships: FR1–FR12 and AR1–AR4, each resting on the documented props and tests and on current records:family:input-fieldsFR10,spec:AST-103FR1, FR2, and FR5 (the reorderable object, present means enabled, one control per row),spec:AST-085FR1, FR2, and FR4 (focusable disabled controls),spec:AST-086FR9, andarchitecture:internationalizationINV1a. It has one open question, OQ1: whether the Lab re-exports are deprecated, and when they are removed. It needs an engineering owner's/approve-spec, which also moves it tocurrent;ownerslists the schema's approval owners, so please confirm or change it.design:ordered-collection-reorderingchanges only its path list; it needs a design owner's approval.spec:AST-017FR23 and FR27: a promotion needs owner approval and a[feat]Changeset.spec:AST-103: ListInput takesreorderable={createReorderable()}, and a move goes to the object'sonReorder, never toonChange(FR1, FR2).architecture:public-component-apiINV25).Public delta and caller burden
ListInput,ListInputProps,ListInputChange,ListInputColumn,ListInputRenderContext,ListInputValueContext, and the./ListInputsubpath.label,description,value,onChange,getItemKey,createItem,columns,itemName,status,getItemStatus,getFieldStatus,reorderable,isDisabled,isLoading,maxItems,isLabelHidden,isOptional,isRequired, arefto the group, andcontainer*andcontrol*styling. Defaults are unchanged.list-input, reflectingstate(loading,disabled) andreorderable, as in Lab.@astryxdesign/labre-exports the Core component and its types.Left for the owner:
@astryxdesign/core/internal/reorderstill exportsuseListReorderScope,ListReorderScope, andisReorderHandle, which only Lab's ListInput imported. Lab's TransferList imports the same entry and is moving to Core in parallel, so this pull request leaves the entry's exports alone; whichever move is last can remove what no Lab component imports.@astryxdesign/core/internal/selectable-cardentry, withuseFieldInputStylingas its only export, so it and this stack land in either order. Once both land, no Lab component imports that entry; whichever lands last can remove it.ListInput.tsx, which this pull request moves to Core. Whichever lands second carries its change to the file's new place.Design and alternatives
[feat], asspec:AST-017FR23 and FR27 ask of a promotion; the DiffViewer, SelectableCardGroup, and CommentPin moves do the same.Evidence
Real-browser screenshots: the Lab/ListInput stories at the base of this pull request against the Core/ListInput stories at its head, each from a static Storybook build served locally, in headless Chromium at 2× scale with reduced motion, scoped to
#storybook-root.All 16 captured states are pixel-identical before and after (0 differing pixels). The others: tag-options-gothic-dark, tag-options-y2k, tag-options-forced-colors, tag-options-coarse-pointer, tag-options-keyboard-focus, disabled, loading, validation-statuses, reorder-handle-options, expense-allocations. In every state the group's role,
astryx-list-inputclass,data-state,data-reorderable,aria-busy, record count, and focused element match.fieldInputFamily.test.tsxcoverage, the Lab re-export test, the host-data-attribute and theming-target guards, and the internal reorder entry's tests.Scope
Components: ListInput
Writing rubric results
docs/specs/components/ListInput/ListInput.spec.md(new):docs/design/ordered-collection-reordering.md(path list only): R1–R7 none; the change addspackages/core/src/ListInput/**to its paths.Testing
Local gates on this branch over #13761 (head c6e2007, on
main0d0c173; rebased again after #13760 merged, with no conflicts, then onto #13761's reworded commit, which changes only its message, so the tree is the one these gates ran on):pnpm preflight --browser --base fix/listinput-field-prop-targetson this branch's first head: review:pre (0 findings), build, typecheck, ESLint and Prettier on the changed files,check:repo,check:knowledge, andcheck:changesetspassed. Vitest found seven failures, which this head fixes:docPropLiterals.test.ts(the status types now spell'error' | 'warning' | 'success'),reducedMotionReaders.test.ts(ListInput reads reduced motion through Core's shared reader),derivedVarRegistry.test.ts(ListInput is listed as a component that sets Item's--_item-inset-inline),a11y-pr-contracts.test.mjs(the pinch spec now routes ListInput's Core path), and the CLI's three "close" search goldens (53 matches with ListInput in Core). A story-tree check failed only on a local probe story, which is not in the branch.List/__tests__/ListReorder.test.tsx"leaves no stacking or background on a row grabbed again during its drop glide and released in place" fails in this environment when the whole file runs, on main's List code too (fix(ListInput): a change announces and moves focus only once the owner applies it #13758's head), and passes when it runs alone. Main has since fixed that test (test(List): the re-grab-during-glide case holds the motion clock still #13755), so CI's merge with main includes the fix.pnpm build, then Core's and Lab'stsc --noEmit: clean. ListInput's tests in Core and Lab with Core's__tests__,internal,utils,List,Fieldfamily, theming-target, derived-variable, reduced-motion, and doc-literal guards (113 files, 2,821 tests) pass. The node tests underpackages/cli,internal,.github, andscriptspass (1,895 files, 30,205 tests).pnpm check:repo,pnpm check:knowledge, andpnpm check:changesets: clean.pnpm review:pre --base fix/listinput-field-prop-targets: 0 findings.ListInputReorder.a11y.chromium.spec.tsandReorderGripPinchZoom.a11y.chromium.spec.tspass (20 passed). A fresh capture of the 16 story states at the rebased heads is pixel-identical between fix(ListInput): base props reach the group, and styling only named parts #13761 and this pull request.pnpm test:interaction --project chromium) on the first head: 1,968 passed, 54 skipped, 7 failed. The same 7 fail the same way on fix(ListInput): a change announces and moves focus only once the owner applies it #13758's head, whose only change is in Lab's ListInput, and on this head: one DropdownMenu test, three animated-layout edge-reveal tests, one SegmentedControl test, one Toast test, and one Lab PageControl test. None of them renders ListInput. This environment runs the system's Chromium 155 in place of the browser build Playwright pins; CI's run decides.ASTRYX_STRICT_LINT=1 eslinton the changed files: 0 errors. Core's strict rules first flagged theArray<T>id joiner, therowRefsname, two test helpers that returned a promise from a non-async function, two unneeded test assertions, a test owner that sorted withlocaleCompare(rawIntl), and anArray<T>test type; all are fixed.pnpm visual:probe-theme,node scripts/sync-exports.js, andUPDATE_SHADCN_ROUTE_LOCK=1 node apps/docsite/scripts/generate-data.mjsregenerated the probe theme, the exports, and the route lock.