Skip to content
SprecherEast
Issue 1528

Epic: Component showcase built from the site itself

Back to our plan
Open
enhancementfrontendtoolingpriority: medium

Problem

In plain words: the people building the site need one place to see every shared component, what each can do and how it looks in light and dark, in the site's own look and comfortable on a phone. The Storybook showcase (#1424) doesn't do that: on a phone it shows the desktop layout, the components are hard to find and browse, and it can't take the site's header, layouts or theme.

Summary of the owner's decision (2026-11-26, Claude session, text and voice, recorded on #1424, opens in a new tab): replace Storybook with one native showcase, built from the site's own header, layouts, UI kit and theme tokens, at dev.sprechereast.com/showcase, kept in sync with the code and the knowledge layer by the build.

Proposed fix

The capability, in steps (each a sub-issue, one pull request each):

  1. #1529 A toggle switch in the UI kit (the light and dark toggle needs it).
  2. #1530 Serving the site's own developer pages at dev.sprechereast.com.
  3. #1531 The developer site shell: home page, header with the light and dark toggle at the top right, searchable side navigation that becomes a slide-out menu on phones.
  4. #1532 The examples format and a generated showcase index: one examples file beside each component, with props, variants and usage counts from the generated reference.
  5. #1533 The landing page: every shared component at a glance.
  6. #1534 The component page: compact configuration panels, each with a live example, its code, its purpose, settings where they help, and a permanent link.
  7. #1535 A theme-readiness flag for each component.
  8. Moving every component over, by group: #1536, #1537, #1538, #1539.
  9. #1540 A check that fails a pull request that changes a shared component without its examples.
  10. #1541 Retiring Storybook and /dev/gallery.

Out of scope: switching between several themes (waits for a second theme, #370; the showcase is built so one drops in); screenshot comparison tests (possible later with Playwright); the knowledge map page itself (#1446), which only gets a link from the developer home page. Done when: every shared component in src/platform/ui/ and src/platform/richtext/ is on the showcase with its configurations; it works and reads well on a phone and a desktop, in light and dark; a pull request that changes a shared component without its examples fails a check; Storybook and /dev/gallery are gone. Milestone: Site look and feel.

Existing work compared

Searched open and closed issues on 2026-11-26 for showcase, Storybook, gallery, toggle, switch, developer site, examples, theme readiness, usage and side navigation.

  • #1424 (Storybook showcase) is replaced by this epic; its decisions carry over. #1447 and #1459 (closed) built the Storybook setup and the developer site; #1467, #1468 and #1475 closed as not planned.
  • #466 (closed) built /dev/gallery, which this replaces. #468 and #654 fix components the gallery found; unaffected.
  • #1446 (knowledge map) is a sibling page on the same developer site.
  • #370 (switchable themes) is what multi-theme switching waits for.
  • No issue proposes a native showcase, a toggle switch component or a theme-readiness check.

Acceptance criteria

  • Not done: Every sub-issue is closed
  • Not done: The done test above passes, checked on a phone and a desktop in light and dark

Files likely touched

src/platform/ui/, src/platform/richtext/, src/app/, scripts/reference/, ops/, .github/workflows/, docs/, .storybook/, package.json

Must not touch

src/payload.config.ts, src/modules/*/domain/

Open questions

  • The landing and component pages wait for the owner to approve a mockup at phone and desktop widths.

Area

frontend, tooling

Priority

priority: medium


Generated by Claude Code, opens in a new tab

Issues in this epic

See it on GitHub, opens in a new tab