Repository navigation
DB/tenant Settings UI: switcher→Settings, per-row bound tenant, reload-persist - #1725
Merged
mstomar125 merged 1 commit intoJul 23, 2026
Merged
Conversation
…d-persist (closes #1722) - Settings entry below Favorites in the sidebar (layout nav item + navigation-sidebar handler → shared open-settings.ts). - The top-left database switcher becomes a read-only indicator that opens Settings → Database (no inline tenant switching); the Database settings section explains a database is a local store syncing to one cloud tenant, shows per row "Syncs to tenant · X" / "Local only", and switches via an explicit Open button. - Per-row bound tenant is full-stack: DatabaseInfo.bound_tenant_schema (proto), populated by the daemon's database_service.rs, surfaced through the Tauri commands/database.rs DTO and the database.svelte.ts store, rendered per row — so a database and its tenant are never confused. - Reload-persist: the active database is remembered in localStorage and restored on load, so a refresh no longer snaps back to the default database. Builds on Slice C (#1714). Follow-ups: #1720 (multi-DB-per-tenant design), #1721 (invitations popup gating). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Contributor
Author
|
APPROVE (after fixing 2 type-gate blockers an independent review caught)
Everything else verified correct by the review:
Non-blocking notes: |
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.
What
The Database/Tenant management UI (ADR-053), plus fixes so switching is clear and sticky. Closes #1722.
Changes
layout.svelte.tsnav item +navigation-sidebar.sveltehandler → sharedopen-settings.ts).DatabaseInfo.bound_tenant_schemaadded to the proto, populated by the daemon'sdatabase_service.rs, surfaced through the Tauricommands/database.rsDTO and thedatabase.svelte.tsstore, and rendered in the settings row — so a database and its tenant are never confused.localStorageand restored on load, so a refresh no longer snaps back to the default database.Testing
bun run test(frontend) green, incl. updatedlayout.test.ts(nav now has the Settings item). Daemon/proto compile; per-row tenant verified live (registry rows show their bound tenant).Notes / follow-ups
Multiple-databases-per-tenant (design) is tracked in NodeSpaceAI/nodespace-sync#522; the local-storage invitations popup gating in #1721. Builds on Slice C (#1714, merged).
🤖 Generated with Claude Code