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:
Moheeb Zara
2026-05-17 02:00:58 -07:00
parent d3481129a8
commit 390046a96b
3 changed files with 100 additions and 5 deletions
+5
View File
@@ -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>