Skip to content

feat(ui): add component subpath exports - #6

Merged
kattsushi merged 2 commits into
feat/ui-packagefrom
feat/ui-package-component-subpaths
May 21, 2026
Merged

kattsushi merged 2 commits into
feat/ui-packagefrom
feat/ui-package-component-subpaths

Conversation

@kattsushi

@kattsushi kattsushi commented May 21, 2026 •

Copy link
Copy Markdown
Owner

Part of tracker #2. Targets feat/ui-package.

Closes #1

Approved issue: #1

PR Type

  • Bug fix
  • New feature
  • Documentation only
  • Code refactoring
  • Maintenance/tooling
  • Breaking change

Summary

  • Adds explicit ergonomic package subpath exports for every public UI component.
  • Extends import smoke coverage so each component subpath resolves.
  • Keeps chart opt-in via @os-copilot/ui/chart; chart remains absent from the root barrel.

Chain Context

master
└── 📍 tracker #2: feat/ui-package
    ├── ✅ PR #3: scaffold package + shadcn routing
    ├── ✅ PR #4: Zaidan baseline + Storybook/CSS
    ├── ✅ PR #5: layout primitives + SSR/SPA verification
    └── 🔎 PR #6: component ergonomic subpath exports

Changes

File Change
packages/ui/package.json Adds explicit ./component-name exports for every public UI component.
packages/ui/src/testing/tree-shaking-smoke.test.ts Resolves every public component ergonomic subpath.

Test Plan

  • pnpm exec dprint check packages/ui/package.json packages/ui/src/testing/tree-shaking-smoke.test.ts
  • pnpm exec oxlint packages/ui/src/testing/tree-shaking-smoke.test.ts
  • pnpm nx test ui --run
  • pnpm nx typecheck ui
  • pnpm nx build ui
  • Fresh reviewer audit completed with no blockers.

Notes

  • This is a small contract PR to close the PRD requirement for per-component subpath exports before adding larger custom components/dependency decisions.

Contributor Checklist

  • Linked tracker PR feat(ui): track UI package chain #2
  • Added exactly one type:* label
  • Ran shellcheck on modified scripts (not applicable: no shell scripts changed)
  • Skills tested in at least one agent
  • Docs updated if behavior changed
  • Conventional commit format
  • No Co-Authored-By trailers

@kattsushi kattsushi added the type:feature New feature label May 21, 2026
@kattsushi kattsushi mentioned this pull request May 21, 2026
16 of 21 tasks
@kattsushi
kattsushi merged commit cc0e7a8 into feat/ui-package May 21, 2026
kattsushi added a commit that referenced this pull request May 22, 2026
* chore(ui): open package feature chain

* feat(ui): scaffold package and shadcn routing (#3)

* feat(ui): add Zaidan Storybook baseline

Merge PR 2 into the UI package tracker branch.

* feat(ui): add layout primitives and SSR smoke (#5)

* feat(ui): add component subpath exports (#6)

* feat(ui): add component subpath exports

* style(ui): format subpath smoke test

* feat(ui): add interaction utilities (#7)

* feat(ui): add interaction utilities

* fix(ui): use Zaidan Sonner toast

* feat(ui): add data table components (#8)

* fix(ui): preserve data filter input focus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant