Skip to content

Move the Pro account, admission and synced-database settings out of core #3327

Closed as not planned
3 of 3 issues completed
Closed as not planned

Description

@mstomar125

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 settingsSections contribution for Account;
  • a contribution to the settings slot database.actions for "Add synced database…";
  • a contribution to the settings slot database.row for 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

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:

  1. 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.
  2. 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 account section stays hidden while core still lists its own.
  3. Core merges first. Pro builds are unaffected, because they are still on the old pin.
  4. 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

Dependencies

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

Out of scope (whole parent)

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

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. self-assigned this
    on Sep 30, 2026
  2. added
    pro-boundary
    on Sep 30, 2026
  3. mstomar125 commented on Oct 1, 2026

    @mstomar125
    ContributorAuthor

    Superseded by #3412 (umbrella against the final ADR-081–085)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

pro-boundary

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions