@dfactory/ui
v0.1.1
Published
`@dfactory/ui` is the Storybook-style manager interface for dFactory.
Readme
@dfactory/ui
Purpose
@dfactory/ui is the Storybook-style manager interface for dFactory.
It includes:
- template catalog and search
- HTML/PDF preview controls
- payload/schema/source/playground inspector panels
- production UI asset builder used by CLI/server
Usage
Local UI-only development:
pnpm --filter @dfactory/ui devBuild UI assets:
pnpm --filter @dfactory/ui buildThe package root ships static UI assets. JavaScript helpers are exported only from @dfactory/ui/node for CLI and server integration.
Development
pnpm --filter @dfactory/ui typecheck
pnpm --filter @dfactory/ui test
pnpm test:e2eUse official shadcn component composition for all structural UI updates.
Troubleshooting
- Preview iframe empty: verify API URL environment wiring in dev server startup.
- Catalog state regressions: run
tests/e2e/dfactory-ui.spec.ts. - style drift: keep semantic tokens and avoid raw color utilities in shared primitives.
