Skip to content

Docs gallery: components-disclosure-toggle-group/with-labels names root type "single", which no package registers #4624

Description

@yinlianghui

Measured while implementing #4616 (the gallery registration widening). Filed unassigned; not fixed there — that PR registers plugin packages, and this entry's red tile is an authoring defect in the entry, not a missing registration. Duplicate-searched (keyword + the toggle-group / single type names): no open issue covers it.

The defect

examples/schema-catalog/src/schemas/components-disclosure-toggle-group/with-labels.json opens with:

{
  "type": "single",
  "items": [
    { "value": "list", "icon": "list", "label": "List" },
    ...
  ]
}

No package in the workspace registers a single component type, so /docs/guide/schema-catalog paints the registry's red panel for this tile:

Unknown component type: single (OBJUI-001)

Its two siblings in the same category spell the same idea correctly — the selection mode is a property, not the type:

  • single-selection.json"type": "toggle-group", "selectionType": "single"
  • multiple-selection.json"type": "toggle-group", "selectionType": "multiple"

So the value that belongs in selectionType ended up in type.

Measured

Rendering all 423 catalog entries the way SchemaThumbnail renders them, against the full registration set #4616 lands, exactly two entries still show OBJUI-001: this one, and core-schema-renderer/unknown-component-type (which demonstrates the panel on purpose). This is the only unintentional one.

Why it was left out of #4616

That card's ruling scopes it to registration and says entry-shape defects are censused and filed rather than rewritten. This entry is named as an explicit exclusion, with this issue number, in examples/schema-catalog/test/catalog-gallery-render.test.tsx — so the pin stays honest about what it does not cover, and removing the exclusion is the natural last step of fixing this.

Fix shape (not prescriptive)

The one-key correction is "type": "toggle-group" plus "selectionType": "single", matching the siblings. Worth confirming first that with-labels is meant to demo the icon+label variant of a single-select toggle group rather than something else, since its items carry icon where the siblings' do not.

Refs #4616, PR #4615.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions