Skip to content

feat(notifications): detect-and-warn when Windows notifications are off + test button#18

Merged
proofofprints merged 1 commit into
mainfrom
feat/notification-warning
Jun 7, 2026
Merged

feat(notifications): detect-and-warn when Windows notifications are off + test button#18
proofofprints merged 1 commit into
mainfrom
feat/notification-warning

Conversation

@proofofprints
Copy link
Copy Markdown
Collaborator

Why

Windows' per-app / system notification toggle being OFF silently drops toasts — Toast::show() returns Ok but nothing appears, and users can't tell their alerts are being swallowed.

Backend

  • New get_notification_status command queries WinRT ToastNotificationManager::CreateToastNotifierWithId(aumid).Setting()enabled / disabledForApplication / disabledForUser / disabledByGroupPolicy / disabledByManifest (unknown fallback). Non-Windows builds return enabled.
  • Adds the windows crate UI_Notifications feature (the crate is already in the tree via tauri-winrt-notification, so no second copy).

Frontend

  • NotificationBanner.tsx: inline amber warning shown only when disabled — "Windows notifications are off for OverManager — desktop alerts won't appear" — with a button that deep-links to ms-settings:notifications. Re-checks on window focus so it clears once the user flips the toggle back on. Rendered on the Alerts page and in Settings.
  • "Send test notification" button in a new Settings → Desktop Notifications card, calling the existing send_desktop_notification.

Verification

  • cargo check ✅ (WinRT path resolves → feature active) · npx tsc --noEmit
  • Runtime: user to confirm the banner appears when notifications are toggled off for OverManager and the test button produces a toast when on.

…est button

Windows' per-app/system notification toggle being OFF silently drops
toasts (.show() returns Ok, nothing appears) with no way for users to
tell.

- get_notification_status command queries WinRT ToastNotifier.Setting
  (enabled / disabledForApplication / disabledForUser /
  disabledByGroupPolicy / disabledByManifest). Adds the windows crate
  UI_Notifications feature (already in the dep tree).
- NotificationBanner.tsx shows an inline warning that deep-links to
  ms-settings:notifications when disabled; re-checks on window focus.
  Rendered on the Alerts page and in Settings.
- 'Send test notification' button in Settings → Desktop Notifications
  card calls the existing send_desktop_notification command.
@proofofprints proofofprints merged commit d50f932 into main Jun 7, 2026
1 check passed
@proofofprints proofofprints deleted the feat/notification-warning branch June 7, 2026 05:08
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.

1 participant