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:
chengyongru authored and chengyongru committed 2026-10-20 13:45:04 +08:00
1 parent 7b2af031c0
commit 11152626f8
34 files changed
+728 -289

No files matched your search

+24 -9
View File
@@ -665,6 +665,7 @@
"byok": "BYOK",
"overview": "Overview",
"appearance": "Appearance",
"notifications": "Notifications",
"models": "Models",
"providers": "Providers",
"image": "Image",
@@ -772,20 +773,34 @@
"availableCount": "Models available: {{count}}"
},
"notifications": {
"scope": "This browser",
"intro": "Choose how to be notified when a task finishes.",
"pageRequired": "No new alerts when this page is closed, suspended, or disconnected.",
"revoked": "Notification permission was revoked. Notifications are now off. Allow notifications in this browser’s site settings, then turn them on here.",
"retry": "Check again",
"statusOff": "Off",
"statusPermission": "Permission needed",
"statusOn": "On",
"statusBlocked": "Blocked",
"statusRevoked": "Permission revoked",
"statusUnavailable": "Unavailable",
"statusWorker": "Not ready",
"statusBusy": "Checking…",
"statusError": "Could not send",
"test": "Test notification",
"testBody": "This is a test notification from nanobot.",
"testBody": "This is a test notification.",
"waiting": "Waiting for the browser…",
"insecure": "Open nanobot over HTTPS or on localhost to use notifications.",
"unsupported": "This browser cannot send notifications. Try a supported browser. On iPhone or iPad, open nanobot from the Home Screen.",
"denied": "Notifications are blocked. Allow them in this site's browser settings, then try again.",
"unsupported": "This browser doesn’t support notifications. Try another browser; on iPhone or iPad, open nanobot from the Home Screen.",
"denied": "Notifications are blocked. Allow notifications in this browser’s site settings, then turn them on here.",
"dismissed": "Permission was not granted. Turn on notifications and choose Allow.",
"permissionFailed": "Could not request permission. Try again in a supported browser.",
"workerUnavailable": "The notification service is not ready. Reload this page and try again.",
"workerUnavailable": "The notification service is not ready. Check again or reload this page.",
"displayFailed": "The browser could not send the notification. Check site permissions, then try again.",
"submitted": "Sent to the browser. If nothing appears, check system notifications and Do Not Disturb.",
"completed": "Task completed. Open nanobot to view the result.",
"failed": "Task failed. Open nanobot for details.",
"interrupted": "Task needs attention. Open nanobot to continue."
"completed": "Task completed. Click to view the result.",
"failed": "Task failed. Click for details.",
"interrupted": "Task needs attention. Click to continue."
},
"rows": {
"theme": "Theme",
@@ -851,8 +866,8 @@
"fileEditDisplay": "Show edit line counts or expanded changes by default.",
"codeWrap": "Wrap long code lines for easier reading.",
"brandLogos": "Show provider and app logos in Settings.\n\nShow third-party provider and CLI logos in Settings.",
"browserNotifications": "Alert when a task ends or needs attention while this page is in the background. Keep the page open; closed or suspended pages cannot receive new alerts.",
"notificationSound": "Play a sound when replies finish. Off by default.\n\nPlay a short chime when a turn finishes, even when this page is in the background. Off by default.",
"browserNotifications": "Get task status notifications while this page is in the background.",
"notificationSound": "Play a chime when a reply ends, even in the background.",
"maxResults": "Maximum results per search.",
"timeout": "Maximum wait per search, in seconds.",
"jinaReader": "Prefer Jina Reader for reading pages.\n\nUse Jina Reader to read web pages when available.",