Skip to content

Add Labs settings section (AI Chat, Team synchronization) and remove NodeSpace Pro badge #2545

Closed

Description

@malibio

Overview

Add a "Labs" section to Settings to house experimental/in-development features (starting with AI Chat and a disabled "Team synchronization" entry), and remove the "NodeSpace Pro" pill currently shown in the top-right corner of the app.

Problem Statement

Labs section: Settings currently has a fixed set of categories (database, display, ai-models, import, integrations, about) with no place to group experimental or not-yet-ready features. There's no "AI Chat" settings entry today — AI Chat exists only as a node/viewer feature (ai-chat-node-viewer.svelte, ai-chats.svelte.ts), not a settings panel. There's also no "Team synchronization" entry; the closest existing thing is the Pro-gated collaboration UI (a separate tab/view, not part of Settings).

Pro badge: The app shell renders an overlay pill in the top-right corner: pro-sync-pill.svelte (Pro-tier accounts — clicking opens the account menu / sign-in) or pro-teaser-pill.svelte (community tier — clicking opens https://nodespace.ai/pro), whichever is active. This badge should no longer be shown.

Proposed Solution

  1. Add a new labs category to Settings following the existing category pattern, containing an AI Chat entry and a disabled Team synchronization entry ("In development").
  2. Remove the overlay slot rendering in app-shell.svelte so neither Pro pill variant is shown, without deleting the underlying Pro/membership/account functionality those pills exposed.

These two changes are bundled because they touch the same area of the app (Settings/account-tier UI) and because the Team synchronization entry is a plausible landing spot for the upgrade-messaging UX that currently lives only in the pill being removed (see Architecture Impact).

Architecture Impact

ADR-039 (Open-Core Repository Separation) is directly relevant to both halves of this issue:

  • It documents the top-right pill as the intended tier-discovery UX: "the app calls WatchSyncStatus on startup; if the daemon returns Unimplemented, it's community tier and the sync pill is hidden. If it returns a stream, it's Pro and the pill renders" (line 78).
  • It separately describes the community-tier equivalent as living in "the Settings panel... a 'NodeSpace Cloud' section with contextual upgrade messaging" (line 142) — a section that does not currently exist in code.

This issue removes the overlay pill surface but does not reverse the ADR's underlying capability-probe/tier-detection mechanism (getActiveChromeContributions, the daemon probe) — that mechanism is untouched. The new "Team synchronization" Labs entry is a plausible landing spot for the ADR's described-but-unbuilt Settings surface, but this issue does not wire it to the real collaboration/Pro infrastructure (lib/components/collaboration/, lib/stores/pro-sync.svelte.ts, lib/stores/membership.svelte.ts, lib/services/membership-service.ts, lib/plugins/pro-plugin.ts) — it is a disabled placeholder only.

No ADR is reversed or superseded by this issue; it is additive/removal UI work scoped narrowly to avoid pre-empting the eventual Pro-wiring design. If a Settings-based replacement entry point for the pill's functionality is built later, that follow-up should update ADR-039's description of where the community-tier CTA lives.

No ADR or architecture doc governs the AI Chat side of this issue — no prior decision found for an "AI Chat" settings entry specifically.

Acceptance Criteria

Labs section

  • A new labs category appears in the Settings sidebar (settings-sidebar.svelte), following the existing categories array pattern
  • settings-pane.svelte routes activeCategory === 'labs' to a new LabsSettings (or similarly named) section component under lib/components/settings/sections/
  • The Labs section renders an AI Chat entry. If no AI-chat-related settings currently exist anywhere in the codebase, this entry is a placeholder (e.g. a description of the feature with no functional controls) — inventing new AI Chat settings/preferences is out of scope for this issue
  • The Labs section renders a Team synchronization entry that is visibly disabled (greyed out, non-interactive) and carries an "In development" label/badge
  • The Team synchronization entry is not wired to pro-sync.svelte.ts, membership.svelte.ts, membership-service.ts, or the collaboration components — it renders only as a disabled placeholder
  • New section component follows the naming/structure conventions of existing sections (e.g. DatabaseSettings, DisplaySettings)

Pro badge removal

  • The .pro-sync-pill-slot overlay in app-shell.svelte no longer renders pro-sync-pill.svelte or pro-teaser-pill.svelte
  • Confirm whether sign-in / account-menu access (currently reachable by clicking pro-sync-pill.svelte when signed in) is reachable anywhere else in the app. If the pill was the only entry point for sign-in or account management, do not silently remove it — surface this as a blocking finding before completing the issue, since users would otherwise lose the ability to sign in
  • getActiveChromeContributions('app-shell-overlay') iteration itself may remain (other future overlay contributions could use the same slot) — only the Pro pill's registration/rendering is removed, not the generic overlay mechanism
  • No dead imports or unused lazy-load logic left behind in app-shell.svelte for the removed pill rendering

Both

  • Code passes bun run quality:fix
  • Tests pass (bun run test:all)

Technical Specifications

Reference Files — Labs section

  • packages/desktop-app/src/lib/components/settings/settings-sidebar.svelte (lines 11-18) — hardcoded categories array driving the sidebar nav; add a labs entry here
  • packages/desktop-app/src/lib/components/settings/settings-pane.svelte (lines 22-39) — {#if activeCategory === '...'} chain mapping category id to section component; add a labs branch here
  • packages/desktop-app/src/lib/components/viewers/ai-chat-node-viewer.svelte, lib/stores/ai-chats.svelte.ts — existing AI Chat feature code, for reference only (not a settings panel)
  • packages/desktop-app/src/lib/components/collaboration/ (collaboration-tab.svelte, collaboration-view.svelte, collaboration-locked.svelte, invitations-inbox.svelte) — existing Pro-gated collaboration UI; NOT wired up by this issue, referenced for whoever picks up the future "wire up Team sync" work
  • packages/desktop-app/src/lib/stores/pro-sync.svelte.ts, lib/stores/membership.svelte.ts, lib/services/membership-service.ts — existing Pro/membership state; NOT touched by this issue

Reference Files — Pro badge removal

  • packages/desktop-app/src/lib/components/layout/app-shell.svelte (lines 678-683) — .pro-sync-pill-slot overlay rendering, iterates getActiveChromeContributions('app-shell-overlay') and lazy-loads the active variant
  • packages/desktop-app/src/lib/components/pro-sync-pill.svelte — Pro-tier pill; onClick (lines 147-155) opens account menu (signed in) or sign-in options (signed out); Pro-state check at line 203 (proSync.isPro)
  • packages/desktop-app/src/lib/components/pro-teaser-pill.svelte — community-tier "Upgrade to Pro" pill; onClick (lines 14-23) opens https://nodespace.ai/pro in the browser, makes no daemon calls
  • packages/desktop-app/src/lib/plugins/ui-extensions.ts, lib/plugins/pro-plugin.ts — registry that contributes these pills to the app-shell-overlay slot; check for the registration point to remove

Implementation Details

  • No feature-flag or experimental-flag infrastructure currently exists in the codebase (featureFlag/experimental/labs all have zero matches in packages/desktop-app/src). This issue does not introduce one — if per-item enable/disable state is needed later (e.g. toggling AI Chat on/off), that is future scope, not part of this issue
  • Follow the exact category-registration pattern used for existing sections (e.g. ai-models → model-manager.svelte) for consistency
  • The Pro badge removal is a visual-removal-only change. pro-sync.svelte.ts, membership.svelte.ts, and membership-service.ts (the underlying Pro/membership state and services) are out of scope and should not be modified
  • The sign-in/account-menu flow currently triggered from pro-sync-pill.svelte needs a fallback location if this was its only entry point — check before removing; if no alternative exists, flag it rather than shipping a regression

Non-Goals

  • Wiring "Team synchronization" to the real collaboration/Pro infrastructure
  • Building new AI Chat settings/preferences functionality if none currently exists
  • A general-purpose feature-flag system

Activity

  1. changed the title [-]Add Labs settings section with AI Chat and Team synchronization entries[/-] [+]Add Labs settings section (AI Chat, Team synchronization) and remove NodeSpace Pro badge[/+] on Sep 9, 2026
  2. malibio commented on Sep 9, 2026

    @malibio
    CollaboratorAuthor

    Additional context on the Pro badge removal half of this issue: the frontend click logic in pro-sync-pill.svelte (account menu, sign-in, invitations) is already fully implemented — not a stub — per investigation. The reason it currently "does nothing" locally is that there's no way to run/build a Pro-tier daemon in this repo without the private nodespace-sync repo, so proSync.isPro never resolves true here.

    Decision: don't build a local mock/stub Pro daemon to make it clickable. The pill's non-functional state here plus its current UI design are both reasons to just remove it (per this issue's existing scope), not fix it in-repo. Mayank owns getting it working correctly on the nodespace-sync/pro-daemon side — that's tracked outside this repo, not part of this issue.

  3. self-assigned this
    on Sep 10, 2026
  4. mstomar125 commented on Sep 10, 2026

    @mstomar125
    Contributor

    Labs section — done

    PR #2554 adds the labs Settings category (settings-sidebar.svelte + settings-pane.svelte routing → new LabsSettings component under lib/components/settings/sections/) with the AI Chat placeholder and the disabled "Team synchronization · In development" entry, per the acceptance criteria. Not wired to pro-sync.svelte.ts / membership.svelte.ts / membership-service.ts / collaboration components.

    Pro pill removal — BLOCKED, not shipped

    Per the issue's own acceptance criteria, I checked whether sign-in/account-menu access is reachable anywhere else in the app before removing pro-sync-pill.svelte / pro-teaser-pill.svelte from app-shell.svelte's .pro-sync-pill-slot. It is not — this pill is currently the sole entry point in the entire desktop-app codebase for:

    • Starting a fresh sign-in (pro_initiate_oauth, both "Continue with Google" and "Sign in with email") for a user who has never signed in / is signed out
    • Opening the account menu (signed-in state: "Signed in as <email>", Sign out)
    • Opening the Invitations inbox manually

    Evidence:

    • grep -rl pro_initiate_oauth packages/desktop-app/src returns only pro-sync-pill.svelte and pro-relogin-modal.svelte. The relogin modal is not a substitute: it's only shown automatically when the daemon reports AUTH_REQUIRED (a previously-signed-in session whose token lapsed) — there's no modal contribution at all for the fresh sign-in variant (see the state table in pro-plugin.ts's header comment), so a never-signed-in user has nothing to click without the pill.
    • No tray menu, native menu bar item, command palette, or onboarding-wizard step offers sign-in anywhere — checked src-tauri/src/lib.rs, onboarding-wizard.svelte, and grepped the whole frontend for sign in / Sign In / startSignIn.
    • The codebase's own copy assumes the pill's continued existence: collaboration-locked.svelte (shown in a collection's Collaboration tab pre-sign-in) literally instructs the user: "Sign in from the sync button in the toolbar, then turn on sync..." — i.e. it points at the pill by description. Removing the pill without a replacement would make that in-app guidance point at nothing.

    Given this, I did not touch app-shell.svelte's overlay rendering or the pro-plugin.ts registrations for pro-sync-pill / pro-teaser-pill — removing them as specified would ship a real regression (Pro users losing their only way to sign in), which the issue explicitly says to avoid.

    Adjacent finding, for whoever picks this back up: the overlay slot actually carries a third pill component not named in this issue's acceptance criteria — enable-sync-pill.svelte, registered for the consent variant (signed in, sync not yet enabled) in pro-plugin.ts. It doesn't do sign-in (only reopens the publish-consent modal), so it's not part of the sign-in-access concern above, but it does render in the same top-right .pro-sync-pill-slot — so even a removal limited to exactly the two named files would still leave a pill visible in that corner for a signed-in, not-yet-consented Pro user. Worth deciding explicitly (in scope or not) when this is unblocked.

    Suggested unblock path: build the Settings-based "NodeSpace Cloud" / Team synchronization surface that ADR-039 already describes as the intended community-tier landing spot (and that this issue's own Labs "Team synchronization" placeholder is scoped as a plausible home for), and move sign-in/account-menu access there before removing the pill — so the removal doesn't have to wait on that pill being the only path. That's follow-up work, not something I'm doing under this issue's current non-goals (no wiring to real Pro/collaboration infra).

    I'm leaving #2545 open (In Review reflects the Labs-section PR only) pending a decision on how to unblock the pill removal.

  5. mstomar125 commented on Sep 15, 2026

    @mstomar125
    Contributor

    Re-validated against current origin/main (not trusting the earlier Blocked comment's snapshot). Your instinct is partially right, worth being precise about which part.

    Sign-in access is no longer exclusive to the pill — add-synced-database-dialog.svelte (reachable via Settings → Database → "Add synced database…", shipped after the earlier blocking comment) does its own full sign-in flow (checkIdentity → pro_initiate_oauth) independent of pro-sync-pill.svelte. That closes the most serious part of the original blocker (a signed-out user losing all ability to ever sign in).

    But two smaller things are still pill-only, re-confirmed via grep against origin/main just now:

    • Sign-out (proSync.signOut() is called only from pro-sync-pill.svelte:187)
    • The Invitations inbox (InvitationsInbox is imported and rendered only inside pro-sync-pill.svelte)

    So "not a blocker at all" doesn't fully fit — removing the pill today would still regress a signed-in user's ability to sign out or see pending invitations, just not the more serious "can never sign in" regression from before. Scope is much narrower now than the original finding suggested, though.

    Picking this up now: adding a minimal account-access surface (signed-in email + sign out + invitations) somewhere reachable without the pill, then removing pro-sync-pill.svelte / pro-teaser-pill.svelte from app-shell.svelte's overlay slot per the issue's original acceptance criteria. Will also resolve the adjacent enable-sync-pill.svelte finding from the prior comment (third pill in the same slot, not named in the original criteria).

    Unblocking — moving to Todo, self-assigning.

  6. mstomar125 commented on Sep 15, 2026

    @mstomar125
    Contributor

    Implementation complete — PR #2627 open (#2627), covering the Pro-badge-removal half of this issue. (The Labs-section half already shipped via #2554.)

    Acceptance criteria mapping

    Pro badge removal:

    • .pro-sync-pill-slot in app-shell.svelte no longer renders pro-sync-pill.svelte or pro-teaser-pill.svelte
    • Sign-in/account-menu access reachability confirmed and preserved: sign-in was already independently reachable via add-synced-database-dialog.svelte (shipped after the original 2026-09-10 blocking comment on this issue); sign-out and the Invitations inbox — the two capabilities still exclusive to the pill as of the 2026-09-15 re-check — now live in a new Settings > Account section (account-settings.svelte)
    • getActiveChromeContributions('app-shell-overlay') iteration mechanism retained in app-shell.svelte, just contributes nothing now
    • No dead imports / unused lazy-load logic left in app-shell.svelte (confirmed via tsc --noEmit + svelte-check, both clean, plus a direct grep sweep for the three deleted files across the whole package — zero remaining references)

    Both: bun run quality:fix clean (0 errors/warnings), bun run test:all passes (unit + browser + Rust + e2e, via the full pre-push gate).

    Adjacent decision: enable-sync-pill.svelte

    Also deleted — it was a third pill sharing the same overlay slot (flagged in the 2026-09-10 comment as not named in the original AC). It only reopened the publish-consent modal for a signed-in, not-yet-consented Pro user; collaboration-locked.svelte's existing "Turn on sync" button already does exactly that for the same consent variant, so no replacement surface was needed.

    Non-obvious findings

    • ADR-039 is now stale: it documents the pill as the tier-discovery UX ("...the sync pill is hidden... the pill renders") and describes an unbuilt "NodeSpace Cloud" Settings section for community tier. Neither matches current code — the pill is gone entirely (all tiers), and what exists instead is the Labs "Team synchronization" placeholder (Add Labs settings section (AI Chat, Team synchronization) #2554) + this PR's generic Account section. Per this issue's own Architecture Impact note, a Settings-based replacement being built is the trigger to update ADR-039's description — flagging for Anoop/Michael rather than editing the ADR unilaterally from this repo.
    • Minor pre-existing nit carried forward: the new Invitations button (like the old pill's) has no disabled={signingOut} guard, only Sign out does — verified this gap already existed in the deleted pro-sync-pill.svelte, not a regression, but worth a small follow-up polish.
    • Not carried over (explicit, documented scope decision, not an oversight): the removed pill's auto-show-Invitations nudge for a signed-in user with no collection access — it was tied to the pill's always-mounted app-chrome lifetime and doesn't map onto a settings page visited deliberately.

    Every claim above was re-verified live: launched the real frontend against an isolated daemon (dev-proxy + vite, never touching live ~/.nodespace) and click-through-confirmed no pill renders anywhere, Settings > Account renders correctly for both community and (forced) Pro tiers, and the Add-synced-database dialog opens with its sign-in framing intact.

  7. mstomar125 commented on Sep 15, 2026

    @mstomar125
    Contributor

    Merged: PR #2627 → main (squash commit 9a270f08).

    Update on the two things flagged as open in the previous comment: full /pragmatic-code-review (extra-high effort) caught a real, live-reproducible bug before merge — account-settings.svelte's signed-in check read proSync.userEmail, which ADR-053 forces empty for any database with no bound tenant, so a genuinely signed-in Pro user with a local-only active database would have seen "Signed out" and lost Sign out/Invitations entirely. Fixed by switching to pro_current_person() (global daemon identity), the same fix add-synced-database-dialog.svelte already uses for this exact trap — with a regression test covering it.

    The review also caught that deleting enable-sync-pill.svelte narrowed "Turn on sync" reachability more than the previous comment's reasoning accounted for: collaboration-locked.svelte's own reopen button only exists inside a specific collection's Collaboration tab, not globally reachable like the deleted pill was. Added the same "Turn on sync" action to Settings > Account so it's reachable again without navigating into a collection first.

    Issue status → Done.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions