Skip to content

Add per-component design-system docs page#331

Merged
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
Baskarayelu:issue-289
Jun 29, 2026
Merged

Add per-component design-system docs page#331
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
Baskarayelu:issue-289

Conversation

@Baskarayelu

Copy link
Copy Markdown
Contributor

Closes #289

Summary

  • Adds src/pages/DesignSystemDocs.tsx: internal /design-system/docs page cataloguing 8 UI components (atoms, molecules) with live examples, design-token references, WCAG 2.1 AA accessibility notes, and a permalink anchor per card
  • Search input and category filter (All / atoms / molecules / organisms) for quick component lookup
  • Toggleable design-token list per component card
  • Registers the route in App.tsx (APP_ROUTES.designSystemDocs) and adds nav links in header and footer
  • Adds src/pages/DesignSystemDocs.test.tsx with 5 focused RTL tests covering: initial render, search filtering, empty-state message, category filtering, and token-toggle behaviour

Test plan

  • pnpm test / npm test – all existing tests pass; 5 new tests pass
  • Navigate to /design-system/docs and verify component cards render with examples
  • Type in the search box and confirm live filtering
  • Click category buttons (atoms / molecules) and verify correct cards show
  • Click "Show design tokens" on any card and verify tokens appear / hide on toggle
  • Verify page is keyboard-navigable and heading hierarchy is correct

🤖 Generated with Claude Code

Add DesignSystemDocs page at /design-system/docs listing all UI
components with live examples, design tokens, and prop tables.
Includes expand/collapse controls and WCAG 2.1 AA accessibility.
Also register the route in App.tsx and add 4 focused Vitest tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@greatest0fallt1me greatest0fallt1me merged commit 3dc3af6 into CalloraOrg:main Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add per-component design-system docs page

2 participants