Skip to content

Add the "Share / Sync this database" entry point that opens nodespace.ai #3362

Closed as not planned
4 of 4 issues completed
Closed as not planned

Description

@mstomar125

Goal

Give the free app its one allowed Pro-related surface: a "Share / Sync this database…" action that opens the NodeSpace website. ADR-081 §2b (proposed) permits exactly this. ADR-084 §1 (proposed) specifies it. On the website the user starts a trial or a paid plan and downloads the Pro app, which replaces core and keeps the same local databases.

Core renders the action as the default content of a replaceable slot, database.sync-entry (ADR-084 §1.1; ADR-082 §2.2). The Pro app is core's desktop app plus the Pro package. It contributes its own action to that slot (ADR-084 decision 7(a)) or an always-hidden one (7(b)), so a paying user never sees the purchase link.

The action replaces:

  • the disabled Labs "Team synchronization" card and its mailto: link;
  • the Labs syncEnabled flag;
  • the README's "Pro tier" section, which points to Discord.

This is ADR-081 §7 step 7 ("Entry point and clean-up"). It is part of the epic #3298: core ships no Pro code, and the Pro app moves to nodespace-sync.

Context

The directive. Michael, 2026-09-29: "Later core will have a 'share/sync this database' flow that just jumps to our website to initiate it (trial, premium), then they download the pro version (replacing the core)."

What ADR-084 §1 specifies:

  • The dialog. Choosing the action opens a short dialog:
    • one sentence saying that syncing and sharing need NodeSpace Pro, which is set up on the website and replaces this app while keeping its databases;
    • a primary Continue on nodespace.ai button;
    • a Cancel button.
  • The URL. Continue opens https://nodespace.ai/pro?entry=sync-database through core's existing openUrl. The URL is built only from compile-time constants.
  • Nothing else is sent. Core adds no database id, node id, email, person id, app version or machine identifier. It makes no network request for this flow and does not record that the action was used.
  • Failure. If the OS cannot open a browser, core shows "Couldn't open your browser. To set up sync, visit https://nodespace.ai/pro", with the address selectable and a Copy link button. Nothing is retried automatically.
  • Precondition. Core does not ship the action until the website serves a dedicated page at the entry URL. https://nodespace.ai/pro already returns HTTP 200 with the home page, so a reachability check proves nothing; a person has to check the page.

What exists at main @ af8ddb61:

Why a slot, and why the pin matters.

Scope overview

In scope:

  1. Add the replaceable database.sync-entry action slot to the extension API #3358: the replaceable slot database.sync-entry. Its types, registry accessors and a generic host. The host is placed in Settings → Database with an empty default. The slot is exported from the host API, with a version bump and an updated snapshot. Core looks unchanged.
  2. Make the Share / Sync website action the sync-entry default; remove the Labs card #3359: core's default content for the slot. The button, the ADR-084 dialog, the URL constants, and the failure message with Copy link. It also deletes the Labs card and rewrites the README section.
  3. Add a File menu item that opens the Share / Sync this database entry #3360: a native File menu item. With no extension contribution to the slot, it opens core's dialog. With one, it opens Settings → Database, where the contribution renders.
  4. Delete the Labs syncEnabled flag and guard the free app's single sync entry point #3361: delete labsFlags.syncEnabled, and add a guard test that the free app's only sync-related control is the entry action.

Out of scope:

Sub-issues (in order)

Key Title Size Depends on
#3358 Add the replaceable database.sync-entry action slot to the extension API M #3299, #3315, #3326
#3359 Make the Share / Sync website action the sync-entry default; remove the Labs card M #3358, #3333, NodeSpaceAI/nodespace-docs#94 (ADR-084), #3286, WEB landing page, pin gate, SYNC contribution ready
#3360 Add a File menu item that opens the Share / Sync this database entry S #3359, #3306, NodeSpaceAI/nodespace-docs#90 (ADR-082)
#3361 Delete the Labs syncEnabled flag and guard the free app's single sync entry point S #3359, #3327, #3333

DAG: #3358 → #3359 → {#3360, #3361}. #3360 and #3361 can land in either order.

The dependencies on this parent are its own blockers only. Don't copy them onto the sub-issues; each sub-issue lists its own direct dependencies.

Acceptance criteria (parent)

  • Settings → Database shows "Share / Sync this database…" in the Databases header row.
  • File → "Share / Sync This Database..." reaches the same action. If the ADR-082 reviewer declines a native entry, Add a File menu item that opens the Share / Sync this database entry #3360 is closed and this criterion no longer applies.
  • The action opens a dialog with one sentence, Continue on nodespace.ai and Cancel.
  • Continue opens exactly https://nodespace.ai/pro?entry=sync-database. Core sends no other parameter, no app version and no identifier, makes no network request of its own, and records nothing.
  • If the browser can't be opened, the dialog shows ADR-084's failure message, with the address selectable and a working Copy link button.
  • An extension that registers a contribution to database.sync-entry replaces core's action in every place core shows it.
  • A registered contribution that is hidden, throws or fails to load leaves the place empty, and core's default does not come back.
  • Labs contains only AI Chat and Playbooks. git grep -n "syncEnabled\|[email protected]\|Team synchronization" -- packages/desktop-app returns nothing.
  • The README has no nodespaced-pro, "same desktop app", tenant or Discord-for-access wording. Its sync section points to nodespace.ai, and the Discord community links stay.
  • A guard test shows that the free app's settings expose no Account section, no tenant or synced-database UI and no Labs sync card. The only sync-related control is the entry action.
  • After every sub-issue:
    • bun run test:changed and bun run --cwd packages/desktop-app quality:fix are clean;
    • the free app works as before, apart from the intended change;
    • bun run scripts/check-pro-boundary.ts exits 0, and its BASELINES equal the printed counts, lowered in the same PR wherever a marker was removed.

Dependencies

Follow-ups outside core (filed with the sync and website items)

Filing notes

Risks


Plan key: C9 (pro-boundary DAG).

🤖 Generated with Claude Code

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 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 #3413 (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