refactor(ui): organize component source tree #35

Merged
vince merged 2 commits from codex/turbo-ui-filetree into main 2026-06-20 06:52:12 +02:00
Owner

Summary

  • Reorganize packages/ui/src/components into four domain folders: foundation, frames, operations, and telemetry.
  • Keep the public @dimensionlab/ui barrel stable while updating internal imports, render tests, and Storybook stories.
  • Add package boundary/inventory tests for the new component tree shape and document it in the README.

Why

The UI package was shareable but still had a flat component bucket, which made the Turborepo/component-library organization harder to scan and maintain.

Changes

  • Move reusable React components into domain folders.
  • Update cross-domain component imports and package exports.
  • Update Storybook inventory tests and stories to use the public package API.
  • Document the component source domains in the workspace layout.

Testing

  • bun run --cwd packages/ui test:unit
  • bun run --cwd packages/ui check
  • bun run test:qa
  • bun run db:check
  • git diff --check

Notes

  • This is a source tree organization PR only; app imports continue through @dimensionlab/ui and runtime behavior is intended to stay unchanged.
## Summary - Reorganize `packages/ui/src/components` into four domain folders: `foundation`, `frames`, `operations`, and `telemetry`. - Keep the public `@dimensionlab/ui` barrel stable while updating internal imports, render tests, and Storybook stories. - Add package boundary/inventory tests for the new component tree shape and document it in the README. ## Why The UI package was shareable but still had a flat component bucket, which made the Turborepo/component-library organization harder to scan and maintain. ## Changes - Move reusable React components into domain folders. - Update cross-domain component imports and package exports. - Update Storybook inventory tests and stories to use the public package API. - Document the component source domains in the workspace layout. ## Testing - `bun run --cwd packages/ui test:unit` - `bun run --cwd packages/ui check` - `bun run test:qa` - `bun run db:check` - `git diff --check` ## Notes - This is a source tree organization PR only; app imports continue through `@dimensionlab/ui` and runtime behavior is intended to stay unchanged.
vince added 1 commit 2026-06-20 06:43:38 +02:00
vince added 1 commit 2026-06-20 06:50:16 +02:00
vince merged commit 220fb55a47 into main 2026-06-20 06:52:12 +02:00
Sign in to join this conversation.
No description provided.