Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
pro-boundaryPro/core boundary: Pro code moves to nodespace-sync (ADR-081..085)
Description
Summary
Once #3333 has moved the Pro sync and collaboration UI out of core, remove the Pro, cloud-sync and tenant wording left in the desktop frontend. That covers:
- module and inline comments on generic services and stores;
- test comments, test titles and fixture strings;
- the collection fly-out's user-visible tooltip, which promises member management the free app does not have;
collectionsData.hasLoaded, a store field whose only reader was a removed Pro prompt.
Context
- Move the Pro sync and collaboration UI out of core #3333 deletes the Pro stores, the collaboration UI, the Pro modals and the Pro residue in
app-shell.svelte,database.svelte.ts,collections.svelte.ts,tauri-sync-listener.tsanddebug-channel.ts. Turn the UI-extension registry into ADR-082's build-time frontend extension API #3317 turns the UI-extension registry into the host API@nodespace/extension-apiand thevirtual:nodespace-extensionsbuild input (ADR-082 §2). - What stays in the frontend is generic code whose comments explain it through Pro or cloud sync. Examples:
- "An empty id (single-database / Pro daemon)";
- "a cloud-sync relationship burst";
- "this is NOT Pro-gated";
- test fixtures such as
'fresh from cloud'; - a test comment citing a
cloud_writer.rsandLIVE-SELECTthat no longer exist anywhere.
- The fly-out tooltip is user-visible.
collection-sub-panel.svelteshows "Open collection (manage members & collaboration)" in the free app, which has no member management. ItsonOpenCollectionprop doc says the page has "Contents / Collaboration tabs". After Turn the UI-extension registry into ADR-082's build-time frontend extension API #3317 and Move the Pro sync and collaboration UI out of core #3333, a Collaboration tab exists only when an extension contributes a viewer tab. collectionsData.hasLoaded(stores/collections.svelte.ts) has no production reader.- Its doc names "the invitations prompt", which was removed.
- The only remaining reference is one assertion in
collections-optimistic-create.test.ts. - CLAUDE.md says to delete unused code rather than keep it.
- Extension code may import core only through
@nodespace/extension-api(ADR-082 §2.6, enforced by nodespace-sync's lint rule), so no Pro code can read this field unless the host API re-exports it. Step 2 checks that.
- Follow the parent's wording guide. The empty-
database_idconvention now comes only from an impl not opened through the daemon's registry, such as a single-database host or a test. Describe core's access gate and daemon seams without naming the Pro daemon #3363 rewords the daemon, proto and Tauri side.
Scope
Line numbers are hints at af8ddb6. #3317 and #3333 will have shifted them, so locate each item by the quoted text. All paths are under packages/desktop-app/src/.
Production code
lib/stores/database.svelte.ts, theisActiveDatabaseEventdoc (670-676). "An empty id (an event not scoped to a registered database) or an as-yet-unloaded selection always applies…" Keep the guard itself.lib/stores/reactive-structure-tree.svelte.ts.- Line 118: "a large relationship burst" instead of "a cloud-sync relationship burst".
- The reparent comment in
addChild(181-187): "Another writer (another window, the CLI, an agent, or a replicated apply) delivers the new-parent edge and the old-parent edge-delete as independent events…", and "(indent/outdent not reflected across windows)".
lib/utils/logger.ts, theforwardToFilecomment (84-89). "diagnosing cross-window event behaviour" instead of "cross-window / cloud-sync behaviour".lib/services/tauri-sync-listener.ts.- The burst comment (45-53): "a folder import, a reconnect replay, or any other bulk write" instead of "an initial cloud pull".
- The
has_childcoalescing comment (260-268): "A large import or any bulk write floods the event stream with tens of thousands of relationship events" instead of "the initial cloud-sync pull of a populated tenant".
lib/components/layout/app-shell.svelte, the conflict-journal comment (73-78). "Conflict journal (ADR-068): load on every startup; it works on a purely local install." Drop "whatever the tier — unlike the deleted Recovered Items log, this is NOT Pro-gated".lib/components/layout/collection-sub-panel.svelte.- The
onOpenCollectionprop doc (25): "Open the collection's own page." - The title button's tooltip (187):
title="Open collection".
- The
- History of the deleted Pro "Recovered Items" surface, which only a reader of the old code can follow:
lib/components/conflicts/conflicts-pane.svelte, header lines 2-5: drop "replacing the three half-places … the Recovered Items badge/store", and keep what the view is;lib/stores/conflicts.svelte.ts, theConflictsStoredoc (52-55): "Follows the canonical rune pattern (ADR-049):$statefields directly on a plain class…", without naming the deletedrecovered-items.svelte.ts.
lib/stores/collections.svelte.ts. Delete thehasLoadedfield and its doc (129-136), and its writes inloadCollections(200),reset(376) and_setTestData(393).
Tests
tests/stores/collections-optimistic-create.test.ts:362. Removeexpect(collectionsData.hasLoaded).toBe(false);. The test still asserts the list stays empty.tests/stores/conflicts.test.ts, module doc lines 1-6. "Conflicts store (ADR-068):load,hasOpenFor, and the resolution actions. The journal works on a purely local install, soload()always calls the daemon." Drop "NOT Pro-gated" andproSync.isPro.tests/unit/reactive-structure-tree.test.ts:900. Describe title: "addChild reparents across parents (indent/outdent from another writer)".tests/services/tauri-sync-listener.test.ts, the relationship-coalescing comment (601-604). "A bulk write floods relationship events (tens of thousands for a large import)." Drop "cloud-sync pull" and "populated tenant".- Leave the
'sync:status'and'sync:error'registration test to Delete dead Pro residue: sync:* log listeners and the Recovered Items seed script #3328, which turns it into an absence guard.
- Leave the
tests/services/browser-sync-service.test.ts.- Line 234: "applied in another window delivers the new-parent edge…".
- The Relationship Deduplication test (924-948). Retitle it "should preserve existing order when a relationship echo arrives with no order field (optimistic creation)". Replace the comments that cite "cloud LIVE-SELECT echo" and "
cloud_writer.rs" with "a relationship event without an order field (a writer that doesn't carry sibling order)".
tests/services/shared-node-store-skip-while-editing.test.ts. Rename these fixture strings, and keep each fixture's assertion in step with it:'fresh from cloud'(134, 137) to'fresh from daemon';'cloud-older'(145) to'daemon-older';'cloud-current'(221, 224) to'daemon-current'.
tests/components/collection-sub-panel.test.ts, module doc lines 1-7. "Clicking the panel title opens the collection's own page, while clicking a member row opens that member node." Add one assertion that the title button'stitleattribute isOpen collection.
Out of scope
lib/services/daemon-status.ts's module doc. Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected #3318 rewords it when it replacespro:tier-detected.- These two, which Stop driving Pro sync lifecycle from the app shell, database store and debug channel #3329 handles:
tests/stores/database.test.ts:898, whose title Stop driving Pro sync lifecycle from the app shell, database store and debug channel #3329 changes;- the
daemon-reconnect-retry.test.tscomment at 102-104, which Stop driving Pro sync lifecycle from the app shell, database store and debug channel #3329 deletes.
lib/components/conflict-indicator-badge.svelte's header comment. C7.2 rewrites it, and Sweep the Pro and sync wording C7 leaves around replicated writes and AI-chat privacy #3367 checks what is left.- Turn the UI-extension registry into ADR-082's build-time frontend extension API #3317's files and comments:
ui-extensions.ts,ui-extensions.svelte.tsandextension-outlet.svelte;- the chrome-slot comments in
app-shell.svelte(around 732); - the comments in
collection-node-viewer.svelte.
- Everything Move the Pro sync and collaboration UI out of core #3333 deletes or rewrites, including the
sync:*listeners,proSyncandrefreshDatabaseSettings. lib/services/remote-update-policy.tsand its test. Their wording follows Rename the origin-filtered event channel to subscribe_to_events_excluding_origin #3338's origin rename, so they are in Sweep the Pro and sync wording C7 leaves around replicated writes and AI-chat privacy #3367.- The
DatabaseInfo.boundTenant*fields and fixtures (Carry opaque registry extensions through DatabaseInfo and drop the tray's synced label #3341).
Steps
- Follow CLAUDE.md's startup sequence:
- pull
main; EnterWorktree({name: "issue-<N>-frontend-wording"});bun install, then thebun run testbaseline;- self-assign at pickup and set In Progress.
- pull
- Confirm Move the Pro sync and collaboration UI out of core #3333 has merged, and locate every item by text:
git grep -n -I -P '(?i:cloud|tenant|pro-gated|pro daemon|pro-?sync|LIVE-SELECT|cloud_writer|manage members|Collaboration tabs|recovered[- ]items|hasLoaded)' -- packages/desktop-app/src - Check that nothing outside core can read
hasLoaded:git grep -n -e hasLoaded -e collectionsData -- packages/desktop-app/src/lib/extension-api.- If the host API exposes neither, delete the field as described.
- If it re-exports
collectionsDataorhasLoaded, keep the field with a neutral doc ("true onceloadCollectionshas completed at least one fetch") and say so in the PR.
- Make the edits under Scope. Apart from the
hasLoadeddeletion, this PR changes comments, titles, fixtures and one tooltip only. - Run
bun run scripts/check-pro-boundary.tsand paste the printedBASELINES. The numbers below were measured at af8ddb6 on the lines still in scope; use the real output:proWording−3cloudWording−1tenantWording−2proSyncModule−1
- Verify, then finish:
bun run quality:fix, and commit;git push origin HEAD:issue-<N>-frontend-wording;gh pr create --head issue-<N>-frontend-wording;- merge only with
bun run merge <PR#>once approved.
Acceptance criteria
- The grep in step 1 returns no line in any file listed under Scope, except
hasLoadedif step 2 kept it. Only files that are out of scope above may remain in its output. - The fly-out tooltip reads "Open collection", and
collection-sub-panel.test.tsasserts it. -
collectionsData.hasLoadedis gone, or is kept with a neutral doc because the host API exposes it (the PR says which), andsvelte-checkpasses. - No test lost an assertion other than the
hasLoadedone, and every renamed fixture is still asserted. -
BASELINESinscripts/check-pro-boundary.tsis lowered to the counts the CLI prints, and the CLI exits 0.
Tests and verification
bun run --cwd packages/desktop-app quality:fix, which runs eslint, the design-token check and svelte-check.bun run test:changed, which runs the frontend tier.bun run --cwd packages/desktop-app test collection-sub-panel collections-optimistic-create conflicts shared-node-store-skip-while-editing browser-sync-service tauri-sync-listener reactive-structure-tree- Mutation-check the new tooltip assertion. Temporarily restore the old title, confirm the test fails, then revert.
bun run scripts/check-pro-boundary.ts
Dependencies
- Guardrail: stop new Pro code from landing in core #3302: the ratchet whose baselines this lowers.
- Move the Pro sync and collaboration UI out of core #3333: the Pro UI and its residue must be gone first, so these comments are the only thing left and no hunk conflicts with Move the Pro sync and collaboration UI out of core #3333.
Risks and rollback
- Deleting
hasLoadedcould break a Pro reader. Step 2 guards against it. The host API is the only way in. - The tooltip change is user-visible. It is intended.
- Rollback. Revert the PR.
Plan key: C10.4 (pro-boundary DAG).
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
pro-boundaryPro/core boundary: Pro code moves to nodespace-sync (ADR-081..085)
Activity
mstomar125 commentedon Oct 1, 2026
Superseded by #3412 (umbrella against the final ADR-081–085)