Skip to content

Trim the notification engine's options, IPC and leftovers, and put snooze on one line - #16296

Merged
ryanrhughes merged 14 commits into
quattrofrom
brave-origin-notifications
Oct 22, 2026
Merged

ryanrhughes merged 14 commits into
quattrofrom
brave-origin-notifications

Conversation

@ryanrhughes

Copy link
Copy Markdown
Collaborator

More trims and fixes to the notification engine, on top of #16277.

Fixes:

  • Brave Origin: Basecamp and other web notifications from Brave Origin now lose their leading app.basecamp.com link and group by site, like Chrome's. Clicking one finds the right Brave tab.
  • Snooze menu: the right-click menu is one line, "Snooze 15m 1h Tomorrow", without Do Not Disturb. Hovering a card also shows a zzz beside the ✕ that opens it.

Trims:

  • Options: the notifications settings in shell.json go from 21 to 5: displayMode/displayName, fullscreenOverlay (all or off), offerSnoozeWhenSharing and historyHours. The rest are fixed:
    • Text size and the edge gap follow the desktop.
    • Snooze is fixed at 15m, 1h and tomorrow at 8.
    • The time format follows the locale.
    • The panel limits are constants.
    • The codes setting lives only in the panel.
    • Gone entirely: the countdown bar, button alignment, the Settings-button and smart-raise switches, and the "Open in app" fallback.
    • The preferences page has three controls.
    • An old value for a removed key is ignored, and the Steam-only fullscreen mode falls back to all.
  • One stack per source: the "everything in one stack" mode and its "+N" badge are gone.
  • IPC: 12 methods nothing calls, including Notification polish and trims after Omapager #16277's new copyCode, and the "open on the preferences page" panel path. expand and probe stay for scripts and visual checks.
  • Buttons: card buttons wrap onto a second line instead of folding extras under More. The button measuring, the More list and its string are gone.
  • Icon override folder: ~/.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.
  • 4.0 cleanup by migration: removing 4.0's leftover popups, history/ and images/ runs once instead of at every shell start. It also carries 4.0's Do Not Disturb into quiet.json.
  • Demo: omarchy dev notification demo is one run that shows everything: a stack building, a code, a link, and the system apps. No scenes or flags.
  • Expiry timer: with no countdown bar, the per-card expiry timer ticks every 500ms instead of 100ms.

Verified in the running shell on one display:

  • the preferences page;
  • the snooze row, glyph-only and with a body;
  • the zzz on hover;
  • the wrapped buttons;
  • a link in the body with Copy code beside the sender's buttons;
  • the demo run.

notifications-test.sh, i18n-test.sh and ./test/cli pass.

🤖 Generated by Opus 5.5 in Claude Code.

@greptile-apps

greptile-apps Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes stay within the desktop notification workflow.

Restore saved Do Not Disturb for sessions started before migration before merging.

Findings

  1. P1 Saved quiet setting is ignored ▶

Summary

This PR simplifies notification settings, buttons, snooze choices, and IPC.

  • Notifications from each app or site stay in their own stack.
  • Notification cards offer a short snooze row and wrapped buttons.
  • Notification preferences keep only display, fullscreen, sharing, and history choices.
  • The notification service exposes fewer IPC calls and panel routes.
  • A one-time migration clears old notification files and carries over Do Not Disturb.
  • Notification icons now come from sender images, icon themes, or desktop entries.
  • The notification demo runs one fixed sequence of sample cards.
  • Notification cards check their expiry every 500 milliseconds.

ryanrhughes explicitly describes removing options, IPC methods, icon overrides, and demo flags as intentional.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[New shell starts before migration] --> B[Reads empty quiet.json]
  B --> C[Do Not Disturb stays off]
  C --> D[User runs migration]
  D --> E[Migration writes saved setting]
  E --> F[Running shell does not read it again]
  F --> G[Quiet returns only after shell restart]
Loading

Reviews (1) · Last reviewed commit: "Merge remote-tracking branch 'origin/qua..." · Reviewed by Greptile

Comment on lines 1307 to +1309
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))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants