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-04 11:19:00 +07:00
2025-11-20 15:03:31 +07:00
2025-11-05 18:54:41 +07:00
2025-11-13 10:13:17 +07:00
2025-11-04 11:19:00 +07:00
2025-11-13 11:50:38 +07:00
2025-11-15 20:05:50 +07:00
2025-11-13 09:50:33 +07:00
2025-11-13 13:47:22 +07:00
2025-11-13 15:44:06 +07:00
2025-11-13 11:57:55 +07:00
2025-11-13 12:20:41 +07:00
2025-11-13 12:20:41 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-13 10:34:07 +07:00
2025-11-04 11:19:00 +07:00