Skip to content

Remove Pro and cloud-sync wording from frontend comments, tests and the fly-out tooltip #3366

Closed as not planned

Description

@mstomar125

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.ts and debug-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-api and the virtual:nodespace-extensions build 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.rs and LIVE-SELECT that no longer exist anywhere.
  • The fly-out tooltip is user-visible. collection-sub-panel.svelte shows "Open collection (manage members & collaboration)" in the free app, which has no member management. Its onOpenCollection prop 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_id convention 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, the isActiveDatabaseEvent doc (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, the forwardToFile comment (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_child coalescing 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 onOpenCollection prop doc (25): "Open the collection's own page."
    • The title button's tooltip (187): title="Open collection".
  • 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, the ConflictsStore doc (52-55): "Follows the canonical rune pattern (ADR-049): $state fields directly on a plain class…", without naming the deleted recovered-items.svelte.ts.
  • lib/stores/collections.svelte.ts. Delete the hasLoaded field and its doc (129-136), and its writes in loadCollections (200), reset (376) and _setTestData (393).

Tests

  • tests/stores/collections-optimistic-create.test.ts:362. Remove expect(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, so load() always calls the daemon." Drop "NOT Pro-gated" and proSync.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".
  • 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's title attribute is Open collection.

Out of scope

Steps

  1. Follow CLAUDE.md's startup sequence:
    • pull main;
    • EnterWorktree({name: "issue-<N>-frontend-wording"});
    • bun install, then the bun run test baseline;
    • self-assign at pickup and set In Progress.
  2. 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
  3. 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 collectionsData or hasLoaded, keep the field with a neutral doc ("true once loadCollections has completed at least one fetch") and say so in the PR.
  4. Make the edits under Scope. Apart from the hasLoaded deletion, this PR changes comments, titles, fixtures and one tooltip only.
  5. Run bun run scripts/check-pro-boundary.ts and paste the printed BASELINES. The numbers below were measured at af8ddb6 on the lines still in scope; use the real output:
    • proWording −3
    • cloudWording −1
    • tenantWording −2
    • proSyncModule −1
  6. 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 hasLoaded if 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.ts asserts it.
  • collectionsData.hasLoaded is gone, or is kept with a neutral doc because the host API exposes it (the PR says which), and svelte-check passes.
  • No test lost an assertion other than the hasLoaded one, and every renamed fixture is still asserted.
  • BASELINES in scripts/check-pro-boundary.ts is 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

Risks and rollback

  • Deleting hasLoaded could 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

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