Skip to content

perf: remove unused shadcn/ui components - #122

Closed
pragmaticAweds wants to merge 7 commits into
mainfrom
fix/unused-shadcn-components
Closed

perf: remove unused shadcn/ui components#122
pragmaticAweds wants to merge 7 commits into
mainfrom
fix/unused-shadcn-components

Conversation

@pragmaticAweds

Copy link
Copy Markdown
Contributor

Summary

Supersedes #97 (fixes #68) — removes unused shadcn/ui component files to reduce repo bloat.

Based on @Litezy's work in #97, with the following fixes applied:

  • Resolved all merge conflicts with main
  • Removed 3 unnecessary Radix UI dependencies (@radix-ui/react-separator, @radix-ui/react-toggle, @radix-ui/react-tooltip) that were added for deleted components
  • Fixed onOpenChange type from any to boolean in hooks/use-toast.ts
  • Preserved e2e and playwright.config.ts tsconfig exclude entries from main
  • Deleted unused sheet.tsx component

Deleted components: accordion, alert-dialog, alert, aspect-ratio, avatar, breadcrumb, button-group, calendar, carousel, chart, checkbox, collapsible, command, context-menu, drawer, dropdown-menu, empty, field, form, hover-card, input-group, input-otp, item, kbd, menubar, navigation-menu, pagination, popover, progress, radio-group, resizable, scroll-area, select, separator, sheet, sidebar, skeleton, slider, sonner, spinner, switch, table, tabs, textarea, toggle-group, toggle, tooltip, use-mobile, use-toast (duplicate)

Kept components: button, card, dialog, label, input, badge, toast (verified via active imports)

Test plan

  • pnpm build passes
  • pnpm lint passes (0 errors)
  • No broken imports

🤖 Generated with Claude Code

Co-authored-by: Litezy liteb237@gmail.com

Litezy and others added 7 commits March 26, 2026 20:05
…tation

- Resolve merge conflicts with main in hooks/use-toast.ts, tsconfig.json,
  pnpm-lock.yaml, and components/ui/sheet.tsx
- Remove @radix-ui/react-separator, @radix-ui/react-toggle, and
  @radix-ui/react-tooltip from package.json (components using them were deleted)
- Use proper `boolean` type instead of `any` for onOpenChange callback
- Keep e2e and playwright.config.ts in tsconfig exclude entries from main
- Delete unused sheet.tsx component

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pragmaticAweds
pragmaticAweds deleted the fix/unused-shadcn-components branch March 30, 2026 13:52
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.

perf: remove unused shadcn/ui components from the repository

2 participants