Repository navigation
Description
Goal
Core ships no Pro account, workspace-admission or synced-database settings. Core's Settings sidebar, Settings pane and Database section name no Pro concept.
The Pro app is assembled in nodespace-sync from one pinned core revision plus the Pro package (ADR-081 and ADR-082, both proposed). It adds the same surfaces back through the frontend extension points that #3317 builds (ADR-082 §2.2):
- a
settingsSectionscontribution for Account; - a contribution to the settings slot
database.actionsfor "Add synced database…"; - a contribution to the settings slot
database.rowfor the per-database sync badge.
This is step 4(b) of the ADR-081 §7 migration: "account, admission and synced-database settings".
Context
Product direction (2026-09-29):
- Everything Pro or sync related, other than turning it on, lives in nodespace-sync.
- Pro is a separate build that uses core internally and replaces the installed app over the same database.
What core has today. Paths are under packages/desktop-app/src/. Line numbers are at main af8ddb61 and are hints only: #3309 / #3310 and #3312 edit several of these files first, so every sub-issue locates code by symbol.
| Surface | Where | What it does |
|---|---|---|
| Account category | lib/components/settings/settings-sidebar.svelte, the categories list (line 22) |
Listed only when labsFlags.syncEnabled. #3312 moves the list into CORE_SETTINGS_CATEGORIES in a new settings-categories.ts and keeps Account's Labs gate as its visible predicate |
| Account route | lib/components/settings/settings-pane.svelte: import AccountSettings (7), the 'account' branch (47-48), the Labs clause in the fallback $effect (33) |
#3312 replaces the $effect with a generic isSettingsCategoryVisible fallback and keeps the 'account' branch until #3325 |
| Account section | lib/components/settings/sections/account-settings.svelte (235 lines) |
The "NodeSpace Pro" card: identity from pro_current_person, pending workspaces from pro_list_tenant_memberships, Invitations, Sign out, "Turn on sync". Mounts WorkspaceMembersCard and InvitationsInbox. Shows a "Not available" state when the build is not Pro |
| Workspace members | …/sections/workspace-members-card.svelte (336) |
Tenant admission: approve, decline, remove, invite by email. Awaits databaseStore.proSyncSettled() |
| Tenant-admission service | lib/services/membership-service.ts: TenantMember, AdmissionResult, TENANT_ADMIN_ROLES, isTenantAdmin, RawTenantMember, RawAdmission, listTenantMembers, approveAdmission, removeFromTenant, initiateAdmission |
Wraps four pro_* commands. Used only by the members card |
| Invitations inbox | lib/components/collaboration/invitations-inbox.svelte (399) |
Modal opened only from the Account section. Has one entry in packages/desktop-app/design-tokens-baseline.json |
| Add synced database | …/sections/add-synced-database-dialog.svelte (452), mounted from database-settings.svelte |
Sign in → pick tenant → create a database → mint a restricted landing collection → pro_bind_tenant. The button is gated on proSync.isPro && labsFlags.syncEnabled |
| Tenant copy and badge | …/sections/database-settings.svelte: tenantLabel(), the explainer paragraph, the per-row badge |
"not a tenant … sync to one cloud tenant", and "Syncs to tenant · X" or "Local only · not synced" on each row |
The explainer paragraph and the "Local only · not synced" badge render for every free user today.
About 1.8k lines in 8 test files cover these surfaces. Each sub-issue lists its own.
Scope → sub-issue
- Remove tenant and sync wording shown to free users in Database settings #3324: in
database-settings.svelte, the tenant explainer copy and the "Local only · not synced" branch. - Delete the Pro Account section, workspace-members card and tenant-admission calls #3325:
account-settings.svelte,workspace-members-card.svelte, andcollaboration/invitations-inbox.sveltewith its design-token baseline entry;- the tenant-admission half of
membership-service.ts, anddatabaseStore.proSyncSettled(); - the
accountentry and its Labs gate in Add settings-section and database settings-slot extension points #3312'sCORE_SETTINGS_CATEGORIES, and the'account'branch insettings-pane.svelte; - the Account block in
free-user-guardrail.test.ts, five test files, and one new core-only settings test.
- Delete the Add synced database dialog and tenant badge from Database settings #3326:
add-synced-database-dialog.svelteand its test;- in
database-settings.svelte: the Pro imports,tenantLabel(), the button, the dialog mount and the bound badge; - a rewrite of
database-settings.test.ts.
Landing protocol (ADR-081 §7 steps 1 and 4, ADR-083 §7)
The Pro GUI builds from core HEAD today (sync/scripts/build-pro-dmg.sh, sync/.github/workflows/release.yml), so deleting Pro code from core breaks the next Pro build. #3325 and #3326 follow this order:
- Pin gate. nodespace-sync builds the Pro app and the Pro daemon from one pinned core revision. Until that is true, Delete the Pro Account section, workspace-members card and tenant-admission calls #3325 and Delete the Add synced database dialog and tenant badge from Database settings #3326 do not merge.
- Replacement reviewed against the core branch. sync writes its replacement and builds it against the Move the Pro account, admission and synced-database settings out of core #3327.x branch, by running its pin-bump script against the branch head without committing the result (ADR-082 §1). For Delete the Pro Account section, workspace-members card and tenant-admission calls #3325 this is the only place the replacement can be seen working. Add settings-section and database settings-slot extension points #3312's settings host ignores a contributed section whose id equals a core category id (core wins), so sync's
accountsection stays hidden while core still lists its own. - Core merges first. Pro builds are unaffected, because they are still on the old pin.
- sync bumps its pin past the removal and enables the replacement in the same change.
The Account section and the "Add synced database…" gate read Pro stores that #3333 moves out: proSync, membership and resolveProSyncVariant. The Pro package may not import them from core (ADR-082 §2.6), so sync's #3327 replacements need its own #3333 copies. Recommended: sync prepares its #3327 and #3333 replacements together and bumps the pin once, past both sets of core removals, so a Pro app never runs two proSync instances. Core merges #3325, #3326 and #3333's removals close together, so Pro users are not held on an old pin for long.
#3324 only changes copy and removes no Pro feature, so it is not gated on sync.
Sub-issues (execution order)
| Key | Title | Size | Depends on |
|---|---|---|---|
| #3324 | Remove tenant and sync wording shown to free users in Database settings | S | NodeSpaceAI/nodespace-docs#88 (ADR-081), #3299 |
| #3325 | Delete the Pro Account section, workspace-members card and tenant-admission calls | M | #3299, #3317, SYNC pin gate, SYNC Account replacement |
| #3326 | Delete the Add synced database dialog and tenant badge from Database settings | M | #3299, #3324, #3317, SYNC pin gate, SYNC database-settings replacement |
#3324 can start once ADR-081 is accepted and the ratchet (#3299) is on main. #3325 and #3326 don't depend on each other and can run in parallel.
Parent acceptance criteria
- Remove tenant and sync wording shown to free users in Database settings #3324, Delete the Pro Account section, workspace-members card and tenant-admission calls #3325 and Delete the Add synced database dialog and tenant badge from Database settings #3326 are merged.
-
git grep -n -E "account-settings|AccountSettings|workspace-members-card|WorkspaceMembersCard|add-synced-database-dialog|AddSyncedDatabaseDialog|invitations-inbox|InvitationsInbox|isTenantAdmin|listTenantMembers|approveAdmission|removeFromTenant|initiateAdmission|proSyncSettled|tenantLabel|Syncs to tenant|pro_bind_tenant|pro_list_tenant_memberships" -- packages/desktop-app/srcfinds nothing. -
settings-sidebar.svelte,settings-pane.svelte,settings-categories.tsanddatabase-settings.svelteimport nothing from$lib/stores/pro-sync.svelte,$lib/stores/membership.svelteor$lib/services/membership-service, and do not readlabsFlags.syncEnabled. - In the community app, Settings has no Account category, no "Add synced database…" and no tenant or sync wording.
-
bun run test,bun run --cwd packages/desktop-app test:free-usersandbun run quality:checkpass. - Each PR lowered
BASELINESinscripts/check-pro-boundary.ts, andbun run scripts/check-pro-boundary.tsexits 0 on main. - A Pro app built by sync at a pin that includes Delete the Pro Account section, workspace-members card and tenant-admission calls #3325 and Delete the Add synced database dialog and tenant badge from Database settings #3326 shows exactly one Account section, one "Add synced database…" action and the per-database sync badge. This is verified in sync's replacement PRs.
Dependencies
- NodeSpaceAI/nodespace-docs#88 (ADR-081) (ADR-081, proposed): the boundary decision and the migration protocol.
- Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299: the Pro-marker ratchet. Every Move the Pro account, admission and synced-database settings out of core #3327 PR lowers its baselines, so it must be on main first.
- Turn the UI-extension registry into ADR-082's build-time frontend extension API #3317: the frontend extension points (ADR-082 §2, proposed). Move the Pro account, admission and synced-database settings out of core #3327 uses:
- Add the virtual:nodespace-extensions build entry and the extension-api import alias #3311 and Stop importing the Pro extension in core; register it only through the build entry #3316: the Pro build injects its extensions through
virtual:nodespace-extensions; - Add settings-section and database settings-slot extension points #3312:
settings-categories.ts, contributedsettingsSectionswith a{ navigate }prop andafterplacement, the generic pane fallback, and thedatabase.actionsanddatabase.rowoutlets indatabase-settings.svelte; - Publish the extension host API: services, ui and testing entries, version policy #3315: the host API
@nodespace/extension-apithat sync's replacements import.
- Add the virtual:nodespace-extensions build entry and the extension-api import alias #3311 and Stop importing the Pro extension in core; register it only through the build entry #3316: the Pro build injects its extensions through
- SYNC gates: the canonical pin gate, and one replacement per deleting sub-issue (see depends_on).
This parent's depends_on is the roll-up of its sub-issues' direct dependencies. Record it on this parent only, and never copy it onto the sub-issues. Each sub-issue lists its own.
Coordination with other parents
- Move the Pro sync and collaboration UI out of core #3333 owns
proSync, themembershipstore,resolveProSyncVariant(insrc/lib/plugins/pro-sync-variant.svelte.tsafter Move the Pro variant machine and DATABASE_SETTINGS_NODE_ID out of the generic registry files #3309 / Adopt ADR-082's contribution contract: ids, when() predicates, keyed and isolated outlets #3310), the rest ofmembership-service.ts,proActivateChain,activateProSyncand the collaboration UI.- Move the Pro sync and collaboration UI out of core #3333 must not remove any of them before Delete the Pro Account section, workspace-members card and tenant-admission calls #3325 and Delete the Add synced database dialog and tenant badge from Database settings #3326 merge, because the Account section and
database-settings.svelteimport them. So Move the Pro sync and collaboration UI out of core #3333 depends on Move the Pro account, admission and synced-database settings out of core #3327, not the reverse. - Delete the Pro Account section, workspace-members card and tenant-admission calls #3325 alone deletes
collaboration/invitations-inbox.svelte, its test and its design-token baseline entry, anddatabaseStore.proSyncSettled(), because their only consumers are deleted in Delete the Pro Account section, workspace-members card and tenant-admission calls #3325. Delete the Collaboration tab, membership store and service, and the Pro plugin from core #3331 drops the inbox from its scope, and Stop driving Pro sync lifecycle from the app shell, database store and debug channel #3329 only confirms thatproSyncSettledis gone.
- Move the Pro sync and collaboration UI out of core #3333 must not remove any of them before Delete the Pro Account section, workspace-members card and tenant-admission calls #3325 and Delete the Add synced database dialog and tenant badge from Database settings #3326 merge, because the Account section and
- Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336: Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334 depends on Move the Pro account, admission and synced-database settings out of core #3327. Under ADR-082 §3 the Pro commands move into a Tauri plugin and are invoked as
plugin:<name>|…, so the in-coreinvoke('pro_…')calls in the Account section and the dialog must go first. Move the Pro account, admission and synced-database settings out of core #3327 does not depend on Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336. - Move Pro-owned data out of core's data model (ADR-083) #3345: Delete the Add synced database dialog and tenant badge from Database settings #3326 removes core's last Settings reader of
DatabaseInfo.boundTenantSchema. ADR-083 §7 requires that before Carry opaque registry extensions through DatabaseInfo and drop the tray's synced label #3341 changesDatabaseInfo. - Add the "Share / Sync this database" entry point that opens nodespace.ai #3362: adds "Share / Sync this database" to the same header row, and adds tests to
database-settings.test.ts. It lands after Delete the Add synced database dialog and tenant badge from Database settings #3326.
Out of scope (whole parent)
- Pro stores, collaboration UI, and the consent and re-login modals: Move the Pro sync and collaboration UI out of core #3333.
- The Labs "Team synchronization" card and
labsFlags.syncEnabled: Add the "Share / Sync this database" entry point that opens nodespace.ai #3362. DatabaseInfo.boundTenant*and theDatabaseSettingsNodefields: Move Pro-owned data out of core's data model (ADR-083) #3345.- The settings host, the settings slots and the host API: Turn the UI-extension registry into ADR-082's build-time frontend extension API #3317.
- All nodespace-sync work. The SYNC gates are tracked there.
Filing notes
- Don't assign these issues when filing them. Whoever picks one up self-assigns in the startup sequence (core
CLAUDE.md). - Locate code by symbol. Line numbers in the sub-issues are hints at
af8ddb61.
Plan key: C5 (pro-boundary DAG).
🤖 Generated with Claude Code
Activity
mstomar125 commentedon Oct 1, 2026
Superseded by #3412 (umbrella against the final ADR-081–085)