- Nx 22.7 monorepo (pnpm 11.1, TypeScript 5.9, Node 24) - apps/api: NestJS 11 (CJS conforme CODING-RULES.md PGD-DB-004) - apps/web: React 19 + Vite 8 (ESM) - libs/shared/api-interface: Zod contract base - Docker Compose dev: Postgres 18, Valkey 8, MinIO, Mailpit - WDS artifacts: - design-artifacts/A-Product-Brief/ (5 docs canônicos + 16 dialogs) - design-artifacts/B-Trigger-Map/ (hub + 4 personas + feature impact) - Stack canon: STACK.md v2.2 + CODING-RULES.md v2.0 + brand.md - AGENTS.md + README.md como entrada para devs/agentes Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.7 KiB
1.7 KiB
name, description
| name | description |
|---|---|
| view-components | Preview selected design system components rendered in localhost |
View Components
Goal: Render selected components in a localhost preview so the user can see them visually with all states and variants.
INITIALIZATION
Design Log
Read {output_folder}/_progress/00-design-log.md. Check Current and Backlog for context.
Steps
Step 1: Select Components
Present the component catalog and let the user choose what to view:
Available components:
1. Button (4 variants)
2. Card (3 variants)
3. Input (5 variants)
...
Select components to preview (comma-separated, or "all"):
Step 2: Generate Preview App
Build a minimal localhost application that renders the selected components:
- Read component specifications from
{output_folder}/D-Design-System/components/ - Read design tokens from
{output_folder}/D-Design-System/design-tokens.md - Generate HTML/CSS that renders each component with:
- All variants side by side
- All interactive states (default, hover, active, disabled, focus)
- Responsive breakpoints
- Dark/light mode (if defined)
- Serve on localhost
Step 3: Interactive Review
With the preview running:
- User inspects components visually
- User can request changes → routes to [E] Edit Components or [C] Create (update)
- User can flag issues → logged for later
Step 4: Capture Feedback
If the user notes issues or desired changes:
- Log each item with component name, issue description, severity
- Suggest next action: edit in Figma, update via Create, or defer
AFTER COMPLETION
- Update design log
- Stop localhost server
- Return to Phase 7 Activity Menu