refactor: split website and reusable UI package #32

Merged
vince merged 7 commits from codex/turbo-component-library into main 2026-06-20 05:52:08 +02:00
Owner

Summary

Migrates the project into a Turbo/Bun workspace with the website under apps/web and reusable React dashboard components under packages/ui.

Why

The dashboard components need to be reusable outside the website while keeping Dimension Lab-specific model data, persistence, server routes, and deployment concerns in the web app.

Changes

  • Adds Turbo workspace manifests and shared TypeScript config.
  • Extracts reusable UI components, tokens, primitives, fixtures, and Storybook into @dimensionlab/ui.
  • Moves the website runtime, model adapter, server, Drizzle migrations, Playwright tests, and container build into apps/web.
  • Wires Storybook static QA, shadcn config, root scripts, README paths, and Podman container build for the workspace layout.

Testing

  • bun run test:qa
  • podman build -f apps/web/Containerfile -t localhost/dimensionlab-website:codex-turbo .
  • Container smoke: /api/dashboard returned state=ready, schemaVersion=dashboard.v1, title=System Overview.

Notes

The UI package is still private, but now has package exports for JS, types, CSS, and Storybook for review. The web app aliases workspace UI imports to source for local builds while the package still emits compiled dist artifacts.

## Summary Migrates the project into a Turbo/Bun workspace with the website under `apps/web` and reusable React dashboard components under `packages/ui`. ## Why The dashboard components need to be reusable outside the website while keeping Dimension Lab-specific model data, persistence, server routes, and deployment concerns in the web app. ## Changes - Adds Turbo workspace manifests and shared TypeScript config. - Extracts reusable UI components, tokens, primitives, fixtures, and Storybook into `@dimensionlab/ui`. - Moves the website runtime, model adapter, server, Drizzle migrations, Playwright tests, and container build into `apps/web`. - Wires Storybook static QA, shadcn config, root scripts, README paths, and Podman container build for the workspace layout. ## Testing - `bun run test:qa` - `podman build -f apps/web/Containerfile -t localhost/dimensionlab-website:codex-turbo .` - Container smoke: `/api/dashboard` returned `state=ready`, `schemaVersion=dashboard.v1`, `title=System Overview`. ## Notes The UI package is still private, but now has package exports for JS, types, CSS, and Storybook for review. The web app aliases workspace UI imports to source for local builds while the package still emits compiled `dist` artifacts.
vince added 5 commits 2026-06-20 05:43:30 +02:00
vince added 1 commit 2026-06-20 05:49:21 +02:00
vince added 1 commit 2026-06-20 05:51:20 +02:00
vince merged commit 4fc89c4d3f into main 2026-06-20 05:52:08 +02:00
Sign in to join this conversation.
No description provided.