You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate to shadcn/ui components and react-hook-form (#347)
* Migrate to shadcn/ui components and react-hook-form
This PR completes the migration to shadcn/ui components and modernizes
the form handling system.
## Component Migrations
- **Toast System**: Replace react-hot-toast with shadcn toast
- Add toast.success() and toast.error() helper methods
- Update all 8 files using toasts
- **Search**: Refactor to use shadcn Popover + cmdk Command
- Add keyboard navigation and accessibility
- Better semantic structure
- **Cards**: Convert PackageCard and AccessTokenCard to shadcn Card
- **Buttons**: Convert ThemeSwitcher and Edit page to shadcn Button
- **Forms**: Add Alert, Textarea, Dialog components
## Form System Migration
- Replace react-final-form with react-hook-form
- Use @hookform/resolvers for Zod validation
- Add noValidate for consistent JS-based validation
- Remove unused zod-form-validator-utils.ts
## Cleanup
- Remove react-hot-toast, react-final-form, final-form dependencies
- Remove redundant loader.tsx component
- Standardize on Skeleton + Spinner for loading states
## Testing
- Update tests for react-hook-form API
- Add ResizeObserver/scrollIntoView mocks for cmdk
- All 24 tests pass
* update prettier
* checkout without ref
* format
---------
Co-authored-by: Claude <[email protected]>
Co-authored-by: Alaister Young <[email protected]>
0 commit comments