Skip to content

feat: design-system docs#500

Merged
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
martinshub-tech:feature/ds-docs
Jul 24, 2026
Merged

feat: design-system docs#500
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
martinshub-tech:feature/ds-docs

Conversation

@martinshub-tech

Copy link
Copy Markdown
Contributor

Closes #388

Expand DesignSystemDocs page (src/pages/DesignSystemDocs.tsx) from a minimal 6-component accordion stub into a full, tabbed design-system reference for contributors and designers.

What changed

src/pages/DesignSystemDocs.tsx

  • Added tabbed navigation: Components | Colours | Typography | Tokens | Utilities
  • Colour palette section with themed swatches for all token groups (Background, Text, Brand & Actions, Semantic, Borders)
  • Typography scale specimens rendered with the correct HTML element per level
  • Spacing & radius token reference table (--radius-xl/lg/md, --transition-speed)
  • CSS utility-class catalogue grouped by category (button, layout, typography, link, state)
  • Expanded component catalogue from 6 to 11 entries, adding: Primary Button (with disabled state), Secondary Button, Danger Button, Surface Card, Eyebrow Label, Status Chip, Skip Link, SearchBar, Skeleton, EmptyState, ServerError
  • Each component accordion now shows: live example, copy-enabled usage snippet, design-token chip list, and an enhanced props table with Required and Default columns
  • Search / filter box across component names, descriptions, and tokens; auto-expands matching accordions; shows an empty state with clear action
  • aria-live region announces filtered result counts to screen readers
  • WCAG 2.1 AA: aria-expanded/controls on all accordions, role=tablist/tab/ tabpanel with aria-selected, role=search on the filter, sr-only live region

src/pages/DesignSystemDocs.test.tsx

  • Rewrote the test suite from 4 smoke tests to 34 focused tests covering:
    • Page heading and eyebrow label rendering
    • All five tabs present and correctly switching (aria-selected, panel visibility)
    • One tab selected at a time invariant
    • Accordion default-open, expand-all, collapse-all, individual toggle
    • aria-expanded and aria-controls correctness
    • Search: filter by name, token name, description keyword
    • Empty-state rendered on no-match query
    • Clear-search restores full list
    • Auto-expand on search query
    • aria-live result-count announcement
    • Copy-button presence and initial label
    • Colour palette group labels and individual token names (panel-scoped)
    • Typography specimen labels
    • Spacing token names
    • Utility class names and category headings (panel-scoped)
    • Accessibility: tabpanel/tab roles, aria-labelledby linkage, search landmark

All 34 tests pass. Pre-existing failures in Breadcrumb, density, ApiCard, FiltersSidebar, FiltersBottomSheet, and MarketplacePage are unrelated to this change.

Expand DesignSystemDocs page (src/pages/DesignSystemDocs.tsx) from a
minimal 6-component accordion stub into a full, tabbed design-system
reference for contributors and designers.

## What changed

### src/pages/DesignSystemDocs.tsx
- Added tabbed navigation: Components | Colours | Typography | Tokens | Utilities
- Colour palette section with themed swatches for all token groups
  (Background, Text, Brand & Actions, Semantic, Borders)
- Typography scale specimens rendered with the correct HTML element per level
- Spacing & radius token reference table (--radius-xl/lg/md, --transition-speed)
- CSS utility-class catalogue grouped by category (button, layout, typography,
  link, state)
- Expanded component catalogue from 6 to 11 entries, adding:
    Primary Button (with disabled state), Secondary Button, Danger Button,
    Surface Card, Eyebrow Label, Status Chip, Skip Link, SearchBar,
    Skeleton, EmptyState, ServerError
- Each component accordion now shows: live example, copy-enabled usage
  snippet, design-token chip list, and an enhanced props table with
  Required and Default columns
- Search / filter box across component names, descriptions, and tokens;
  auto-expands matching accordions; shows an empty state with clear action
- aria-live region announces filtered result counts to screen readers
- WCAG 2.1 AA: aria-expanded/controls on all accordions, role=tablist/tab/
  tabpanel with aria-selected, role=search on the filter, sr-only live region

### src/pages/DesignSystemDocs.test.tsx
- Rewrote the test suite from 4 smoke tests to 34 focused tests covering:
    - Page heading and eyebrow label rendering
    - All five tabs present and correctly switching (aria-selected, panel visibility)
    - One tab selected at a time invariant
    - Accordion default-open, expand-all, collapse-all, individual toggle
    - aria-expanded and aria-controls correctness
    - Search: filter by name, token name, description keyword
    - Empty-state rendered on no-match query
    - Clear-search restores full list
    - Auto-expand on search query
    - aria-live result-count announcement
    - Copy-button presence and initial label
    - Colour palette group labels and individual token names (panel-scoped)
    - Typography specimen labels
    - Spacing token names
    - Utility class names and category headings (panel-scoped)
    - Accessibility: tabpanel/tab roles, aria-labelledby linkage, search landmark

All 34 tests pass. Pre-existing failures in Breadcrumb, density, ApiCard,
FiltersSidebar, FiltersBottomSheet, and MarketplacePage are unrelated to
this change.
@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@martinshub-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me
greatest0fallt1me merged commit a71cd23 into CalloraOrg:main Jul 24, 2026
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Nice one — clean, focused change. Merging. 🚀

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 design-system docs page

2 participants