Repository navigation
Remove tenant and sync wording shown to free users in Database settings - #3377
Conversation
d603456 to
604e802
Compare
Pragmatic code review (medium, initial review): APPROVE, review cleanScope: 2 files, matches the issue. No Critical findings, no code defects. Acceptance criteria
Findings
Also confirmed: no other user-visible tenant / sync / cloud / workspace copy remains in |
Address review
While adding the docstring line the ratchet measurement caught my own mistake: the first wording contained the word "tenant", which added a The follow-up is test-only (one assertion and one comment) and is mutation-checked, so I did not run a second full review. Branch rebased onto |
…al copy The explainer paragraph under "Databases" now describes a database as a separate local store and says opening one switches the app to it, with no tenant, sync, cloud or workspace wording. The per-row badge block renders only for a database bound to a tenant, so an unbound database shows no "Local only · not synced" label and no empty wrapper. Adds a test that renders the settings section and asserts the removed wording is absent, with its needles built from fragments so the check adds no line to the Pro-boundary ratchet. Co-Authored-By: Claude Sonnet 5 <[email protected]>
The neutral-copy test now also checks that the row's info column holds no badge wrapper, so moving the conditional back inside an always-rendered wrapper fails it even though the visible text is unchanged. The test file header notes the new check. Co-Authored-By: Claude Sonnet 5 <[email protected]>
604e802 to
a17ac0f
Compare
Closes #3324
Summary
Settings → Database showed cloud-tenant wording to every free user. This removes it:
{#if db.boundTenantSchema}around the wrapper<div>. The{:else}branch ("Local only · not synced") is gone, and an unbound database renders no empty badge wrapper under the status line.{#if}.tenantLabel(), the bound badge, the "Add synced database…" button and theproSync/labsFlagsimports are untouched (out of scope, Delete the Add synced database dialog and tenant badge from Database settings #3326).Tests
describes databases in neutral, local-only termsindatabase-settings.test.ts. It renders the section, waits for the implicit "Default" database, and asserts (1) the text has none of the removed wording, with the needle built from fragments so the test adds no line to the Pro-boundary ratchet, and (2) the row's info column holds no.mt-1.5badge wrapper, not even an empty one.{:else}"Local only · not synced" branch (text assertion){#if}back inside an always-rendered wrapper with the unbound text removed (structural assertion only:expected <div class="mt-1.5 text-xs"></div> to be null)bun run --cwd packages/desktop-app quality:fixis clean (eslint, design tokens, svelte-check: 0 errors, 0 warnings).bun run test:changedpasses (frontend + browser tier) on the rebased tree.Ratchet (Pro-boundary check)
scripts/check-pro-boundary.tsis PR #3376 (#3299) and is not onmainyet, so there is noBASELINESto lower in this diff. I ran #3376's checker against plainorigin/mainand against this branch, both atfaf64e3b:tenantWording(Marker counts on main already sit below #3376's recorded baselines for
proEvents87 -> 81,cloudWording89 -> 88 andproWording314 -> 312, because #3373 landed after #3376 branched. That is #3376's rebase to settle, not this PR's.)Merge order. Whichever of #3376 and this PR lands second must carry the baseline change:
BASELINES.tenantWordingby 3 from whatever Add the Pro-boundary ratchet check and the Pro/sync placement rule #3376 holds then, or the checker fails.tenantWordingto 504 in its own rebase.Deviation from the issue
None in the code. The only deviation is the ratchet step above: the check does not exist on
main, so theBASELINESlowering the issue's step 4 asks for is deferred to whichever change lands second.Notes
database.rowcontribution ships, Pro users lose the explainer and the "Local only · not synced" label on unbound databases. This is cosmetic, and bound databases keep their "Syncs to tenant · X" badge.dev:browsercheck was not run in this session. The behaviour is covered by the rendered-DOM test above.🤖 Generated with Claude Code