docs: element-docs.ts entries never render
Author: okisdevCreated Sep 26, 2026Updated Sep 26, 2026
Labelsbug
none of the 94 entries defined in apps/docs/components/pages/elements/element-docs.ts render anywhere, so the file is ~6k lines of copies that drift from the components.
the element page (apps/docs/app/(catalog)/elements/(detail)/[slug]/page.tsx) shows an entry's usage only when the element has no mdx page, and its props only when that mdx has no api reference or props heading:
- 87 entries belong to elements whose mdx page has an
## API referencesection, so both branches are skipped. the page still runshighlightElementSource(doc.usage)for them on every render. - 7 entries (
reasoning-panel,source-cards,message-attachment,quote-reply,timing-footer,parallel-tools,model-picker) name slugs the catalog registry no longer has, so they are never looked up.
only the AUI_ELEMENT_DOCS entries it spreads in can still render (for example conversation-map, which has no mdx page).
fix: delete the 94 entries and keep the ElementDoc types with the aui map, and skip the usage highlight when an mdx page exists.
Source: assistant-ui/assistant-ui