feat(ux): bulk member select + Approve selected
New bulkApproveMembers server action (ADMIN_ROLES, Zod-validated ids, one batched space-scoped update that only flips still-unverified rows, audited). Members table + mobile cards get a selection checkbox (admin only) with a header select-all; a sticky bar shows the count with Approve selected / Clear. Optimistic local update + toast.
This commit is contained in:
@@ -1001,6 +1001,11 @@ export const checkOutSchema = z.object({
|
||||
|
||||
export const uuidSchema = z.string().uuid('Invalid ID format')
|
||||
|
||||
export const bulkMemberIdsSchema = z
|
||||
.array(z.string().uuid('Invalid member ID'))
|
||||
.min(1, 'Select at least one member')
|
||||
.max(1000)
|
||||
|
||||
// Helper type exports
|
||||
export type CreateTaskInput = z.infer<typeof createTaskSchema>
|
||||
export type CreateProjectInput = z.infer<typeof createProjectSchema>
|
||||
|
||||
Reference in New Issue
Block a user