dwindown
3a4e68dadf
feat: Add coupon edit route and multiselect component
Fixed blank coupon edit page and added multiselect component
1. Fixed Missing Route:
- Added CouponEdit import in App.tsx
- Added route: /coupons/:id -> CouponEdit component
- Edit page now loads correctly
2. Created MultiSelect Component:
- Shadcn-based multiselect with search
- Badge display for selected items
- Click badge X to remove
- Shows +N more when exceeds maxDisplay
- Searchable dropdown with Command component
- Keyboard accessible
Features:
- Selected items shown as badges
- Remove item by clicking X on badge
- Search/filter options
- Checkbox indicators
- Max display limit (default 3)
- Responsive and accessible
Next: Add product/category/brand selectors to coupon form
2025-11-20 15:03:31 +07:00
..
2025-11-15 20:05:50 +07:00
2025-11-08 14:24:29 +07:00
2025-11-11 21:04:48 +07:00
2025-11-08 19:21:32 +07:00
2025-11-20 15:03:31 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-05 18:54:41 +07:00
2025-11-04 11:19:00 +07:00
2025-11-06 22:28:30 +07:00
2025-11-04 11:19:00 +07:00
2025-11-20 12:32:06 +07:00
2025-11-20 09:49:03 +07:00
2025-11-20 00:20:59 +07:00
2025-11-10 23:18:56 +07:00
2025-11-10 23:18:56 +07:00