fix(webui): refine browser notifications (NAN-227)
Reconcile the original notification fix with the integrated main snapshot. Group notification settings and simplify localized copy and documentation. Preserve permission opt-out and notification click routing across app transitions. Suppress late completion notifications for discarded temporary chats and align notification settings skeletons with the loaded layout.
This commit is contained in:
1 parent
7b2af031c0
commit
11152626f8
34 files changed
+728
-289
No files matched your search
@@ -81,8 +81,7 @@ function AppearancePreview() {
|
||||
const [theme, setTheme] = useState<"light" | "dark">("light");
|
||||
const [preferences, setPreferences] = useState(DEFAULT_LOCAL_PREFS);
|
||||
return <><AppearanceSettingsView theme={theme} onToggleTheme={() => setTheme((current) => current === "light" ? "dark" : "light")}
|
||||
localPrefs={preferences} onChangeLocalPrefs={setPreferences}
|
||||
onChangeBrowserNotifications={(enabled) => setPreferences((current) => ({ ...current, browserNotifications: enabled }))} />
|
||||
localPrefs={preferences} onChangeLocalPrefs={setPreferences} />
|
||||
<pre role="status" className="mt-4 overflow-auto rounded-control bg-muted p-4 text-xs">{JSON.stringify({ theme, ...preferences }, null, 2)}</pre></>;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user