Goal: Someone copies a pattern and it actually works in production
Status: ✅ Complete
Current state: Basic table with no interactivity Target state: Production-ready table with sort, filter, pagination, selection
- Client-side sorting — Click column headers to sort
- Search/filter input — Filter rows by text search
- Pagination — 10/25/50/100 rows per page
- Row selection — Checkboxes with select all
- Loading state — Skeleton rows while loading
- Keep zero-dependency (no tanstack-table)
patterns/data-table/component.tsxpatterns/data-table/schema.tspatterns/data-table/example.tsx
Current state: Raw SVG charts (limited, hard to maintain) Target state: Recharts-based charts (industry standard)
- Replace SVG with Recharts components
- Support:
bar,line,area,pie,donut - ResponsiveContainer for proper sizing
- Tooltip on hover with formatted data
- Keep Zod schema simple (LLMs know Recharts)
patterns/chart/component.tsxpatterns/chart/schema.tspatterns/chart/example.tsxpatterns/chart/package.json(add recharts)
Current state: Basic form inputs, no validation Target state: Production form with Zod validation
- Zod validation — Use the schema for validation
- Error states — Per-field error messages
- Loading/submitting state — Disable while submitting
- New field types:
date,password,radio,toggle,file - Success/error feedback after submission
patterns/agent-form/component.tsxpatterns/agent-form/schema.tspatterns/agent-form/example.tsx
"Your LLM generates the Zod schema → the form validates itself"
Current state: Simple card with trend Target state: Polished metric card with visual enhancements
- Sparkline mini-chart (tiny SVG, no deps)
- Loading skeleton variant
- Comparison mode (show vs previous period)
- Different sizes (sm, md, lg)
patterns/metric-card/component.tsxpatterns/metric-card/schema.tspatterns/metric-card/example.tsx
Current state: Simple loading states Target state: Comprehensive streaming/loading indicator
- Rename to
StreamingIndicator - Streaming text variant (typewriter effect)
- Progress variant with steps
- Token counter display option
- Pulse/dots/spinner variants (keep existing)
- Rename
patterns/thinking-indicator/→patterns/streaming-indicator/ patterns/streaming-indicator/component.tsxpatterns/streaming-indicator/schema.tspatterns/streaming-indicator/example.tsx
Current state: Basic list of insights Target state: Interactive insights list
- Collapsible details (expand/collapse)
- Action buttons per insight
- Priority sorting (high/medium/low)
- Filter by type (info/warning/success/error)
patterns/insights-list/component.tsxpatterns/insights-list/schema.tspatterns/insights-list/example.tsx
Current state: Basic detail view Target state: Interactive detail card
- Edit mode (inline editing of fields)
- Copy value button per field
- Status badges (active/inactive/pending)
- Loading skeleton variant
patterns/detail-card/component.tsxpatterns/detail-card/schema.tspatterns/detail-card/example.tsx
- All 7 patterns upgraded to production quality
- Each pattern has comprehensive examples
- Schemas updated with new features
- All patterns tested in playground
- Zero new dependencies except Recharts for Chart pattern
- Added client-side sorting (click column headers)
- Added search/filter functionality
- Added pagination (10/25/50 rows per page)
- Added row selection with checkboxes
- Added loading skeleton state
- Zero dependencies (no tanstack-table)
- Migrated to Recharts (industry standard)
- Supports: bar, line, area, pie, donut
- Added responsive container
- Added hover tooltips with formatting
- Simplified Zod schema
- Added Zod validation (schema-driven)
- Added per-field error states
- Added loading/submitting states
- Added new field types: date, password, radio, toggle, file
- Success/error feedback after submission
- Added sparkline mini-charts (SVG, no deps)
- Added loading skeleton variant
- Added comparison mode (vs previous period)
- Added size variants (sm, md, lg)
- Renamed for broader use case
- Added streaming text variant (typewriter)
- Added progress variant with steps
- Added token counter display
- Kept existing variants (dots, pulse, spinner)
- Added collapsible details (expand/collapse)
- Added action buttons per insight
- Added priority sorting (high/medium/low)
- Added type filters (info/warning/success/error)
- Added edit mode (inline editing)
- Added copy value buttons
- Added status badges (default/success/warning/error)
- Added loading skeleton variant