chore: add Storybook 10 setup with PrimeVue + Tailwind integration #25
Reference in New Issue
Block a user
Delete Branch "claude/reverent-driscoll-a37dce"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Installs Storybook 10.4 in
apps/app/as a component-development and autodoc tool, wired to the existing PrimeVue + Tailwind v4 stack.Three commits:
ebb8e3bcchore: add Storybook 10 setup with PrimeVue + Tailwind integration999e30f0docs: add Storybook section to FRONTEND-TOOLING.md3c6bd052docs: fix stale Vitest note in FRONTEND-TOOLING + update RFC-WS-FRONTEND-PRIMEVUE §13 Storybook entryWhat changed
Setup (
apps/app/):.storybook/main.ts— framework + 2 addons (addon-docs,addon-a11y),viteFinalmirrors all 7 SPA aliases so stories resolve imports identically to dev/build.storybook/preview.ts— reuses@/plugins/primevue'sinstallPrimeVue()instead of duplicating registration, so Storybook stays in lock-step withmain.tswhenever PrimeVue config changes; importstailwind.csssrc/stories/PrimeVueSmoke.stories.ts— Button (Primary / Secondary / Danger)src/stories/TailwindSmoke.stories.ts— utility-class boxsrc/components/forms/FormField.stories.ts— Default / WithError / Disabled, wrapped in<Form>+ Zod resolverMake target:
make storybookalongsidemake app/make docs(port 6006)Docs:
dev-docs/FRONTEND-TOOLING.md§ Storybook added; § Vitest corrected (apps/app has 402 tests, not "no test suite")dev-docs/RFC-WS-FRONTEND-PRIMEVUE.md§13 — Storybook bullet now strikethrough with "Landed post-RFC" noteOut of scope (intentional)
@storybook/addon-interactions— interaction testing stays in Playwright CT per testing architecture@storybook/addon-essentials— composed addons explicitly (only docs + a11y)@storybook/addon-vitest— would have added a third Vitest project with browser-mode Playwright; not neededTest plan
pnpm test— 57 files / 402 tests passed (5.98s)pnpm typecheck— clean (vue-tsc 3.1.2)pnpm build-storybook— succeeded (3.46s), output instorybook-static/pnpm storybook/make storybook— dev server boots on http://localhost:6006/ within ~10s, all 3 stories renderKnown cosmetic warning (non-blocking)
Storybook startup logs three
unable to find package.json for @primeuix/themes / @primevue/forms / primevuewarnings. These are caused by PrimeVue v4'sexportsmap missing an entry Storybook's package-meta-resolver expects. No runtime impact — all stories render correctly. Worth tracking upstream if it persists past PrimeVue v5.