Repository navigation
Description
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
- Add a new
labscategory to Settings following the existing category pattern, containing an AI Chat entry and a disabled Team synchronization entry ("In development"). - Remove the overlay slot rendering in
app-shell.svelteso 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
WatchSyncStatuson startup; if the daemon returnsUnimplemented, 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
labscategory appears in the Settings sidebar (settings-sidebar.svelte), following the existingcategoriesarray pattern -
settings-pane.svelteroutesactiveCategory === 'labs'to a newLabsSettings(or similarly named) section component underlib/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-slotoverlay inapp-shell.svelteno longer renderspro-sync-pill.svelteorpro-teaser-pill.svelte - Confirm whether sign-in / account-menu access (currently reachable by clicking
pro-sync-pill.sveltewhen 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.sveltefor 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) — hardcodedcategoriesarray driving the sidebar nav; add alabsentry herepackages/desktop-app/src/lib/components/settings/settings-pane.svelte(lines 22-39) —{#if activeCategory === '...'}chain mapping category id to section component; add alabsbranch herepackages/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" workpackages/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-slotoverlay rendering, iteratesgetActiveChromeContributions('app-shell-overlay')and lazy-loads the active variantpackages/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) openshttps://nodespace.ai/proin the browser, makes no daemon callspackages/desktop-app/src/lib/plugins/ui-extensions.ts,lib/plugins/pro-plugin.ts— registry that contributes these pills to theapp-shell-overlayslot; check for the registration point to remove
Implementation Details
- No feature-flag or experimental-flag infrastructure currently exists in the codebase (
featureFlag/experimental/labsall have zero matches inpackages/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, andmembership-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.svelteneeds 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
[-]Add Labs settings section with AI Chat and Team synchronization entries[/-][+]Add Labs settings section (AI Chat, Team synchronization) and remove NodeSpace Pro badge[/+]malibio commentedon Sep 9, 2026
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 privatenodespace-syncrepo, soproSync.isPronever 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.mstomar125 commentedon Sep 10, 2026
Labs section — done
PR #2554 adds the
labsSettings category (settings-sidebar.svelte+settings-pane.svelterouting → newLabsSettingscomponent underlib/components/settings/sections/) with the AI Chat placeholder and the disabled "Team synchronization · In development" entry, per the acceptance criteria. Not wired topro-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.sveltefromapp-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:pro_initiate_oauth, both "Continue with Google" and "Sign in with email") for a user who has never signed in / is signed out<email>", Sign out)Evidence:
grep -rl pro_initiate_oauth packages/desktop-app/srcreturns onlypro-sync-pill.svelteandpro-relogin-modal.svelte. The relogin modal is not a substitute: it's only shown automatically when the daemon reportsAUTH_REQUIRED(a previously-signed-in session whose token lapsed) — there's no modal contribution at all for the freshsign-invariant (see the state table inpro-plugin.ts's header comment), so a never-signed-in user has nothing to click without the pill.src-tauri/src/lib.rs,onboarding-wizard.svelte, and grepped the whole frontend forsign in/Sign In/startSignIn.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 thepro-plugin.tsregistrations forpro-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 theconsentvariant (signed in, sync not yet enabled) inpro-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.
mstomar125 commentedon Sep 15, 2026
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 ofpro-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/mainjust now:proSync.signOut()is called only frompro-sync-pill.svelte:187)InvitationsInboxis imported and rendered only insidepro-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.sveltefromapp-shell.svelte's overlay slot per the issue's original acceptance criteria. Will also resolve the adjacentenable-sync-pill.sveltefinding from the prior comment (third pill in the same slot, not named in the original criteria).Unblocking — moving to Todo, self-assigning.
mstomar125 commentedon Sep 15, 2026
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-slotinapp-shell.svelteno longer renderspro-sync-pill.svelteorpro-teaser-pill.svelteadd-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 inapp-shell.svelte, just contributes nothing nowapp-shell.svelte(confirmed viatsc --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:fixclean (0 errors/warnings),bun run test:allpasses (unit + browser + Rust + e2e, via the full pre-push gate).Adjacent decision:
enable-sync-pill.svelteAlso 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 sameconsentvariant, so no replacement surface was needed.Non-obvious findings
disabled={signingOut}guard, only Sign out does — verified this gap already existed in the deletedpro-sync-pill.svelte, not a regression, but worth a small follow-up polish.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.mstomar125 commentedon Sep 15, 2026
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 readproSync.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 topro_current_person()(global daemon identity), the same fixadd-synced-database-dialog.sveltealready uses for this exact trap — with a regression test covering it.The review also caught that deleting
enable-sync-pill.sveltenarrowed "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.