Skip to content
SprecherEast
Issue 466

enhancement: Development-only gallery of every shared component

Back to our plan
Done
enhancementfrontendpriority: medium

Summary

Add a development-only gallery page that shows every shared component and each of its variants, in light and dark. One page lets anyone see the whole kit at a glance, and catch a component that looks wrong after a change.

Details

Epic #163, "Testing": "A development-only gallery page shows every component and variant." Its acceptance criteria include "Every component in the set has tests and a gallery entry."

  • Contents: the components in docs/ui/component-set.md and their variants: Button, Link, Field (each control), Form, Alert, Badge, Card/CardGrid, PageHeader, Text, MetaList, DateTime, EmptyState, Section, DetailLayout, Dialog, Toast, Breadcrumbs and Media. Each one renders with plain sample props.
  • Development only: the route answers 404 in production (notFound() unless NODE_ENV is development), and it's never indexed or in the sitemap.
  • Usable for screenshot checks: stable sample content, no network data, so a visual change in a shared component shows up in one place.
  • Where it lives: a route under src/app/(frontend)/ that only composes components from platform/ui, with sample data next to the route.

Acceptance criteria

  • Not done: /dev/gallery (or a similar path) shows every component and variant in the set, under a heading for each component.
  • Not done: It answers 404 in production. A test covers that.
  • Not done: It renders cleanly at 320 and 1280 px in both themes, and axe finds no failures on it.
  • Not done: docs/ui/component-set.md links it.

Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab