diff --git a/src/ui/locales/en.json b/src/ui/locales/en.json index 8fc2d478..cd910144 100644 --- a/src/ui/locales/en.json +++ b/src/ui/locales/en.json @@ -3323,6 +3323,8 @@ "resetToDefaultsSuccess": "Settings reset to defaults.", "storageModeSwitch": "Preference Storage", "sectionAccount": "Account", + "desktopProfileTitle": "Automatic local desktop profile", + "desktopProfileDescription": "This profile is restricted to the embedded backend and signs in automatically. It has no login password; Remote Sync below uses a separate server account.", "sectionAppearance": "Appearance", "sectionSecurity": "Security", "sectionApiKeys": "API Keys", diff --git a/src/ui/sidebar/UserProfilePanel.tsx b/src/ui/sidebar/UserProfilePanel.tsx index fa0a4870..feffde02 100644 --- a/src/ui/sidebar/UserProfilePanel.tsx +++ b/src/ui/sidebar/UserProfilePanel.tsx @@ -144,12 +144,13 @@ const LANGUAGES = [ { code: "vi", label: "Tiếng Việt" }, ]; -function AccordionSection({ +export function AccordionSection({ id, label, icon, open, onToggle, + hidden = false, children, }: { id: string; @@ -157,8 +158,11 @@ function AccordionSection({ icon: React.ReactNode; open: boolean; onToggle: () => void; + hidden?: boolean; children: React.ReactNode; }) { + if (hidden) return null; + return (
- - + )} @@ -2032,8 +2050,11 @@ export function UserProfilePanel({ - {/* Security */} + {/* The embedded desktop backend auto-authenticates its machine-local + profile, so server login controls would imply protection they do + not provide. Remote Sync owns its separate account UI above. */}