feat(ui): export component prop types #39

Merged
vince merged 2 commits from codex/ui-prop-type-exports into main 2026-06-20 07:41:51 +02:00
Owner

Summary

Exports UI component prop interfaces through the grouped component entrypoints.

Why

The component modules already define public prop interfaces, but grouped barrels only exported component values. Reusable consumers should be able to import both components and their prop types from the same package entrypoint.

Changes

  • Converts grouped UI barrels to export * module re-exports.
  • Adds an inventory test that requires grouped barrels to expose ComponentProps interfaces when component modules define them.
  • Keeps the existing root package API intact through the grouped barrel re-exports.

Testing

  • Red/green: bun run --cwd packages/ui test:unit src/storybook.test.ts
  • bun run --cwd packages/ui build
  • bun run --cwd packages/ui check
  • git diff --check
  • Declaration output inspection for ButtonProps, PanelProps, and TelemetryCardProps
  • bun run test:qa
  • bun run db:check
  • podman build -f apps/web/Containerfile -t localhost/dimensionlab-website:codex-ui-prop-types .
  • Runtime smoke for the rebuilt image served / and /api/dashboard.

Notes

This follows up the PR #38 reviewer note about component-library ergonomics.

## Summary Exports UI component prop interfaces through the grouped component entrypoints. ## Why The component modules already define public prop interfaces, but grouped barrels only exported component values. Reusable consumers should be able to import both components and their prop types from the same package entrypoint. ## Changes - Converts grouped UI barrels to `export *` module re-exports. - Adds an inventory test that requires grouped barrels to expose `ComponentProps` interfaces when component modules define them. - Keeps the existing root package API intact through the grouped barrel re-exports. ## Testing - Red/green: `bun run --cwd packages/ui test:unit src/storybook.test.ts` - `bun run --cwd packages/ui build` - `bun run --cwd packages/ui check` - `git diff --check` - Declaration output inspection for `ButtonProps`, `PanelProps`, and `TelemetryCardProps` - `bun run test:qa` - `bun run db:check` - `podman build -f apps/web/Containerfile -t localhost/dimensionlab-website:codex-ui-prop-types .` - Runtime smoke for the rebuilt image served `/` and `/api/dashboard`. ## Notes This follows up the PR #38 reviewer note about component-library ergonomics.
vince added 1 commit 2026-06-20 07:37:35 +02:00
vince added 1 commit 2026-06-20 07:40:53 +02:00
vince merged commit 3ff41e771b into main 2026-06-20 07:41:51 +02:00
Sign in to join this conversation.
No description provided.