feat(desktop): notify on new critical items; keep running in the tray; start at login (Phase 4) - #70
Merged
Merged
Conversation
…; start at login Phase 4 accepts on notifying for new act-today items and surviving a reboot. The hotlist view now raises one OS notification per newly critical item (notice deadlines called out first), remembering what it alerted on across restarts, seeding silently the first time a device sees a project, and summarising bursts. Closing the window hides to the tray instead of quitting, a left click on the tray reopens it, and an account toggle registers Osprey to start in the tray at login. Notifications and autostart are driven from Rust commands, so the webview needs no plugin JS permissions. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Roadmap Phase 4 accepts on "app runs in tray, updates the hotlist live, notifies on new 🔴 items, survives reboot as a service." The tray and the live hotlist existed. Notifications didn't, closing the window quit the app, and nothing started it at login.
What changes
Critical-item notifications
When the hotlist gains an act-today item, Osprey raises an OS notification, once per item.
alerts.ts. The shell only delivers.The notification is raised from a Rust command (
notify_critical) that calls the notification plugin. The webview doesn't need the plugin's JS permissions, so this opens nothing new to page script.Background presence
--background, so Osprey starts in the tray without opening a window.Tests
alerts.test.tsx:HotlistViewraising exactly onenotify_criticalwhen the live socket delivers a new critical item, and none on the initial loadVerification
tscis clean, and all 65 tests pass.cargo fmt --checkandcargo clippy -D warnings, with the newtauri-plugin-notificationandtauri-plugin-autostartcrates (results below).Not verified
Nothing here has run inside a built app. No test shows a real notification or registers a real login item; CI never launches the desktop app. On the next release, check on a real machine that:
🤖 Generated with Claude Code