Skip to content

feat(admin-ui): consolidate UI primitives into src/components/ui/#702

Open
Mikearaya wants to merge 2 commits into
masterfrom
feat/ui-kit-phase-a
Open

feat(admin-ui): consolidate UI primitives into src/components/ui/#702
Mikearaya wants to merge 2 commits into
masterfrom
feat/ui-kit-phase-a

Conversation

@Mikearaya
Copy link
Copy Markdown
Contributor

Move 54 components from modules/common/components/ and modules/forms/components/ into a canonical src/components/ui/ surface with barrel exports and an @/ path alias.

  • Replace classnames (49 imports) with clsx; remove classnames dep
  • Add tsconfig @/ path alias (src/*)
  • Move primitives to ui/ and form/ with git mv (history preserved)
  • Create index.ts and form/index.ts barrel exports
  • Delete DeleteButton, HeaderDeleteButton, EditIcon (71 lines); replace all 22 call sites with variants
  • Add icons.ts central heroicons re-export
  • Add ESLint no-restricted-imports guard on old paths
  • Update /styleguide to import from new paths; add new sections
  • Add ui/README.md and ui/CONTRIBUTING.md

No logic changes. Minor visual deltas at the 22 deleted-component call sites (border, height, hover color); all other changes are structural only.

#700

Mikearaya added 2 commits May 29, 2026 15:36
Move 54 components from modules/common/components/ and
modules/forms/components/ into a canonical src/components/ui/
surface with barrel exports and an @/ path alias.

- Replace classnames (49 imports) with clsx; remove classnames dep
- Add tsconfig @/ path alias (src/*)
- Move primitives to ui/ and form/ with git mv (history preserved)
- Create index.ts and form/index.ts barrel exports
- Delete DeleteButton, HeaderDeleteButton, EditIcon (71 lines);
  replace all 22 call sites with <Button> variants
- Add icons.ts central heroicons re-export
- Add ESLint no-restricted-imports guard on old paths
- Update /styleguide to import from new paths; add new sections
- Add ui/README.md and ui/CONTRIBUTING.md

No logic changes. Minor visual deltas at the 22 deleted-component
call sites (border, height, hover color); all other changes are
structural only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant