Repository navigation
Add Invitations inbox + first-run onboarding to the Pro account menu (#242) - #1476
Conversation
|
APPROVE — S5 (Invitations inbox + first-run onboarding) is cleanly Pro-gated; one load-bearing merge-order requirement below. Verified against code at head Free-user mandate — intact.
Rebase-safe: #1476's own commit ( Nit (non-blocking): consider a |
…242) Slice S5 — the onboarding entry point, on top of S1's store. - invitations-inbox.svelte: a modal (house overlay + focusTrap) with a "Redeem an invite code" input (pro_accept_invite) and a "Request to join a collection" input (pro_request_join), plus copy noting email invites auto-apply on sign-in. Listing one's own pending invites / request statuses and discovering joinable collections have no client-facing backend yet (only admins can list a collection's invites/requests), so those are deferred with a comment. - pro-sync-pill.svelte: an "Invitations" item in the account menu opens the inbox; a first-run effect opens it once per device on the first sign-in (localStorage-gated). Sign-out now also clears the membership store so the next user doesn't inherit the previous session's cached roster/identity. Tests: 5 component tests (redeem success/failure, request-to-join, close, closed-render). ESLint 0/0, svelte-check clean. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Slice S5 of the collection-membership-UI epic (NodeSpaceAI/nodespace-sync#237) — the onboarding entry point.
What
invitations-inbox.svelte— a modal (house overlay +focusTrap) with:pro_accept_invitepro_request_joinredeem_my_invitesruns server-side on reconnect).pro-sync-pill.svelte— an Invitations item in the account menu opens the inbox; a first-run effect opens it once per device on the first sign-in (localStorage-gated). Sign-out now also clears the membership store so the next user doesn't inherit the previous session's cached roster/identity.Deferred (flagged in code)
Listing one's own pending invites / join-request statuses and discovering joinable collections have no client-facing backend yet (only admins can list a collection's invites/requests; there's no "my invites" RPC and no collection-discovery). The inbox works from a shared code / known collection id; surfacing auto-redeemed invites ("You were added to X") needs a daemon event or a
my_collection_idscommand — a follow-up.Tests
bun run quality:fix— ESLint 0/0,svelte-check0 errors.Depends on S1 (#238). Part of #242.