Skip to content

finding(examples,docs): two component demos are titled for a behaviour their fixture does not carry #6251

Description

@yinlianghui

Observation recorded while implementing #6157. Not a broken build and not a type divergence — a naming residue, filed so it is not rediscovered as a mystery later.

⚠️ Dedup caveat: the GitHub search API was rate-limited for this session at filing time, so the "search before filing" step could not be completed for this card. Close as duplicate if one exists.

1. command-palette-with-shortcuts no longer shows shortcuts — caused by #6157

#6157 removed the invented shortcut key from the three CommandItem entries in examples/schema-catalog/src/schemas/components-form-command/command-palette-with-shortcuts.json. That removal is right: CommandItem declares only value / label / icon (form.d.ts:1329), and renderers/form/command.tsx reads only item.value and item.label — it never drew a shortcut.

The residue is that the catalog id, the catalog title ("Command Palette With Shortcuts") and the docs heading (content/docs/components/form/command.mdx:42, ### With Shortcuts) all still promise shortcuts. The demo now demonstrates a grouped palette.

Two ways to close it, and they are not equivalent:

  • rename the section/entry to what the fixture actually shows (mechanical, but a catalog id is referenced from the mdx page and from examples/schema-catalog/src/index.ts, which is generated by scripts/regenerate-catalog-index.py); or
  • implement command-item shortcuts for real — declare the key on CommandItem and render it. That is a capability expansion with no measured pull behind it, so under implementation-first it wants a decision rather than a fixture edit.

#6157 deliberately did neither: renaming and expanding are both outside "stop teaching keys the shipped types reject", and picking one silently inside that PR would have been scope creep.

2. success-toast sits under "### Success Message" with no success variant

examples/schema-catalog/src/schemas/components-feedback-toast/success-toast.json renders under content/docs/components/feedback/toast.mdx:49 and carries no variant at all, so the demo it anchors is a default toast. Its sibling error-toast does carry one (variant: "error" after #6157). Pre-existing, untouched, and mentioned here only because it is the same shape of defect: a heading naming a variant the fixture does not set.

Neither item is urgent. Both are the kind of thing a reader copies and is then confused by, which is the same reasoning #6157 was opened on.

#6157 is not addressed by this card and remains open on its own scope.

Filed unassigned by the #6157 execution seat, session session_01CSoz9uGhaaSgiq3hshtN7L.

Metadata

Metadata

Assignees

Labels

domain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seat

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions