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
+3
-1
@@ -73,7 +73,7 @@ import {
|
||||
import { displayTitle, sortSessions } from "@/lib/chat-groups";
|
||||
import { deriveTitle } from "@/lib/format";
|
||||
import { NanobotClient } from "@/lib/nanobot-client";
|
||||
import { BrowserNotifications } from "@/components/BrowserNotifications";
|
||||
import { BrowserNotifications, useBrowserNotificationLifecycle } from "@/components/BrowserNotifications";
|
||||
import { ThreadMessageCache } from "@/lib/thread-message-cache";
|
||||
import { FilePreviewStore } from "@/hooks/useFilePreviewState";
|
||||
import { ClientProvider, useClient } from "@/providers/ClientProvider";
|
||||
@@ -176,6 +176,7 @@ const SETTINGS_SECTION_KEYS: SettingsSectionKey[] = [
|
||||
"overview",
|
||||
"about",
|
||||
"appearance",
|
||||
"notifications",
|
||||
"models",
|
||||
"image",
|
||||
"voice",
|
||||
@@ -938,6 +939,7 @@ function resolveRuntimeSurface(
|
||||
|
||||
export default function App() {
|
||||
useAppViewport();
|
||||
useBrowserNotificationLifecycle();
|
||||
const { t } = useTranslation();
|
||||
const [state, setState] = useState<BootState>({ status: "loading" });
|
||||
const bootstrapSecretRef = useRef("");
|
||||
|
||||
Reference in new issue
Block a user