Repository navigation
Trim the notification engine's options, IPC and leftovers, and put snooze on one line - #16296
Conversation
…ications # Conflicts: # bin/omarchy-dev-notification-demo # default/i18n/en/shell.json # docs/notifications.md # manual/10-notices.md # shell/plugins/notifications/Detect.js # shell/plugins/notifications/NotificationPanel.qml # shell/plugins/notifications/Service.qml # shell/plugins/notifications/Settings.js # shell/plugins/notifications/Store.js # shell/plugins/notifications/Toast.qml # test/shell.d/notifications-test.sh # test/shell.d/notifications/logic.cjs
[Medium impact] The changes stay within the desktop notification workflow. Restore saved Do Not Disturb for sessions started before migration before merging. Findings
SummaryThis PR simplifies notification settings, buttons, snooze choices, and IPC.
ryanrhughes explicitly describes removing options, IPC methods, icon overrides, and demo flags as intentional.
|
| function loadQuiet(text) { | ||
| if (quietLoaded || legacyQuietWanted) return | ||
| if (String(text || "").trim()) applyQuiet(Store.parseQuiet(text)) | ||
| else legacyQuietWanted = true | ||
| if (quietLoaded) return | ||
| applyQuiet(Store.parseQuiet(text)) |
There was a problem hiding this comment.
Saved quiet setting is ignored
When the new shell starts before a user's migrations run, such as a second account on an updated machine, loadQuiet() reads an empty quiet.json and leaves Do Not Disturb off. The migration later imports the saved setting, but quietLoaded prevents the running shell from reading it again. Notifications appear despite the saved setting, even after the migration runs, until the shell restarts.
Keep the startup fallback until the old setting has been imported, or make the running shell pick up that import.
More trims and fixes to the notification engine, on top of #16277.
Fixes:
app.basecamp.comlink and group by site, like Chrome's. Clicking one finds the right Brave tab.Trims:
notificationssettings inshell.jsongo from 21 to 5:displayMode/displayName,fullscreenOverlay(alloroff),offerSnoozeWhenSharingandhistoryHours. The rest are fixed:all.copyCode, and the "open on the preferences page" panel path.expandandprobestay for scripts and visual checks.~/.config/omarchy/notifications/icons/is gone. An icon under the same name in~/.local/share/icons/hicolor/is still found through the icon theme, unless the active theme has its own.history/andimages/runs once instead of at every shell start. It also carries 4.0's Do Not Disturb intoquiet.json.omarchy dev notification demois one run that shows everything: a stack building, a code, a link, and the system apps. No scenes or flags.Verified in the running shell on one display:
notifications-test.sh,i18n-test.shand./test/clipass.🤖 Generated by Opus 5.5 in Claude Code.