Add invites & join-requests admin sections to the Collaboration view (#241)#1475
Conversation
|
APPROVE — S4 admin sections (invites + join-requests) are well-implemented and correctly gated; one load-bearing merge-order requirement below. Verified against code at head Free-user mandate — intact.
Good news: this is rebase-safe. #1475's own commit ( Epic order: #1473 (S1) → #1474 (S3) → #1475 (S4), rebasing each onto main as parents land. (CI: no checks reported yet.) |
…odeSpaceAI#241) Slice S4 — extends the S3 Collaboration view with the admin-only invite and request management (all gated on the caller's own admin role): - Invites: create an invite with a role, optional email binding, and a TTL preset (1 day / 7 days / never) via pro_create_invite. A bearer (no-email) invite surfaces its share code with a copy button; an email-bound invite is delivered to that address. Pending invites list with per-invite copy-code and revoke (pro_revoke_invite). - Join requests: list pending requests, approve with a selectable role (pro_approve_request) or reject (pro_revoke_invite via the store's rejectRequest). The store already loads invites/requests for admins. Tests: 4 new component tests (admin-only section gating, bearer-invite create + code surfaced, revoke, approve-with-role + reject). 9 total in the file. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2a6d4d0 to
3b4f6ec
Compare
Slice S4 of the collection-membership-UI epic (NodeSpaceAI/nodespace-sync#237) — invite & request management in the Collaboration view.
What
Extends the S3 Collaboration view with two admin-only sections (gated on the caller's own admin role; consumes the invites/requests the S1 store already loads for admins):
Invites
pro_create_invite.pro_revoke_invite.Join requests
pro_approve_request, or reject →pro_revoke_invite(via the store'srejectRequest).Tests
collaboration-view.test.ts.bun run quality:fix— ESLint 0/0,svelte-check0 errors.Depends on S1 (#238) + S2 (#239). Part of #241.