refactor(model): extract dashboard model package #34

Merged
vince merged 2 commits from codex/turbo-package-boundaries into main 2026-06-20 06:36:32 +02:00
Owner

Summary

Extract the reusable dashboard schema, validation, and generic fixture into a dedicated internal workspace package.

Why

The repo had reusable UI in packages/ui, but the dashboard model contract still lived under apps/web. That made the app own code that should be shareable across components, tooling, and future apps.

Changes

  • Add @dimensionlab/dashboard-model under packages/dashboard-model.
  • Move dashboard schema, validation, and generic fixture into the new package.
  • Keep Dimension Lab-specific seed data in the web app under apps/web/src/lib/dashboard-seed.
  • Update web imports to consume the internal model package.
  • Add Vite and TypeScript source aliases for local app development.
  • Add workspace-boundary coverage for the new package.
  • Update README workspace layout and seed-data paths.

Testing

  • bun run --cwd packages/dashboard-model build
  • bun run --cwd packages/dashboard-model test:unit
  • bun run --cwd apps/web test:unit src/lib/workspace-boundary.test.ts
  • bun run check
  • bun run test:unit
  • bun run build
  • bun run db:check
  • bun run test:qa

Notes

Turbo dry-runs now show @dimensionlab/dashboard-model#build as a dependency of @dimensionlab/web#build and @dimensionlab/web#test:e2e.

## Summary Extract the reusable dashboard schema, validation, and generic fixture into a dedicated internal workspace package. ## Why The repo had reusable UI in `packages/ui`, but the dashboard model contract still lived under `apps/web`. That made the app own code that should be shareable across components, tooling, and future apps. ## Changes - Add `@dimensionlab/dashboard-model` under `packages/dashboard-model`. - Move dashboard schema, validation, and generic fixture into the new package. - Keep Dimension Lab-specific seed data in the web app under `apps/web/src/lib/dashboard-seed`. - Update web imports to consume the internal model package. - Add Vite and TypeScript source aliases for local app development. - Add workspace-boundary coverage for the new package. - Update README workspace layout and seed-data paths. ## Testing - `bun run --cwd packages/dashboard-model build` - `bun run --cwd packages/dashboard-model test:unit` - `bun run --cwd apps/web test:unit src/lib/workspace-boundary.test.ts` - `bun run check` - `bun run test:unit` - `bun run build` - `bun run db:check` - `bun run test:qa` ## Notes Turbo dry-runs now show `@dimensionlab/dashboard-model#build` as a dependency of `@dimensionlab/web#build` and `@dimensionlab/web#test:e2e`.
vince added 1 commit 2026-06-20 06:26:40 +02:00
vince added 1 commit 2026-06-20 06:34:36 +02:00
vince merged commit 8927f2ab8a into main 2026-06-20 06:36:32 +02:00
Sign in to join this conversation.
No description provided.