Repository navigation
Remove the top-right NodeSpace Pro pill; add Settings > Account - #2627
Merged
Merged
Conversation
The top-right pro-sync-pill / pro-teaser-pill overlay was the app's only entry point for signing out and opening the Invitations inbox manually (sign-in itself is already independently reachable from the Add-synced- database dialog in Settings > Database). Add a minimal Settings > Account section that shows the signed-in email, a Sign out button, and an Invitations button, so removing the pill doesn't strand a signed-in user. Remove pro-sync-pill.svelte, pro-teaser-pill.svelte, and their app-shell-overlay registrations in pro-plugin.ts. Also remove enable-sync-pill.svelte (the third pill in the same overlay slot, for the signed-in-not-consented state): collaboration-locked.svelte's existing "Turn on sync" button already reopens the same publish-consent modal for that variant, so a fourth account-only surface isn't needed to reach it. Not carried over: the removed pill's auto-show-Invitations-for-a-signed- in-user-with-no-collection-access nudge — it was tied to the pill being always-mounted in the app chrome and doesn't map onto a settings page a user visits deliberately. Update collaboration-locked.svelte's sign-in copy to point at Settings > Database instead of the removed toolbar pill, and the overlay slot's doc comments in app-shell.svelte / pro-plugin.ts to reflect the removal. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Closed
12 tasks
… reachability
account-settings.svelte's signed-in check read proSync.userEmail, which
pro-sync.svelte.ts forces empty for any database with no bound tenant
(ADR-053) regardless of the daemon's actual global OAuth session — a
genuinely signed-in Pro user with a local-only active database would see
"Signed out" and lose Sign out/Invitations entirely. Switch to the same
fix add-synced-database-dialog.svelte already uses for this exact trap:
check the daemon's global identity directly via pro_current_person(),
with a brief "Loading…" state while it resolves.
Also close a reachability gap introduced by deleting enable-sync-pill.svelte:
it was the only globally-reachable way to reopen the first-Pro consent modal
after a decline. collaboration-locked.svelte's "Turn on sync" button reopens
the same modal but only exists inside a specific collection's Collaboration
tab. Add the same action to Settings > Account for the 'consent' variant, so
reopening consent doesn't require navigating into a collection first.
Add disabled={signingOut} to the Invitations button (the Sign out button
already had it), add cleanup()/membership.reset() to account-settings.test.ts's
afterEach (both present in every deleted predecessor test file), and add
Settings > Account's own inert-in-community assertion to
free-user-guardrail.test.ts per that suite's stated convention. Fix two stale
doc-comment cross-references to the deleted pro-sync-pill.svelte.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pro-sync-pill.svelte/pro-teaser-pill.svelteoverlay fromapp-shell.svelte's.pro-sync-pill-slot, and the third pill sharing that slot (enable-sync-pill.svelte), per the acceptance criteria in Add Labs settings section (AI Chat, Team synchronization) and remove NodeSpace Pro badge #2545.account-settings.svelte) that is the sole remaining home for the capabilities that were only reachable through the removed pill: signing out, opening the Invitations inbox manually, and reopening the publish-consent modal (Turn on sync) for a signed-in user who declined it on first sign-in. Sign-in itself is not duplicated there — it already has an independent full flow via Settings > Database > "Add synced database…" (add-synced-database-dialog.svelte, shipped after the original blocking investigation on this issue).pro-plugin.ts,app-shell.svelte,collaboration-locked.svelte,first-pro-consent-slot.svelte,pro-relogin-slot.svelte, andadd-synced-database-dialog.svelteto describe the new state of the overlay slot (now empty, reserved for futureapp-shell-overlaycontributions) and where account access now lives.free-user-guardrail.test.ts,ui-extensions.test.ts, andshared-node-store-eviction.test.tsfor the removed overlay contributions; deletes the three removed components' dedicated test files; addsaccount-settings.test.ts(9 tests).Why this was previously blocked
An earlier pass on #2545 found the pill was the sole entry point for sign-in itself and left the removal blocked. Re-validated against current
main: sign-in is no longer pill-exclusive (add-synced-database-dialog.sveltenow does its own fullpro_initiate_oauthflow), closing the serious part of that blocker. Two narrower capabilities — sign-out and the Invitations inbox — were still pill-only; this PR gives them a home in Settings > Account before removing the pill, so nothing regresses.Decision:
enable-sync-pill.svelteDeleted. It only reopened the publish-consent modal for a signed-in, not-yet-consented Pro user. Settings > Account now carries the same "Turn on sync" action for that state (see the adversarial-review section below — the initial claim that
collaboration-locked.svelte's own button made a replacement unnecessary turned out to be wrong: that button only exists inside a specific collection's Collaboration tab, not globally reachable like the deleted pill was).Second-pass adversarial validation + code review (this session)
Live click-through, beyond the unit tests: launched the real frontend against an isolated daemon (
NODESPACE_HOME/NODESPACED_SOCKETscoped to a scratch dir, never touching live~/.nodespace) viadev-proxy+vite dev, driven with headless Playwright. Confirmed.pro-sync-pill-slotrenders empty on load (no pill anywhere), the Settings sidebar showsDatabase, Account, Display, AI Models, Import Sources, Integrations, Labs, Aboutin order, Settings > Account renders the real community-tier "Not available" state live, and the Add-synced-database dialog opens with its sign-in framing intact when Pro is forced on. Re-confirmed via grep thatproSync.signOut()andInvitationsInboxnow have exactly one production call/render site each.Full
/pragmatic-code-reviewpass (extra-high effort, 10 finder angles + verification + gap-sweep) surfaced two real, live-reproducible bugs, which are fixed in the second commit:account-settings.svelte's signed-in check readproSync.userEmail, which is forced empty for any database with no bound tenant (ADR-053) regardless of the daemon's actual global OAuth session — a genuinely signed-in Pro user whose active database happened to be local-only would see "Signed out" and lose Sign out/Invitations entirely. Fixed by switching topro_current_person()(the daemon's global identity), the same fixadd-synced-database-dialog.sveltealready uses for this exact trap. Added a regression test that seeds an unbound active database alongside a real global identity.enable-sync-pill.sveltenarrowed "Turn on sync" reachability to only inside a specific collection's Collaboration tab (see Decision above) — fixed by adding the same action to Settings > Account.Lower-severity/nit findings addressed: missing
disabled={signingOut}on the Invitations button, missingcleanup()/membership.reset()in the new test file'safterEach, a missing "inert in community" assertion infree-user-guardrail.test.ts(its own stated convention), and two stale doc cross-references to the deletedpro-sync-pill.svelte. Two findings were verified as pre-existing (not introduced by this diff — carried forward unchanged from the deleted pill) and left as follow-up candidates rather than fixed here, and one (the auto-show-Invitations nudge) was already an explicit, documented scope decision.bun run test:alland the full pre-push gate (test:coverage, Rust integration tests,test:e2e) pass clean on both commits.bun run quality:fixreports 0 lint/format/type errors.Closes #2545.
🤖 Generated with Claude Code