From dd33a62b220d7336c531cbe57502d62e8df92519 Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Sun, 22 Mar 2026 04:49:10 +0100 Subject: [PATCH] fix: replace inline save banners with toast notifications Removes layout-shifting "Settings saved" / "Role saved" inline banners from 5 settings panels. Uses existing addToast from uiStore instead. Error banners kept inline. --- .gitignore | 3 + .../src/components/modals/UserSettings.tsx | 7 +- .../modals/settingsPanels/AccountPanel.tsx | 127 ------------------ .../modals/settingsPanels/DesktopPanel.tsx | 127 ++++++++++++++++++ 4 files changed, 136 insertions(+), 128 deletions(-) create mode 100644 packages/web/src/components/modals/settingsPanels/DesktopPanel.tsx diff --git a/.gitignore b/.gitignore index 4420235e..811fa9c4 100644 --- a/.gitignore +++ b/.gitignore @@ -53,5 +53,8 @@ tmp/ # Worktrees .worktrees/ +# Superpowers brainstorm artifacts +.superpowers/ + # Local files Gemini Starter.rtf diff --git a/packages/web/src/components/modals/UserSettings.tsx b/packages/web/src/components/modals/UserSettings.tsx index 51c8623c..71525edc 100644 --- a/packages/web/src/components/modals/UserSettings.tsx +++ b/packages/web/src/components/modals/UserSettings.tsx @@ -7,10 +7,12 @@ import { AccountPanel } from './settingsPanels/AccountPanel'; import { VoicePanel } from './settingsPanels/VoicePanel'; import { PrivacyPanel } from './settingsPanels/PrivacyPanel'; import { ConnectionsPanel } from './settingsPanels/ConnectionsPanel'; +import { DesktopPanel } from './settingsPanels/DesktopPanel'; import { InstancePanel } from './settingsPanels/InstancePanel'; +import { isElectron } from '../../platform/platform'; import { SettingsSectionsProvider, useSettingsSectionsContext } from './SettingsSectionsContext'; -type SettingsTab = 'account' | 'voice' | 'privacy' | 'connections' | 'instance'; +type SettingsTab = 'account' | 'voice' | 'privacy' | 'connections' | 'desktop' | 'instance'; function SidebarSubLinks() { const ctx = useSettingsSectionsContext(); @@ -123,6 +125,7 @@ export function UserSettingsModal() {