Add user management page and technician picker for reassign

- New /admin/users page (admin only) for creating technicians,
  editing role/email, resetting passwords, deleting users
- AftersalesDetail reassign modal now uses a searchable Select
  populated from /api/users/assignable instead of raw user ID input
- Menu entry only shown to admins

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Frudrax Cheng
2026-05-26 10:58:02 +08:00
parent 6fef517556
commit eab66bc3e9
8 changed files with 564 additions and 14 deletions
+1
View File
@@ -90,6 +90,7 @@ src/
- `dashboardApi` - Dashboard statistics
- `employeeSerialApi` - Employee serial management
- `aftersalesApi` - Aftersales work orders (admin + public)
- `usersApi` - User management (admin only); also exposes `assignable` for technician/admin picker
- Auth token automatically added via axios interceptor
- All API calls return typed responses based on `src/types/index.ts`