Repository navigation
Description
Summary
Delete the Pro collection-membership surface from core:
plugins/pro-plugin.ts, thepro-syncextension definition;components/collaboration/: the Collaboration tab, its view, and the locked "Turn on sync" placeholder;- the membership store, and what Delete the Pro Account section, workspace-members card and tenant-admission calls #3325 left of the membership service;
- their tests;
- the Pro-registration parts of the two tests that Stop importing the Pro extension in core; register it only through the build entry #3316 left importing
pro-plugin.ts; - their design-token baseline entries.
The Pro frontend in nodespace-sync owns its own copies (SYNC counterpart (a) on the parent). The change only deletes code: about 1,450 source lines and 770 test lines.
Context
Line numbers are at main @ af8ddb6, so locate code by symbol. Paths are under packages/desktop-app/src. This describes the state after #3316, #3325 and #3329.
lib/plugins/pro-plugin.ts (lines 1-99)
- After Stop importing the Pro extension in core; register it only through the build entry #3316, no core module imports it. The Pro build injects its extension through
NODESPACE_EXTENSIONS. - Stop importing the Pro extension in core; register it only through the build entry #3316 made two tests import it explicitly:
tests/plugins/pro-sync-variant.test.ts, which Move the Pro variant machine and DATABASE_SETTINGS_NODE_ID out of the generic registry files #3309 created;tests/free-user-guardrail.test.ts.
- It lazily loads
first-pro-consent-slot,pro-relogin-slot,collaboration-lockedandcollaboration-tab.
lib/components/collaboration/
| File | Lines | Imports |
|---|---|---|
collaboration-view.svelte |
1-606 | the membership store, Permission from membership-service, and proSync |
collaboration-tab.svelte |
1-15 | the view |
collaboration-locked.svelte |
1-94 | proSync, and resolveProSyncVariant from pro-sync-variant.svelte |
#3325 deleted invitations-inbox.svelte and its test.
The membership store and service
lib/stores/membership.svelte.ts(lines 1-375) importsmembershipServiceandisProSyncActive. Its other importers were removed earlier:database.svelte.tsby Stop driving Pro sync lifecycle from the app shell, database store and debug channel #3329, andaccount-settings.svelteby Delete the Pro Account section, workspace-members card and tenant-admission calls #3325.lib/services/membership-service.ts: after Delete the Pro Account section, workspace-members card and tenant-admission calls #3325, only the collection-membership half remains. Its importers are the membership store and the collaboration view. It wraps these commands:pro_list_members,pro_set_member,pro_remove_memberandpro_leave_collection;pro_create_invite,pro_accept_invite,pro_list_invitesandpro_revoke_invite;pro_request_join,pro_join_collection,pro_list_joinable_collections,pro_approve_requestandpro_list_requests;pro_current_person.
Design-token baseline
packages/desktop-app/design-tokens-baseline.json has four entries for these files:
- three for
collaboration-locked.svelte:#1d4ed8,#2563eband#ffffff; - one for
collaboration-view.svelte:#fff.
quality:design-tokens fails on stale entries. It runs in quality:fix, in quality:check, and in the push-time lint (scripts/test-gate.ts).
Preconditions
Verify these before starting. The dependencies guarantee them; if one fails, an upstream issue has not merged.
rg -l pro-plugin packages/desktop-app/src/lib packages/desktop-app/src/routeslists onlylib/plugins/pro-plugin.ts(Stop importing the Pro extension in core; register it only through the build entry #3316).rg -l "plugins/pro-plugin" packages/desktop-app/src/testslists only these (Stop importing the Pro extension in core; register it only through the build entry #3316):tests/plugins/pro-sync-variant.test.ts;tests/free-user-guardrail.test.ts;- Stop importing the Pro extension in core; register it only through the build entry #3316's core-plugin boundary guard, if it names the file.
rg -l "stores/membership.svelte" packages/desktop-app/srclists only these (Delete the Pro Account section, workspace-members card and tenant-admission calls #3325, Stop driving Pro sync lifecycle from the app shell, database store and debug channel #3329):lib/components/collaboration/collaboration-view.svelte;tests/stores/membership.test.ts;tests/components/collaboration-view.test.ts.
rg -l "services/membership-service" packages/desktop-app/srclists only these (Delete the Pro Account section, workspace-members card and tenant-admission calls #3325):lib/stores/membership.svelte.ts;lib/components/collaboration/collaboration-view.svelte;tests/stores/membership.test.ts;tests/services/membership-service.test.ts.
components/collaboration/invitations-inbox.svelteandtests/components/invitations-inbox.test.tsdo not exist (Delete the Pro Account section, workspace-members card and tenant-admission calls #3325).
Scope
Source files to delete
All under packages/desktop-app/src/lib:
| File | Lines at af8ddb6 |
|---|---|
plugins/pro-plugin.ts |
1-99 |
components/collaboration/collaboration-view.svelte |
1-606 |
components/collaboration/collaboration-tab.svelte |
1-15 |
components/collaboration/collaboration-locked.svelte |
1-94 |
stores/membership.svelte.ts |
1-375 |
services/membership-service.ts |
everything that remains after #3325 |
The components/collaboration/ directory goes entirely.
Test files to delete
All under packages/desktop-app/src/tests:
| File | Lines at af8ddb6 |
|---|---|
components/collaboration-view.test.ts |
1-331 |
stores/membership.test.ts |
1-261 |
services/membership-service.test.ts |
1-181 |
Tests that #3316 left importing pro-plugin.ts
tests/plugins/pro-sync-variant.test.ts:
- Remove the
$lib/plugins/pro-pluginimport, and any registration of its export that Stop importing the Pro extension in core; register it only through the build entry #3316 added. - Delete the "registry registration" and "active contribution filtering" describes. They assert the
pro-synccontributions. - In "Labs syncEnabled gate", delete the two
getActive*expectations, which are vacuous once nothing is registered. - Remove any imports that become unused.
- Keep "variant resolution" and the rest of "Labs syncEnabled gate" for Delete the Pro sync store, consent and relogin modals, and the Pro variant machine #3332.
tests/free-user-guardrail.test.ts:
- Remove the
$lib/plugins/pro-pluginimport, and any registration. - Delete the "Pro-UI registry contributes nothing daemon-backed in community" describe.
- Remove the imports that only that describe used:
resolveProSyncVariant,isProSyncActiveand thegetActive*accessors. - Keep the tier tests, the coalescer describe and Delete the Pro Account section, workspace-members card and tenant-admission calls #3325's Account describe for Delete the Pro sync store, consent and relogin modals, and the Pro variant machine #3332.
Design tokens
Run bun run --cwd packages/desktop-app quality:design-tokens --update. The diff must remove exactly the four entries listed under Context.
Ratchet
Run bun run scripts/check-pro-boundary.ts and paste the printed BASELINES. proNamedFiles drops by 1, for pro-plugin.ts.
Follow-up issue
Transfer core#3296, the open collaboration-view follow-up, to nodespace-sync:
gh issue transfer 3296 NodeSpaceAI/nodespace-sync --repo NodeSpaceAI/nodespace-core
Out of scope
- Delete the Pro sync store, consent and relogin modals, and the Pro variant machine #3332:
- the
proSyncstore; - the consent and relogin modals and slots, which become unreferenced when
pro-plugin.tsgoes but still compile; pro-sync-variant.svelte.tsand the rest of its test;- the free-user guardrail suite.
- the
- Stop importing the Pro extension in core; register it only through the build entry #3316's core-plugin boundary test, which keeps passing and stays.
- The collection-sub-panel tooltip "manage members & collaboration" (Remove Pro and cloud-sync wording from frontend comments, tests and the fly-out tooltip #3366).
- The comments in
labs-settings.test.ts(Add the "Share / Sync this database" entry point that opens nodespace.ai #3362).
Steps
- Startup, per core's CLAUDE.md:
- On the primary checkout, run
git status, thengit fetch origin && git pull origin main. - Run
EnterWorktree({name: "issue-<N>-remove-collaboration-ui"}). - Inside the worktree, run
bun install, thenbun run testfor the baseline. - Run
bun run gh:comment <N> "Frontend: X passed",bun run gh:assign <N> "@me"andbun run gh:status <N> "In Progress".
- On the primary checkout, run
- Run the precondition searches. Stop if any of them fails.
git rmthe source and test files listed under Scope.- Edit the two tests that import
pro-plugin.ts. - Re-record the design-token baseline.
- Run
bun run --cwd packages/desktop-app quality:fix. svelte-check and ESLint fail on any missed import of a deleted module, and on any unused import. - Run the ratchet and paste
BASELINES. - Transfer core#3296.
- Finish:
- Run
bun run test:changed, then commit. - Run
git push origin HEAD:issue-<N>-remove-collaboration-ui. - Run
gh pr create --repo NodeSpaceAI/nodespace-core --base main --head issue-<N>-remove-collaboration-ui, thenbun run gh:status <N> "In Review". - Run
/pragmatic-code-review, then/address-review. - Merge only after the user approves. Run
bun run merge <PR#>in the background, thenExitWorktree.
- Run
Standards:
- Run tests with
bun run test, neverbun test. - No lint suppression.
Acceptance criteria
- All files listed under Scope are deleted.
- This search finds nothing, apart from Stop importing the Pro extension in core; register it only through the build entry #3316's boundary guard if it names
pro-plugin:rg -n 'membership-service|stores/membership|components/collaboration|pro-plugin|proSyncUiExtension|membershipService|pro_list_members|pro_set_member|pro_current_person|pro_list_joinable_collections' packages/desktop-app/src - No test imports
$lib/plugins/pro-plugin. - In the free app, the collection viewer shows no tab strip, as before.
-
design-tokens-baseline.jsonhas nocollaboration-locked.svelteorcollaboration-view.svelteentry, andbun run --cwd packages/desktop-app quality:design-tokenspasses. -
BASELINESinscripts/check-pro-boundary.tsis lowered to the printed counts, andbun run scripts/check-pro-boundary.tsexits 0. - core#3296 is in nodespace-sync.
-
bun run testandbun run --cwd packages/desktop-app quality:fixpass.
Tests and verification
bun run --cwd packages/desktop-app quality:fixbun run --cwd packages/desktop-app test src/tests/plugins src/tests/free-user-guardrail.test.tsbun run test, thenbun run test:changed.- Free-app check: run
bun run tauri:devwith an isolatedNODESPACE_HOME. Open a collection page. It shows no tab strip, and nothing new appears in the console. - Pro check, in nodespace-sync's pin-bump PR, with SYNC counterpart (a) from the parent: open a collection's Collaboration tab. The roster loads, and adding a member, creating an invite and accepting an invite all work.
Dependencies
- Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299: the ratchet.
- Stop importing the Pro extension in core; register it only through the build entry #3316: core no longer imports
pro-plugin.ts, and the tests that need it import it explicitly. - Delete the Pro Account section, workspace-members card and tenant-admission calls #3325:
account-settings,invitations-inbox,workspace-members-cardand the tenant half ofmembership-service.tsare gone. - Stop driving Pro sync lifecycle from the app shell, database store and debug channel #3329: the database store no longer imports the membership store.
- Pin gate:
SYNC:Pro GUI and Pro daemon build from one pinned core rev.
Risks and rollback
- A missed importer breaks svelte-check or the Vite build.
quality:fixand the merge gate catch it before merge. - A Pro build at a pin past this commit must inject its own Pro frontend.
- After Stop importing the Pro extension in core; register it only through the build entry #3316, sync may still point
NODESPACE_EXTENSIONSat core'ssrc/lib/plugins/pro-plugin.tsas a transitional step. - That path no longer exists, so the build fails.
- Sync's pin-bump PR switches the variable to its own package.
- After Stop importing the Pro extension in core; register it only through the build entry #3316, sync may still point
- Rollback: revert the PR. It restores files that core no longer uses.
Plan key: C6.4a (pro-boundary DAG).
🤖 Generated with Claude Code
Activity
mstomar125 commentedon Oct 1, 2026
Superseded by #3412 (umbrella against the final ADR-081–085)