appsWorkspace onlyv0.1.3

app.storybook

Private dogfood Storybook for ContractSpec package catalogs and the canonical design matrix.

@lssm-tech/app.storybook
Source, 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.

Package source ↗ Manifest ↗
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGEapp.storybookapps

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

10 declarations · first 6 shownSELECT TO INSPECT

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.

sh
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:coverage

test: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:

sh
bun run test:browser:builder
bun run test:browser:builder:mobile
bun run test:browser:builder:webkit

The 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 entries

These 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
@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
@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.

generatebun scripts/generate.ts
generate:checkbun scripts/generate.ts --check
storybooknode --import tsx ./node_modules/storybook/dist/bin/dispatcher.js dev -p 6006 -c .storybook
storybook:buildSTORYBOOK_MCP_DOCS_ONLY=true node --import tsx ./node_modules/storybook/dist/bin/dispatcher.js build -c .storybook -o storybook-static
testbun test src --path-ignore-patterns='src/packed-catalog.test.ts'
test:packedbun test src/packed-catalog.test.ts
test:browsernode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.config.ts
test:browser:fastnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.fast.config.ts
test:browser:webkitnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.webkit.config.ts
test:browser:reduced-motionnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.reduced-motion.config.ts
test:browser:coveragenode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.config.ts --coverage
test:visual-browserbun run storybook:build && bun scripts/verify-visual-acceptance.ts
chromaticnode --import tsx ./node_modules/chromatic/dist/bin.cjs --exit-once-uploaded --build-script-name=storybook:build
lint:checknode ../../../scripts/biome.cjs check .
lint:fixnode ../../../scripts/biome.cjs check --write .
typechecktsgo --noEmit
test:browser:buildernode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.builder.config.ts
test:browser:builder:mobilenode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.builder.mobile.config.ts
test:browser:builder:webkitnode --import tsx ./node_modules/vitest/vitest.mjs run --config vitest.builder.webkit.config.ts
Your view

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Your context

The different parts of you

Choose a starting point

A useful mix of context, visuals and gentle guidance.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Reading comfort

Choose your language

Interface language changes text only. Markets, prices and workflows keep their own settings.

Translation coverage

Original source

Navigation151
Graph616
Categories378
Portfolio833
Examples2,035
Source preview1,542

More translations will be added as content is reviewed.

This preference is saved on this browser.

Search the website

Useful starting points

No results. Try a shorter phrase, an operation name or another search area.

A LITTLE ROOM TO EXPLORE

Find something to explore.

Open a closer look on this page, try a different perspective, or follow the detail into its own page.

How previews and controls work
01

Look before you leave

Hover a link or focus it with Tab to see a preview. Clicking the original link or pressing Enter always opens its destination.

02

Stay with the context

Move into the preview to explore its sections. Use Alt + ↓ from a focused link to enter it with the keyboard. Escape closes it.

03

Open the possibilities

Disclosure rows, perspective choices and highlighted controls reveal more. Your view changes reading comfort and the context you explore.

A separate button for a closer look

Show small preview buttons beside links where there is room. Tap the eye to inspect, or tap the link to go straight there. This choice stays in this tab.

No browsing history is collected. Reduced motion follows your device and Your view.