Repository navigation
Add Collaboration view: roster + member management (#240) - #1474
Merged
mstomar125 merged 1 commit intoJul 2, 2026
Merged
Conversation
Contributor
Author
|
APPROVE Reviewed the top S3 commit
🟡 Non-blocking:
🔶 Stacked-base: this is stacked on #1473 (S1); its diff currently includes S1 commit |
Slice S3 — the first membership UI surface, on top of S1's store. Adds a Pro-only "Collaboration" tab to the collection viewer (community sees the existing Contents view unchanged) that renders the people roster: - Roster with each member's role badge; the caller's own row is marked "(you)". - Admin controls (gated on the caller's own role === 'admin'): change a member's role (Viewer/Editor/Admin select → pro_set_member), remove a member (inline confirm → pro_remove_member) with the last-admin protection surfaced as a friendly message, and add someone already in the workspace by person id. - Self-service Leave (pro_leave_collection). - Non-admins see a read-only roster (no selects, no add form). The add-existing-person input takes a raw person id for now; a proper autocomplete over locally-synced person nodes is a follow-up once a persons source exists — invites (S4) are the primary path for bringing in new people. Tests: 5 component tests (admin vs non-admin gating, community-inert render, role-change wiring, load-on-mount). Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice S3 of the collection-membership-UI epic (NodeSpaceAI/nodespace-sync#237) — the first membership UI surface.
What
Adds a Pro-only Collaboration tab to
collection-node-viewer.svelte. The community build is unchanged — the tab strip only appears whenproSync.tier === 'pro'; otherwise the existing Contents view renders exactly as before.The Collaboration tab renders the people roster (via S1's membership store):
pro_set_memberpro_remove_member, with the last-admin protection surfaced as a friendly messagepro_set_memberpro_leave_collection.Notes
membership.displayFor); resolving to a name/email from local person nodes is wired in a follow-up (email visibility iscan_see_person-gated server-side).Tests
@testing-library/svelte): admin vs non-admin gating, community-inert render, role-change wiring, load-on-mount. Full membership suite (S1 + S3) green — 21 tests.bun run quality:fix— ESLint 0/0,svelte-check0 errors.Depends on S1 (#238 / #1473). Part of #240.