Skip to content

Refactor/shadcn#446

Draft
besscroft wants to merge 3 commits intomainfrom
refactor/shadcn
Draft

Refactor/shadcn#446
besscroft wants to merge 3 commits intomainfrom
refactor/shadcn

Conversation

@besscroft
Copy link
Owner

No description provided.

…guration

- Add a new `lib/utils.ts` utility file exporting the `cn` helper
- Update `components.json` to migrate the UI library from `shadcn/ui` (Radix UI) to `Base UI`, and refresh related style settings including theme (`base-mira`), base color (`neutral`), and icon library (`hugeicons`)
- Refactor multiple UI components (`skeleton`, `aspect-ratio`, `label`, `separator`, `collapsible`, `input`, `sonner`, `checkbox`, `progress`, `scroll-area`, `switch`, `toggle`, `radio-group`, `alert`, `hover-card`, `resizable`, `slider`, `badge`, `input-otp`, `avatar`, `card`, `popover`, `table`, `accordion`, `toggle-group`) by replacing `@radix-ui/react-*` dependencies with components from `@base-ui/react`
- Update the font configuration in `layout.tsx` by replacing `Source_Sans_3` with `Inter`
- Update `package.json` dependencies by adding new packages such as `@base-ui/react`, `@hugeicons/react`, `@hugeicons/core-free-icons`, and `shadcn`, while removing `lucide-react`
- Standardize code style by changing string quotes from single quotes (`'`) to double quotes (`"`)
Remove the default padding and border radius so the modal fully covers the screen on both mobile and desktop, avoiding unnecessary blank space.
Update trigger buttons across multiple components (such as `DialogTrigger`, `PopoverTrigger`, etc.) by replacing the `asChild` pattern with the `render` prop and explicitly setting `nativeButton={false}`.
This change improves code consistency, avoids potential rendering issues, and simplifies trigger wrapper logic.
Also fix the missing `Command` wrapper in the `CommandDialog` component.
@vercel
Copy link

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
picimpact Ready Ready Preview, Comment Mar 26, 2026 5:03pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️refactor Refactor code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant