feat: add project visibility settings for scans and floorplans (#106)

- Add show_scans_public and show_guides_public columns to projects table
- Add visibility toggles to editor sidebar settings panel (auto-save)
- Add visibility toggles to project settings dialog (auto-save)
- Propagate settings to community viewer (hide scans/guides for non-owners)
- Add updateProjectVisibility server action
- Fix username onboarding dialog stuck after DB reset (validate update affected rows)
- Add error handling to UsernameGate for stale sessions

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Aymeric Rabot
2026-02-19 16:59:23 -05:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 659c01052e
commit f4f9f8a220
12 changed files with 1253 additions and 68 deletions
@@ -0,0 +1,2 @@
ALTER TABLE "projects" ADD COLUMN "show_scans_public" boolean DEFAULT true NOT NULL;--> statement-breakpoint
ALTER TABLE "projects" ADD COLUMN "show_guides_public" boolean DEFAULT true NOT NULL;
File diff suppressed because it is too large Load Diff
+7
View File
@@ -22,6 +22,13 @@
"when": 1771478645202,
"tag": "20260219052405_add-social-profile-fields",
"breakpoints": true
},
{
"idx": 3,
"version": "7",
"when": 1771536409437,
"tag": "20260219212649_young_dragon_man",
"breakpoints": true
}
]
}