From 4beaaacf0e4a0973d7069cdea3beabceaf7c0310 Mon Sep 17 00:00:00 2001 From: Brian Hursey Date: Sat, 28 Nov 2026 18:39:06 +0000 Subject: [PATCH] Hide account and team admin UI in single-user mode The desktop bundle has one local admin and nothing to manage, so the account pill, the account panel and the team administration panel are left out when the server reports local mode. --- src/App.tsx | 10 ++++++++-- src/components/TopBar.tsx | 13 +++++++++---- src/lib/api.ts | 2 ++ 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index f06eb74..efcdb53 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2221,6 +2221,11 @@ export default function App() { ); } + // The Windows desktop bundle runs as one local admin (LUMINARY_LOCAL=1). + // Accounts and team administration have nothing to manage there, so both + // panels and the entry point to them stay out of the UI. + const localMode = cloudHealth?.local === true; + return (
{ setCatalogOpen(false); if (v === 'develop' && !activePhoto) { @@ -2646,7 +2652,7 @@ export default function App() {
)} - {cloudOpen && ( + {cloudOpen && !localMode && ( )} - {adminOpen && cloudUser && ( + {adminOpen && cloudUser && !localMode && ( setAdminOpen(false)} diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index bad5e4d..6d0c634 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -7,6 +7,8 @@ interface Props { selectedCount: number; cloudLabel: string; cloudOn: boolean; + /** Desktop mode has no account, so the team-server button is not shown. */ + localMode?: boolean; onViewChange: (view: ViewMode) => void; onImport: () => void; onExport: () => void; @@ -25,6 +27,7 @@ export default function TopBar({ selectedCount, cloudLabel, cloudOn, + localMode = false, onViewChange, onImport, onExport, @@ -70,10 +73,12 @@ export default function TopBar({
- + {!localMode && ( + + )} {canShare && (