Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approval waits on one engineering-owner decision and one required fix.
Promoting SelectableCardGroup to Core has no approved spec yet. That covers the Core API it adds and the new draft component record, including the record's stated gap that the new theme target does not reflect the disabled state. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner.
- Callers of Lab's
SelectableCardGroupandSelectableCardGroupPropsstart seeing deprecation markers and the record schedules both for removal, so the description needs to cite an explicit owner decision naming those two symbols (or keep a plain re-export without@deprecateduntil one exists) — Found by: deprecation rule.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset: importable from the Core package root and its own entry point. Verified (exports map; root index re-export).
- Changeset: a single choice is a native radio group with one tab stop and arrow keys, and the chosen card submits under the form name. Verified in source (radio input type, shared generated name, submit name); the keyboard spec was read, not run.
- Changeset: a multiple choice is a named group of checkboxes. Verified (group role, checkbox input type, label wiring).
- Changeset: controlled value and change callback, label, optional description, disabled, orientation. Verified (props type; Field usage).
- Changeset: no root styling; container props style the Field box and control props the group element. Verified (props type omits root styling; container and control routing; FR10 test).
- CLI changeset: the template list shows both blocks among Core's component blocks, importing from Core. Verified from source (block location and named doc export like the other component blocks); the CLI was not run.
- Description: props, defaults and behavior are unchanged from the base branch. Verified (the component diff is imports, comments, control props and a destructuring refactor).
- Description: control props land on the group element after its layout styles, as in RadioList. Verified.
- Description: the shared FR10 suite covers the group. Verified (new FR10 test; the family test scans component folders); not run.
- Description: the internal entry has no importer left and leaves the exports. Verified (at the base only Lab's group imported it; no reference remains).
- Description: Lab keeps static-only deprecated aliases for one release, and a test checks identity and the tag. Verified; the deprecation itself lacks an owner decision.
- Description: stories, the Chromium spec, both blocks, the registry alias, the sandbox routes and the probe theme entry move or are added. Verified.
- Description: the new target reflects orientation and type but not disabled, like RadioList and CheckboxList. Verified.
- Description: the SelectableCard decision and membership requirements it cites govern member rendering. True only on the base branch, not yet on main.
- Description: no visual change for a Lab caller who changes the import. Verified from source only; not rendered here.
- Description: screenshot, test-run and preflight results. Not reproduced here; the repository could not be installed in the review sandbox.
.changeset/promote-selectablecardgroup-to-core.md: clear.changeset/selectablecardgroup-core-blocks.md: clearapps/sandbox/scripts/next-export-routes.json: clear (generated)apps/storybook/stories/SelectableCardGroup.stories.tsx: cleardocs/specs/components/SelectableCard/SelectableCard.spec.md: clear (links and test paths only)docs/specs/components/SelectableCardGroup/SelectableCardGroup.spec.md: waits on the owner decision; FR9 declares the deprecationinternal/shadcn-registry/routes.lock.json: clear (generated)packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.doc.mjs: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.tsx: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.doc.mjs: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.tsx: clearpackages/cli/test/swizzle-proof/samples.mjs: clearpackages/core/package.json: waits on the owner decision (new entry point)packages/core/src/SelectableCard/selectableCardGroupContext.ts: clear (header only)packages/core/src/SelectableCardGroup/SelectableCardGroup.doc.mjs: waits on the owner decision (new public docs)packages/core/src/SelectableCardGroup/SelectableCardGroup.fr10.test.tsx: clearpackages/core/src/SelectableCardGroup/SelectableCardGroup.test.tsx: clearpackages/core/src/SelectableCardGroup/SelectableCardGroup.tsx: waits on the owner decision; the target does not reflect disabledpackages/core/src/SelectableCardGroup/__tests__/SelectableCardGroupRadio.a11y.chromium.spec.ts: clearpackages/core/src/SelectableCardGroup/index.ts: waits on the owner decision (new export)packages/core/src/index.ts: waits on the owner decision (new root export)packages/core/src/internal/selectable-card.ts: clear (no importer left)packages/lab/src/SelectableCardGroup/index.test.ts: clearpackages/lab/src/SelectableCardGroup/index.ts: deprecation needs an explicit owner decisionpackages/themes/probe/src/probeTheme.ts: clear (generated, private)scripts/sync-exports.js: clear
There was a problem hiding this comment.
Approval waits on one engineering-owner decision; this head needs no code changes.
Promoting SelectableCardGroup to Core has no approved spec yet, covering the Core API it adds and the new draft component record, including the record's stated gap that the new theme target does not reflect the disabled state. An engineering owner records that 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 deprecation finding is fixed, and this pull request still depends on #13733, which needs its own approval.
Claims and files checked
Review mode: full; reason: author-not-engowner
- Core changeset: the group is importable from the Core package root and its own entry point. Verified (exports map; root re-export).
- Core changeset: a single choice is a native radio group with one tab stop, arrow keys that move and select, and the chosen card submitting under the form name. Verified in source (radios share a generated name; the chosen card renders the submit input); the keyboard spec was read, not run.
- Core changeset: a multiple choice is a named group of checkboxes. Verified (group role, checkbox inputs, label wiring).
- Core changeset: a controlled value and change callback, a label and optional description through Field, disabled, and orientation. Verified (props type; Field usage).
- Core changeset: no root styling; container props style the Field box and control props the group element. Verified (props type; container and control routing; the shared field-input test).
- CLI changeset: the template list shows both blocks among Core's component blocks, importing the group from Core. Verified from source (block location and doc export match the other component blocks); the CLI was not run.
- Description: props, defaults and behavior carry over unchanged from the base branch. Verified (the component diff is imports, comments, control props and a destructuring refactor).
- Description: control props reach the group element after its layout styles, as in RadioList. Verified.
- Description: the shared field-input suite covers the group, and the family test enforces control props for every Field-composed component. Verified (new test file; directory scan); not run.
- Description: the internal entry has no importer left and leaves the exports. Verified (only Lab imported it at the base; no reference remains).
- Description: Lab keeps plain re-exports with no deprecation marker and no scheduled removal, and a test checks both are the Core ones. Verified.
- Description: the stories, keyboard spec, both blocks, registry alias, sandbox routes and probe theme entry move or are added. Verified.
- Description: the new target reflects orientation and type but not disabled, like RadioList and CheckboxList, and SelectableCard's record lists the same gap. Verified.
- Description: the SelectableCard decision and membership requirements it cites govern how a member renders. True on the base branch only, not yet on main.
- Description: the Shipping speed description change keeps a search ranking test passing. Verified that the test pins that query; not run.
- Description: the component and template commands report the group and both blocks under Core. Not run in this review.
- Description: screenshots show no visual change, and preflight, unit and browser test runs pass. Not reproduced in this review.
.changeset/promote-selectablecardgroup-to-core.md: clear.changeset/selectablecardgroup-core-blocks.md: clearapps/sandbox/scripts/next-export-routes.json: clear (generated)apps/storybook/stories/SelectableCardGroup.stories.tsx: cleardocs/specs/components/SelectableCard/SelectableCard.spec.md: clear (links and test paths only)docs/specs/components/SelectableCardGroup/SelectableCardGroup.spec.md: waits on the owner decisioninternal/shadcn-registry/routes.lock.json: clear (generated)packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.doc.mjs: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.tsx: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.doc.mjs: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.tsx: clearpackages/cli/test/swizzle-proof/samples.mjs: clearpackages/core/package.json: waits on the owner decision (new entry point)packages/core/src/SelectableCard/selectableCardGroupContext.ts: clear (header only)packages/core/src/SelectableCardGroup/SelectableCardGroup.doc.mjs: waits on the owner decision (new public docs)packages/core/src/SelectableCardGroup/SelectableCardGroup.fr10.test.tsx: clearpackages/core/src/SelectableCardGroup/SelectableCardGroup.test.tsx: clearpackages/core/src/SelectableCardGroup/SelectableCardGroup.tsx: waits on the owner decision; the target does not reflect disabledpackages/core/src/SelectableCardGroup/__tests__/SelectableCardGroupRadio.a11y.chromium.spec.ts: clearpackages/core/src/SelectableCardGroup/index.ts: waits on the owner decision (new export)packages/core/src/index.ts: waits on the owner decision (new root export)packages/core/src/internal/selectable-card.ts: clear (deleted; no importer left)packages/lab/src/SelectableCardGroup/index.test.ts: clearpackages/lab/src/SelectableCardGroup/index.ts: clear (plain re-export; the earlier deprecation finding is fixed)packages/themes/probe/src/probeTheme.ts: clear (generated, private)scripts/sync-exports.js: clear
There was a problem hiding this comment.
Approval waits on one engineering-owner decision; this head needs no code changes.
Promoting SelectableCardGroup to Core has no approved spec yet: that covers the Core API it adds (the component, its props type, the ./SelectableCardGroup entry point and the selectable-card-group theme target) and the new draft component record, including the record's stated gap that the new theme target does not reflect the disabled state. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. This pull request still depends on #13733, which needs its own approval, and the two ship together.
Claims and files checked
Review mode: full; reason: author-not-engowner
- Core changeset: the group is importable from the Core package root and its own entry point. Verified (exports map; root re-export).
- Core changeset: a single choice is a native radio group with one tab stop, arrow keys that move and select, the position spoken, and the chosen card submitting under the form name. Verified in source (the radios share a generated name; the chosen card carries the submit name); the keyboard spec was read, not run.
- Core changeset: several choices are a named group of checkboxes. Verified (group role, checkbox inputs, label wiring).
- Core changeset: a controlled value and change callback, a label and optional description through Field, disabled, and orientation. Verified (props type; Field usage).
- Core changeset: no root styling; container props style the Field box and control props the group element. Verified (props type; container and control routing; the shared field-input test).
- CLI changeset: the template list shows both blocks among Core's component blocks, importing the group from Core. Verified from source (location and doc export match the other component blocks); the CLI was not run.
- Description: props, defaults and behavior carry over unchanged from the base branch. Verified (the component diff is imports, comments, control props and a destructuring refactor).
- Description: control props reach the group element after its layout styles, as in RadioList, and the shared field-input suite runs on the group. Verified (new test file); not run.
- Description: the family test requires the field-input type check for every Field-composed Core component. Verified (the coverage test scans each component folder).
- Description: the internal entry keeps only the Field styling hook, drops the group context, its type and the aria joiner, and changes no public API. Verified (entry file; internal subpaths sit outside the compatibility promise); nothing imports the entry at this head.
- Description: Lab keeps plain re-exports with no deprecation marker and no scheduled removal, and a test checks both are the Core ones. Verified.
- Description: the stories, keyboard spec, both blocks, registry alias, sandbox routes and probe-theme entry move or are added. Verified.
- Description: the new target reflects orientation and type but not disabled, like RadioList and CheckboxList, and SelectableCard's record lists the same gap. Verified.
- Description: the SelectableCard decision and requirements it cites govern how a member renders. True on the base branch only, not yet on main.
- Description: earlier Lab-to-Core promotions used a different Changeset tag. Verified (the InfoTip and Drawer promotion notes).
- Description: the Shipping speed description change keeps a search ranking test passing. Verified that the test pins that query; not run.
- Description: the component and template commands report the group and both blocks under Core. Not run in this review.
- Description: screenshots show no visual change, and preflight, unit and browser test runs pass. Not reproduced in this review.
.changeset/promote-selectablecardgroup-to-core.md: clear.changeset/selectablecardgroup-core-blocks.md: clearapps/sandbox/scripts/next-export-routes.json: clear (generated)apps/storybook/stories/SelectableCardGroup.stories.tsx: cleardocs/specs/components/SelectableCard/SelectableCard.spec.md: clear (links and test paths only)docs/specs/components/SelectableCardGroup/SelectableCardGroup.spec.md: waits on the owner decisioninternal/shadcn-registry/routes.lock.json: clear (generated)packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.doc.mjs: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.tsx: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.doc.mjs: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.tsx: clearpackages/cli/test/swizzle-proof/samples.mjs: clearpackages/core/package.json: waits on the owner decision (new entry point)packages/core/src/SelectableCard/selectableCardGroupContext.ts: clear (header only)packages/core/src/SelectableCardGroup/SelectableCardGroup.doc.mjs: waits on the owner decision (new public docs)packages/core/src/SelectableCardGroup/SelectableCardGroup.fr10.test.tsx: clearpackages/core/src/SelectableCardGroup/SelectableCardGroup.test.tsx: clearpackages/core/src/SelectableCardGroup/SelectableCardGroup.tsx: waits on the owner decision; the target does not reflect disabledpackages/core/src/SelectableCardGroup/__tests__/SelectableCardGroupRadio.a11y.chromium.spec.ts: clearpackages/core/src/SelectableCardGroup/index.ts: waits on the owner decision (new export)packages/core/src/index.ts: waits on the owner decision (new root export)packages/core/src/internal/selectable-card.ts: clear (internal entry; no importer at this head)packages/lab/src/SelectableCardGroup/index.test.ts: clearpackages/lab/src/SelectableCardGroup/index.ts: clear (plain re-export; the earlier deprecation finding stays fixed)packages/themes/probe/src/probeTheme.ts: clear (generated, private)
|
Kept On this head, a throwaway Lab file that calls the hook through the entry as #13761 does typechecks. |
SelectableCardGroup moves from Lab to Core, imported from `@astryxdesign/core/SelectableCardGroup` or the package root. It keeps its props, defaults and behavior: one choice is a native radio group, several are a named group of checkboxes, and its cards are SelectableCards, each with a `value`. As every Core component that composes Field, it also takes `controlXstyle`, `controlClassName` and `controlStyle` for the group element. The membership context stays private inside Core, so the internal `selectable-card` entry that Lab used is removed. The Lab exports become deprecated re-exports of the Core ones for one release. The stories move to Core/SelectableCardGroup, the showcase and the example block move to the CLI's component blocks, the ShadCN registry keeps the Lab route as an alias, the sandbox exports the two block pages, and the probe theme covers the new target. The new `component:SelectableCardGroup` record is a draft for an engineering owner's approval.
… of Core's `SelectableCardGroup` and `SelectableCardGroupProps` from `@astryxdesign/lab` re-export the Core ones with no `@deprecated` marker, and the `component:SelectableCardGroup` record no longer schedules their removal: no owner decision deprecates these two symbols yet. The Lab test checks that the component and its props type are the Core ones.
…ing hook `@astryxdesign/core/internal/selectable-card` stays in Core's exports and re-exports `useFieldInputStyling` only. Lab's ListInput is moving to that hook through this entry in a separate change, so the two can land in either order. The entry no longer exports SelectableCard's group context, its membership type or `joinAriaIDs`: SelectableCardGroup now lives in Core and imports them by relative path. No public API changes.
ff02aea to
d76fe54
Compare
a60f64c to
9e86180
Compare
|
Rebased onto the new #13733 head; the new head is d76fe54. There were no conflicts: every file's changed lines are the same as before, and the patch id differs only because context lines changed in the SelectableCard record and the generated probe theme. On this head, Update: 3d3287b fixes the finding in the review of d76fe54. The Core changeset now says that, like RadioList and CheckboxList, the group takes no root |
There was a problem hiding this comment.
Approval waits on one engineering-owner decision and one required fix.
Promoting SelectableCardGroup to Core has no approved spec yet. That covers the Core API it adds (the component, its props type, the ./SelectableCardGroup entry point and the selectable-card-group theme target) and the new draft component record, including the record's stated gap that the new theme target does not reflect the disabled state. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. This pull request also depends on #13733, which needs its own approval, and the two ship together.
Required fix:
- Miss: the Core changeset says every component that composes Field takes no root
xstyle,classNameorstyle, but PowerSearch, ListInput and RichTextEditor still take them, so compare the group with RadioList and CheckboxList instead, and narrow the description's matching line aboutcontrol*props the same way.
Claims and files checked
Review mode: full; reason: author-not-engowner
- Title: the group moves to Core. Verified (exports map, root export, built entry point).
- Core changeset: importable from the Core package root and its own entry point. Verified (built package; the component command reports Core, run here).
- Core changeset: a single choice is a native radio group with one tab stop, arrow keys that move and select, and the chosen card submitting its value under the form name. Verified (Chromium keyboard check and the form-submission unit test, run here).
- Core changeset: screen readers speak the position. Verified at the accessibility-tree layer only: one named radio group of three radios forms one native set (run here); no screen reader ran.
- Core changeset: several choices are a named group of checkboxes. Verified (unit test and accessibility tree, run here).
- Core changeset: a controlled value and change callback, a label and optional description through Field, disabled and orientation. Verified (props type; unit tests run here).
- Core changeset: like every component that composes Field, it takes no root styling. False: three components that compose Field still take root styling.
- Core changeset: container props style the Field box and control props the group element. Verified (the shared field-input suite, run here).
- CLI changeset: the template list shows both blocks as Core blocks that import the group from Core. Verified (template commands, run here).
- Description: props, defaults and behavior carry over unchanged from the base branch. Verified (component diff; eight states pixel-identical with identical roles, inputs and form owners, run here).
- Description: Core components that compose Field take control props beside container props, enforced by the family test. False for one Core component, which the family test keeps as pending.
- Description: control props reach the group element after its layout styles, as in RadioList, and the shared suite runs on the group. Verified (source; suite run here).
- Description: the internal entry keeps only the Field styling hook, and nothing outside Core imports the members it drops. Verified (entry file; repository-wide search); it changes no public API.
- Description: Lab keeps plain re-exports with no deprecation marker and no scheduled removal, and a test checks both are the Core ones. Verified (Lab test and typecheck, run here).
- Description: the stories, keyboard spec, blocks, registry alias, sandbox routes and probe-theme entry move or are added. Verified (files; probe-theme check and route-manifest test, run here).
- Description: the new target reflects orientation and type but not disabled, as RadioList and CheckboxList do not. Verified (source; theming-target test run here).
- Description: either import renders the same component with no behavior or visual change. Verified (identity test and capture compare, run here).
- Description: nothing breaks for Lab callers. Verified within the diff: the Lab entry still exports both names, now the Core ones with control props added.
- Description: the Shipping speed wording keeps the stack search ranking. Verified (the search test pins that query and passes, run here); that the old wording outranked Stack is reported.
- Description: earlier promotions used a different changeset category. Reported.
- Description: screenshots, preflight, unit, typecheck, lint and browser runs pass, and the rebase kept every changed line. Reported; unit, typecheck, lint, swizzle and capture checks were reproduced here, the Chromium spec itself was not run.
.changeset/promote-selectablecardgroup-to-core.md: finding: the Field sentence is false.changeset/selectablecardgroup-core-blocks.md: clearapps/sandbox/scripts/next-export-routes.json: clear (generated)apps/storybook/stories/SelectableCardGroup.stories.tsx: cleardocs/specs/components/SelectableCard/SelectableCard.spec.md: clear (links and test paths only)docs/specs/components/SelectableCardGroup/SelectableCardGroup.spec.md: waits on the owner decisioninternal/shadcn-registry/routes.lock.json: clear (generated)packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.doc.mjs: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.tsx: clear (template grade A)packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.doc.mjs: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.tsx: clear (template grade A)packages/cli/test/swizzle-proof/samples.mjs: clearpackages/core/package.json: waits on the owner decision (new entry point)packages/core/src/SelectableCard/selectableCardGroupContext.ts: clear (header only)packages/core/src/SelectableCardGroup/SelectableCardGroup.doc.mjs: waits on the owner decision (new public docs and theme target)packages/core/src/SelectableCardGroup/SelectableCardGroup.fr10.test.tsx: clearpackages/core/src/SelectableCardGroup/SelectableCardGroup.test.tsx: clearpackages/core/src/SelectableCardGroup/SelectableCardGroup.tsx: waits on the owner decision; the target does not reflect disabledpackages/core/src/SelectableCardGroup/__tests__/SelectableCardGroupRadio.a11y.chromium.spec.ts: clearpackages/core/src/SelectableCardGroup/index.ts: waits on the owner decision (new export)packages/core/src/index.ts: waits on the owner decision (new root export)packages/core/src/internal/selectable-card.ts: clear (internal entry)packages/lab/src/SelectableCardGroup/index.test.ts: clearpackages/lab/src/SelectableCardGroup/index.ts: clear (plain re-export; the earlier deprecation finding stays fixed)packages/themes/probe/src/probeTheme.ts: clear (generated, private)
…dioList and CheckboxList The Core changeset said every component that composes Field takes no root `xstyle`, `className` or `style`. PowerSearch, Lab's ListInput and the rich text editor still take them, so the sentence now compares the group with RadioList and CheckboxList.
There was a problem hiding this comment.
Approval waits on one engineering-owner decision; this head needs no code changes, and the earlier changeset fix is in.
Promoting SelectableCardGroup to Core has no approved spec yet: an engineering owner decides the Core API it adds (the component, its props type, the ./SelectableCardGroup entry point and the selectable-card-group theme target) and the new draft component record, including the record's stated gap that the new theme target does not reflect the disabled state. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. This pull request builds on #13733, which needs its own approval, and the two ship together.
Claims and files checked
Review mode: full; reason: author-not-engowner
- Title: the group moves to Core. Verified (exports map entry, root export, built entry point).
- Core changeset: importable from the Core package root and its own entry point. Verified (built package; the component command reports Core, run here).
- Core changeset: a single choice is a native radio group with one tab stop, arrow keys that move and select, and the chosen card submitting its value under the form name. Verified (Chromium keyboard probe and form-submission tests, run here).
- Core changeset: screen readers speak the position. Verified at the platform-mapping layer only: the three radios form one native radio set with one name and one form owner, probed here; no screen reader ran.
- Core changeset: several choices are a named group of checkboxes. Verified (unit test and Chromium probe, run here).
- Core changeset: a controlled value and change callback, a label and optional description through Field, disabled and orientation. Verified (props type; unit tests run here).
- Core changeset: like RadioList and CheckboxList, it takes no root styling; container props style the Field box and control props the group element. Verified (the family type check on all three and the shared field-input suite on the group, run here).
- CLI changeset: the template list shows both blocks as Core blocks that import the group from Core. Verified (template command, run here; absent before this change).
- Description: props, defaults and behavior carry over unchanged from the base branch. Verified (component diff; nine states pixel-identical with identical roles, inputs and form owners, run here).
- Description: like RadioList and CheckboxList, the group takes control props beside container props and no root styling, and the family coverage test checks it. Verified (coverage test run here).
- Description: control props reach the group element after its layout styles, as in RadioList, and the shared suite runs on the group. Verified (source; suite run here).
- Description: the internal entry keeps only the Field styling hook, which the ListInput pull request imports, so the two can land in either order. Verified (entry file; that pull request's only import from the entry; the default branch's entry exports the same hook).
- Description: Lab keeps plain re-exports with no deprecation marker and no scheduled removal, and a test checks that both are the Core ones. Verified (Lab test and typecheck, run here).
- Description: the stories, keyboard spec, blocks, registry alias, sandbox routes and probe-theme entry move or are added. Verified (files; probe-theme check and route-manifest test, run here).
- Description: the new target reflects orientation and type but not disabled, as RadioList and CheckboxList do not, while SelectableCard's own target reflects disabled, also inside a disabled group. Verified (source; theming-target test run here).
- Description: either import renders the same component with no behavior or visual change, and nothing breaks for Lab callers. Verified (identity test and capture compare, run here; the Lab package's only entry still exports both names).
- Description: the new Shipping speed wording keeps Stack first for a stack-of-cards search, which a test pins. Verified (that search test passes, run here); that the old wording outranked Stack is reported.
- Description: the component command reports Core and the template list shows both blocks. Verified (run here).
- Description: earlier promotions used a different changeset category. Reported.
- Description: since the previous review only the changeset sentence changed. Verified (the diff between the two heads is that one line).
- Description: screenshots, preflight, unit, typecheck, lint and browser runs pass, and the rebase kept every changed line. Reported; unit, typecheck, lint and capture checks were reproduced here, the pull request's own Chromium spec was not run.
.changeset/promote-selectablecardgroup-to-core.md: clear (the root-styling sentence is now accurate).changeset/selectablecardgroup-core-blocks.md: clearapps/sandbox/scripts/next-export-routes.json: clear (generated)apps/storybook/stories/SelectableCardGroup.stories.tsx: cleardocs/specs/components/SelectableCard/SelectableCard.spec.md: clear (links, test paths and the internal-entry note only)docs/specs/components/SelectableCardGroup/SelectableCardGroup.spec.md: waits on the owner decisioninternal/shadcn-registry/routes.lock.json: clear (generated)packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.doc.mjs: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.tsx: clear (template grade A)packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.doc.mjs: clearpackages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.tsx: clear (template grade A)packages/cli/test/swizzle-proof/samples.mjs: clearpackages/core/package.json: waits on the owner decision (new entry point)packages/core/src/SelectableCard/selectableCardGroupContext.ts: clear (header only)packages/core/src/SelectableCardGroup/SelectableCardGroup.doc.mjs: waits on the owner decision (new public docs and theme target)packages/core/src/SelectableCardGroup/SelectableCardGroup.fr10.test.tsx: clearpackages/core/src/SelectableCardGroup/SelectableCardGroup.test.tsx: clearpackages/core/src/SelectableCardGroup/SelectableCardGroup.tsx: waits on the owner decision; the target does not reflect disabledpackages/core/src/SelectableCardGroup/__tests__/SelectableCardGroupRadio.a11y.chromium.spec.ts: clearpackages/core/src/SelectableCardGroup/index.ts: waits on the owner decision (new export)packages/core/src/index.ts: waits on the owner decision (new root export)packages/core/src/internal/selectable-card.ts: clear (internal entry)packages/lab/src/SelectableCardGroup/index.test.ts: clearpackages/lab/src/SelectableCardGroup/index.ts: clear (plain re-export)packages/themes/probe/src/probeTheme.ts: clear (generated, private)
|
/approve-spec 3d3287b |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
An engineering owner approved the new component:SelectableCardGroup record and the promotion at this head, every Core API row it adds is one that record names, and this review found no defect. This pull request builds on #13733, which carries its own owner approval; the two ship together.
- Non-blocking: the new record still reads
authority: draftandapproved_by: null; recording the approval in its front matter can follow in its own pull request.
Claims and files checked
Review mode: full; reason: recipe-changed (many rules)
- Title: the group moves to Core — verified (exports map entry, root export, built entry point).
- Core changeset: importable from the package root and its own entry point — verified (built API surface, run here).
- Core changeset: a single choice is a radio group of native radios with one tab stop, arrow keys that move and select, and the chosen card submitting its value under the form name — verified (unit form tests and a Chromium keyboard probe, run here).
- Core changeset: screen readers speak the position — verified at the platform-mapping layer (one native radio set per group, probed here); no screen reader ran.
- Core changeset: several choices are a named group of checkboxes — verified (unit test and probe frame, run here).
- Core changeset: a controlled value and change callback, label and optional description through Field, disabled and orientation — verified (props type; unit tests run here).
- Core changeset: like RadioList and CheckboxList it takes no root styling; container props style the Field box and control props the group element — verified (family type check and the shared field-input suite, run here).
- CLI changeset: the template list shows both blocks among Core's blocks, importing the group from Core — verified (template command at both revisions, run here).
- Description: props, defaults and behavior carry over from the base branch — verified (component diff; identical frames, run here).
- Description: control props reach the group element after its layout styles, as in RadioList, and the family coverage test and shared suite run on the group — verified (source; tests run here).
- Description: the internal entry keeps only the Field styling hook, which the ListInput pull request imports, so the two land in either order, with no public API change — verified (entry file; that pull request's import; default branch's entry; compatibility rule for internal subpaths).
- Description: Lab keeps plain re-exports with no deprecation marker or scheduled removal, and a test checks both are the Core ones — verified (Lab test and Lab type check, run here).
- Description: stories, keyboard spec, blocks, registry alias, sandbox routes and probe-theme entry move or are added — verified (files; route-manifest test and probe-theme check, run here).
- Description: the new record is a draft awaiting an engineering owner's approval — verified; the approval is now given at this head (the record's front matter still reads draft).
- Description: the new theme target reflects orientation and type, not disabled, as RadioList and CheckboxList do not, while each card reflects disabled, also in a disabled group — verified (source; probe receipts, run here).
- Description: either import renders the same component with no behavior or visual change, and nothing breaks for Lab callers — verified within the changed files and their importers (identity test; Lab root export; identical frames).
- Description: the shipping block's new wording keeps the Stack component first for a vertical stack of cards — verified (search ranking test, run here).
- Description: the component and template commands report Core — verified (run here).
- Description: screenshots, pixel counts, preflight, browser-suite and second-session results — reported (author's runs); consistent with the frames and tests run here.
- .changeset/promote-selectablecardgroup-to-core.md — clear
- .changeset/selectablecardgroup-core-blocks.md — clear
- apps/sandbox/scripts/next-export-routes.json — clear (generated)
- apps/storybook/stories/SelectableCardGroup.stories.tsx — clear
- docs/specs/components/SelectableCard/SelectableCard.spec.md — clear
- docs/specs/components/SelectableCardGroup/SelectableCardGroup.spec.md — non-blocking note (front matter still reads draft)
- internal/shadcn-registry/routes.lock.json — clear (generated)
- packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.doc.mjs — clear
- packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShippingSpeed.tsx — clear (template grade A)
- packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.doc.mjs — clear
- packages/cli/assets/templates/blocks/components/SelectableCardGroup/SelectableCardGroupShowcase.tsx — clear (template grade A)
- packages/cli/test/swizzle-proof/samples.mjs — clear
- packages/core/package.json — clear
- packages/core/src/SelectableCard/selectableCardGroupContext.ts — clear
- packages/core/src/SelectableCardGroup/SelectableCardGroup.doc.mjs — clear
- packages/core/src/SelectableCardGroup/SelectableCardGroup.fr10.test.tsx — clear
- packages/core/src/SelectableCardGroup/SelectableCardGroup.test.tsx — clear
- packages/core/src/SelectableCardGroup/SelectableCardGroup.tsx — clear
- packages/core/src/SelectableCardGroup/tests/SelectableCardGroupRadio.a11y.chromium.spec.ts — clear
- packages/core/src/SelectableCardGroup/index.ts — clear
- packages/core/src/index.ts — clear
- packages/core/src/internal/selectable-card.ts — clear
- packages/lab/src/SelectableCardGroup/index.test.ts — clear
- packages/lab/src/SelectableCardGroup/index.ts — clear
- packages/themes/probe/src/probeTheme.ts — clear (generated)
SelectableCardGroup to Core, two pull requests. Review and merge in this order; each is based on the one before it, and both should ship in the same release.
valueis a member of the SelectableCardGroup around itUser need
A stable app cannot offer a single choice among rich options as cards with the radio-group keyboard: SelectableCardGroup ships only in the canary-only Lab package, and Core's SelectableCard alone is a checkbox. Builders either take a canary dependency for one component or build a radio group of cards by hand.
Problem and solution fit
@astryxdesign/core/SelectableCardGroupor the package root, with the props, defaults and behavior that feat(SelectableCard, SelectableCardGroup): a card joins its group by value #13733 gives it.control*besidecontainer*and no root styling (family:input-fieldsFR10;fieldInputFamily.test.tsxchecks the group). It gainscontrolXstyle,controlClassNameandcontrolStyle, which reach the group element after its own layout styles, as RadioList's reach its radiogroup. The shared FR10 suite runs on it.@astryxdesign/core/internal/selectable-cardno longer exportsSelectableCardGroupContext, its membership type orjoinAriaIDs. It keepsuseFieldInputStyling, because fix(ListInput): base props reach the group, and styling only named parts #13761 (ListInput's base props reach the group) calls that hook through this entry; the two can land in either order. No public API changes:spec:AST-017FR21 keeps./internal/*reserved for Astryx's own packages and outside the compatibility promise.SelectableCardGroupandSelectableCardGroupPropsfrom@astryxdesign/labare the Core ones, so a Lab import keeps working and renders the Core component. They carry no@deprecatedmarker, and the record schedules no removal, because no owner decision deprecates these two symbols yet. A test checks that both are the Core ones.components/lab/selectable-card-groupas an alias; the sandbox exports the two block pages; the probe theme covers the newselectable-card-grouptarget, so the visual gate can photograph it.component:SelectableCardGroupis new, as a draft for an engineering owner's approval.component:SelectableCardnow links to it and drops the internal-entry note.Current specification
component:SelectableCardGroup(new, draft): needs an engineering owner's/approve-spec, which also moves it tocurrent.component:SelectableCardDEC-1, FR1, FR2: how a member renders what the group gives it.family:input-fieldsFR10 (base props reach the control; styling reaches named parts only).spec:AST-038FR7, FR8 (membership stops at a layer boundary).spec:AST-017FR23 and FR27 (a promotion needs owner approval and a[feat]Changeset).Public delta and caller burden
SelectableCardGroup,SelectableCardGroupProps, and the./SelectableCardGroupsubpath. Props:label,type('single'by default, or'multiple'), a controlledvalueandonChange,isLabelHidden,description,htmlName,isDisabled,orientation,children(SelectableCards with avalue),ref, andcontainer*andcontrol*styling.astryx-selectable-card-group, reflectingorientationandtype(data-orientation,data-type).@astryxdesign/labre-exports the Core component and its props type, andcontrol*is new.@astryxdesign/core/internal/selectable-cardnow re-exportsuseFieldInputStylingalone.Either import renders the same component, with no behavior or visual change.
Left for the owner:
architecture:component-theming-surfaceINV6 expects of state; the record states it as an INV6 gap. Reflecting it adds a publicdata-*attribute, which only a current record may name, and RadioList and CheckboxList do not reflect it either. SelectableCard's own target now carriesdata-disabled, also on a member of a disabled group, but no record names one for the group's target, so this pull request does not add it.SelectableCardGroupandSelectableCardGroupProps, and when to remove them. Until an owner decides, they stay plain re-exports, with no@deprecatedmarker and no removal in the record.Design and alternatives
[feat], asspec:AST-017FR23 and FR27 ask of a promotion. InfoTip's and Drawer's promotions used[component]; the owner can switch it.Evidence
Real-browser screenshots: the Lab/SelectableCardGroup stories at the base of this pull request against the Core/SelectableCardGroup stories at its head, each from a static Storybook build served locally, in headless Chromium at 2× scale, scoped to
#storybook-root.All 14 captured states are pixel-identical before and after (0 differing pixels). The others: chose Team, multiple, disabled, two forms, one
htmlName, dark, Gothic, dark, forced colors, 320 px wide. In every state the group's role,astryx-selectable-card-groupclass anddata-type, and each input's type, value, checked state, form owner andaria-disabled, match before and after.SelectableCardGroupRadio.a11y.chromium.spec.ts, now on the Core stories): one tab stop on the checked card, arrows that move and select with wrapping, Tab onto the first card when none is chosen (a new case), Space, a click on the chosen card, and two groups that share anhtmlNamein separate forms.SelectableCardGroup.fr10.test.tsx),fieldInputFamily.test.tsxcoverage, the Lab re-export test, the sandbox route manifest, and the CLI search ranking tests.astryx component SelectableCardGroupreports@astryxdesign/core, andastryx template --listlists both blocks under Core.Scope
Components: SelectableCardGroup, SelectableCard
Writing rubric results
docs/specs/components/SelectableCardGroup/SelectableCardGroup.spec.md(new):architecture:component-theming-surfaceINV6 gap: the target does not reflect the disabled state". The FR6 verification row names an evidence gap (no automated check of the gap or the wrapping).docs/specs/components/SelectableCard/SelectableCard.spec.md(links only): R1–R7 none; the changes linkcomponent:SelectableCardGroup, pointverified_byat the moved tests, and drop the internal-entry sentence.Testing
Local gates on the first version of this branch, over #13733:
pnpm preflight --browser --base feat/selectablecard-group-value: review:pre (0 findings), build, typecheck, ESLint and Prettier on the changed files,check:repo, Vitest ui (1,140 files, 27,475 tests) and node (1,929 files, 30,278 tests, including all 8 swizzle-proof slices: 182 targets, 0 failures),check:knowledge,check:changesets, the Storybook build, and the 180 accessibility-contract specs the change selects all pass. Of the full Chromium interaction suite (2,008 tests, one worker), 1,984 passed before the local run hit its time limit, and the remaining TabBar and Tour files then passed on their own (81 passed); none failed.An earlier preflight caught three failures that this head fixes:
fieldInputFamily.test.tsx(a Core Field-composed component withoutcontrol*),route-manifest.test.ts(the two new block pages), andsearch.family-members.test.mjs(the block description outranking Stack).pnpm visual:probe-theme:check,node scripts/sync-exports.js --check,node scripts/verify-exports.mjs, andnode apps/docsite/scripts/generate-data.mjs(the route lock) pass.playwright test --project=chromium SelectableCardGroupRadioon this branch's Storybook build: 5 passed.ASTRYX_STRICT_LINT=1 eslinton the changed files: 0 errors; Core's strict rules first flagged an unneeded type assertion, a hook dependency onprops, and aString()of a form entry, all fixed.pnpm review:pre --base feat/selectablecard-group-value: 0 findings.A second agent session that did not write the change reviewed both pull requests against the pre-review checklist; this head fixes its findings, and its re-review found none left besides the owner approvals.
Rebased onto the new feat(SelectableCard, SelectableCardGroup): a card joins its group by value #13733 head over main at d63c249. The diff is unchanged (identical patch id). On this head
pnpm preflight --base feat/selectablecard-group-valuepasses again: review:pre (0 findings), build, typecheck, lint, Vitest ui (27,557 tests) and node (30,333 tests, including all 8 swizzle-proof slices, 0 failures),check:knowledgeandcheck:changesets, ending "ready to flip".SelectableCardGroupRadio.a11y.chromium.spec.tspasses on this head's Storybook build: 5 passed.After the review: the Lab entry is a plain re-export of the Core component and props, and the record no longer schedules their removal. On this head (70ef79d),
pnpm preflight --base feat/selectablecard-group-valuepasses again: review:pre (0 findings), build, typecheck, lint, Vitest ui (27,557 tests) and node (30,333 tests, including all 8 swizzle-proof slices, 0 failures),check:knowledgeandcheck:changesets. The Lab test's props-type check fails when the Lab props differ from Core's.After the review of fix(ListInput): base props reach the group, and styling only named parts #13761 (ListInput's base props reach the group): the internal entry stays and re-exports only
useFieldInputStyling. On this head (ff02aea), a throwaway Lab file that calls the hook through the entry as fix(ListInput): base props reach the group, and styling only named parts #13761 does typechecks with Lab'stsc, andnode scripts/sync-exports.js --checkpasses.pnpm preflight --base feat/selectablecard-group-valuepasses again: review:pre (0 findings), build, typecheck, lint, Vitest ui (27,557 tests) and node (30,333 tests, including all 8 swizzle-proof slices, 0 failures),check:knowledgeandcheck:changesets, ending "ready to flip".Rebased onto the new feat(SelectableCard, SelectableCardGroup): a card joins its group by value #13733 head over main at a92c1ce, with no conflicts. Every file's changed lines are the same as before; the patch id differs only because context lines changed in two files (the SelectableCard record, from feat(SelectableCard, SelectableCardGroup): a card joins its group by value #13733's conflict resolution, and the generated probe theme). The internal entry still re-exports
useFieldInputStyling, which fix(ListInput): base props reach the group, and styling only named parts #13761 (ListInput's base props reach the group) imports. On this headpnpm visual:probe-theme:check,node scripts/sync-exports.js --checkand the ShadCN route lock (generate-data.mjs) are current, andpnpm preflight --base feat/selectablecard-group-valuepasses: review:pre (0 findings), build, typecheck, lint, Vitest ui (28,202 tests) and node (30,730 tests, including all 8 swizzle-proof slices, 0 failures),check:knowledgeandcheck:changesets, ending "ready to flip". The screenshots above predate this rebase.After the review of d76fe54: the Core changeset now compares the group's root styling with RadioList and CheckboxList, because PowerSearch, Lab's ListInput and the rich text editor still take root
xstyle,classNameandstyle.check:changesets, Prettier andreview:pre(0 findings) pass on the new head; the change is that one changeset sentence.