Skip to content

feat(console): add Storybook as the design notebook - #342

Open
jeroenrinzema wants to merge 4 commits into
mainfrom
jeroenrinzema/console-storybook
Open

jeroenrinzema wants to merge 4 commits into
mainfrom
jeroenrinzema/console-storybook

Conversation

@jeroenrinzema

Copy link
Copy Markdown
Contributor

Summary

console/
├── .storybook/        main.ts (reuses vite.config.ts), preview.tsx (en locale, memory router, UTC prefs), preview-head.html
├── stories/           17 story files: every renderable ui/ primitive + Pages/Campaigns
│   └── fixtures/      campaigns.ts, shell.tsx (sidebar shell with WorkspaceSwitcher)
├── AGENTS.md          console UI rules (stories as the design notebook)
└── package.json       storybook 10.6.7, @storybook/react-vite; `storybook`, `storybook:build`; lint covers stories
.github/workflows/ci.yml   build job runs `pnpm storybook:build`
AGENTS.md                  defers to nested AGENTS.md; Storybook is the design reference and screenshot source

Not storied: ui/map.tsx (loads basemap tiles from cartocdn.com and needs WebGL).

Evidence

  • Before: no Storybook
    After: 63 stories render in Chromium with no console errors or warnings, and no requests leave the Storybook server (checked in dev and against storybook-static).
    │  Vite ✓ built in 4.27s
    ◇  Output directory: console/storybook-static
    └  Storybook build completed successfully
    
    campaigns-populated
    campaigns-empty
    form-fields
    dropdown-options
    button-variants

Merge Danger

Door: two-way
Blast Radius: tooling

Entry point covering the repository map, security and data guardrails, generated code, console conventions, validation, and PR expectations.
Mirror Brainpod's sections and working rules, adapted to Lunogram's components, guardrails, and tooling.
Stories in console/stories/ cover the ui primitives and a fixture-based Campaigns page composition. Storybook reuses the app vite config and bundles the English locale, so stories render without a backend. CI builds Storybook alongside the console.
Adds console/AGENTS.md with the console UI rules and makes the root guide defer to the nearest nested AGENTS.md.
Base automatically changed from jeroenrinzema/agents-md to main November 30, 2026 10:47

This branch has not been deployed

No deployments
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.

1 participant