app.storybook
Private dogfood Storybook for ContractSpec package catalogs and the canonical design matrix.
@lssm-tech/app.storybookSource, release and verification context
Source snapshot bcc79fcc · Declared package version 0.1.3. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.
See where this package fits.
Follow a declared connection, inspect an import, then open the source guide when you need the detail.
Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.
ContractSpec Storybook
Private dogfood host for @lssm-tech/integration.storybook. The app owns only catalog selection and host configuration; reusable scenarios, bindings, providers, and styling live in their publishing packages.
The canonical design suite is 30 built-in design packs × 8 surface families × 2 governed web profiles, producing 480 Chromatic snapshots. Native profiles remain in their existing qualification lanes.
The host explicitly opts into four catalogs:
@lssm-tech/lib.design-catalog/storybook— 480 design-matrix stories.@lssm-tech/lib.design-system/storybook— 30 canonical-family stories.@lssm-tech/lib.ui-kit-web/storybook— 16 web-primitive stories.@lssm-tech/module.communication-os/storybook— 480 migrated product stories.
The host also owns the cross-catalog runtime: Storybook Docs and MDX, React Docgen, class-based light/dark themes, official and ContractSpec viewport presets, deterministic locale/context/flag/API-state toolbars, isolated query caches and browser storage, strict MSW network handling, portal isolation, Storybook MCP, and Chromium/WebKit/reduced-motion browser profiles.
The authoring-pattern stories exercise typed fixtures, inferred controls, meta- and story-local render/decorator/lifecycle behavior, fn() spies, named interaction steps, keyboard and pointer flows, scoped portal queries, and composed play workflows.
The design matrix uses eight distinct production-shaped fixtures and the real Tailwind, ThemeSpec, design-pack, locale, semantic-token, reduced-motion, and self-hosted font pipeline. Browser-default or placeholder rendering is a release failure.
Repository governance also inventories every other React package. Catalog and host status live in package-local contractspec.catalog.visualTesting
metadata; deferred packages carry an accountable owner, rationale, and rollout wave rather than disappearing from Storybook adoption checks.
bun run generate
bun run generate:check
bun run storybook
bun run storybook:build
bun run test:visual-browser
bun run test:browser:webkit
bun run test:browser:reduced-motion
bun run test:browser:coveragetest:visual-browser builds the static host and verifies the sixteen canonical reference cases in Chromium: eight Editorial light/mobile surfaces and eight Executive Ledger dark/desktop surfaces. It checks computed Tailwind layout, semantic colors and radii, self-hosted font resources, theme-global propagation, viewport-specific composition, console cleanliness, and non-empty screenshots against references/design-matrix.json.
The sixteen reviewed local PNG goldens are committed under
references/screenshots; the manifest locks every byte size and SHA-256 hash. Set STORYBOOK_REFERENCE_OUTPUT to retain a fresh browser run elsewhere. Chromatic remains the cross-platform pixel-diff authority because Chromium and font rasterization vary across hosts.
Chromatic is optional. bun run chromatic reads CHROMATIC_PROJECT_TOKEN from the environment; no project token is stored in this package. TurboSnap remains disabled until the repository records ten successful full builds and explicitly opts in.
Storybook, Vitest browser profiles and Chromatic launch under Node.js. Use the runner profile's pinned Node toolchain; on Apple Silicon it must match the native dependency architecture. Bun remains the package manager and catalog/unit-test runner. The packed-consumer proof uses the same Node-based Storybook launcher.
The local development commands preload the pinned tsx loader for workspace TypeScript exports. The packed-consumer proof runs ordinary Node against published JavaScript export maps, preserving the distinction between development and release.
Builder company-context workflow
src/builder/company-context.stories.tsx exercises the shared Builder panel with deterministic, in-memory context responses. It covers explicit retrieval, release-authority messaging, loading, unavailable configuration, denied access, conflicting sources, untrusted text, and UTF-8 question limits. These are UI qualification fixtures; they do not qualify a live knowledge provider or grant release authority. Run the focused Chromium lane with:
bun run test:browser:builder
bun run test:browser:builder:mobile
bun run test:browser:builder:webkitThe focused lane indexes only these seven stories with one Chromium worker, using the same Next.js-Vite framework and shared preview as the full host. It preserves strict MSW, sandbox isolation, fonts/themes, and accessibility checks; it supplements rather than replaces the full catalog gates. The mobile and WebKit profiles use a 390 × 844 viewport and check horizontal overflow in every state. WebKit here qualifies the browser engine at that viewport; it does not establish physical iOS-device or native-app support.
Accessibility violations are errors for these stories. Reviewed visual baselines and live grounding remain separate release requirements.
The focused Builder catalog also includes candidate-execution.stories.tsx: a controlled prepare/approve/run/status journey and unavailable/unknown states. These are deterministic UI fixtures; live authority, retained artifacts and AgentHost execution require separate end-to-end qualification.
Declared capabilities.
This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.
Imports and export paths.
0 entriesThese are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.
This workspace does not declare package export paths.
Dependencies and related packages.
Runtime dependencies 10
- @lssm-tech/integration.storybook
- workspace:*
- @lssm-tech/lib.design-catalog
- workspace:*
- @lssm-tech/lib.design-system
- workspace:*
- @lssm-tech/lib.ui-kit-web
- workspace:*
- @lssm-tech/module.builder-workbench
- workspace:*
- @lssm-tech/module.communication-os
- workspace:*
- @tanstack/react-query
- ^5.103.1
- react
- catalog:
- react-dom
- catalog:
- zod
- catalog:
Development dependencies 34
- @fontsource/atkinson-hyperlegible
- 5.3.0
- @fontsource/bricolage-grotesque
- 5.3.0
- @fontsource/fraunces
- 5.3.0
- @fontsource/ibm-plex-mono
- 5.3.0
- @fontsource/ibm-plex-sans
- 5.3.0
- @fontsource/newsreader
- 5.3.0
- @fontsource/unbounded
- 5.3.0
- @lssm-tech/tool.typescript
- workspace:*
- @storybook/addon-a11y
- catalog:testing
- @storybook/addon-docs
- catalog:testing
- @storybook/addon-mcp
- catalog:testing
- @storybook/addon-themes
- catalog:testing
- @storybook/addon-vitest
- catalog:testing
- @storybook/builder-vite
- catalog:testing
- @storybook/nextjs-vite
- catalog:testing
- @storybook/react
- catalog:testing
- @storybook/react-vite
- catalog:testing
- @tailwindcss/postcss
- 4.3.3
- @types/bun
- catalog:types
- @types/node
- catalog:types
- @types/react
- catalog:types
- @types/react-dom
- catalog:types
- @vitest/browser
- catalog:testing
- @vitest/browser-playwright
- catalog:testing
- @vitest/coverage-v8
- catalog:testing
- chromatic
- catalog:testing
- msw
- catalog:testing
- msw-storybook-addon
- catalog:testing
- playwright
- catalog:testing
- storybook
- catalog:testing
- tailwindcss
- catalog:build
- tsx
- 4.23.13
- typescript
- catalog:testing
- vitest
- catalog:testing
Package scripts.
Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.
bun scripts/generate.tsbun scripts/generate.ts --checknode --import tsx ./node_modules/storybook/dist/bin/dispatcher.js dev -p 6006 -c .storybookSTORYBOOK_MCP_DOCS_ONLY=true node --import tsx ./node_modules/storybook/dist/bin/dispatcher.js build -c .storybook -o storybook-staticbun test src --path-ignore-patterns='src/packed-catalog.test.ts'bun test src/packed-catalog.test.tsnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.config.tsnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.fast.config.tsnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.webkit.config.tsnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.reduced-motion.config.tsnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.config.ts --coveragebun run storybook:build && bun scripts/verify-visual-acceptance.tsnode --import tsx ./node_modules/chromatic/dist/bin.cjs --exit-once-uploaded --build-script-name=storybook:buildnode ../../../scripts/biome.cjs check .node ../../../scripts/biome.cjs check --write .tsgo --noEmitnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.builder.config.tsnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.builder.mobile.config.tsnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.builder.webkit.config.ts