Repository navigation
feat: Botloft near the clock, Windows notifications and opening at sign-in - #43
Merged
Merged
Conversation
…gn-in With the bots working after the window closes, Botloft keeps an icon in the notification area: what the bots are doing in the tooltip, a dot when something waits, a click to open, and Open, Pause every crew and Quit. Closing the window then only hides it. Windows notifications say when a bot needs the owner (and, if wanted, when one finishes) while Botloft is not in front, with the Windows sound or none; in front, a short chime. Coming back from a notification opens that bot. The window starts hidden and shows unless Windows opened the app at sign-in (--autostart) and Botloft waits near the clock. The app opens at sign-in through the Run key, quoted for paths with spaces, when the bots start with Windows and the owner wants the icon or the window; a release build keeps a single instance, which a second launch brings forward. The uninstaller removes the Run value. Settings gets the two switches in General and a Notifications part; the daemon's settings live in the app store.
# Conflicts: # app/src/features/account/GeneralSettings.tsx # docs/spec.md
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.
Stacked on #42 (itself on #41).
What
How
visible: false.setupshows it unless the app was started with--autostart. In that case the app shows it if the owner wants the window, or if anything goes wrong before connecting, so it can never get stuck invisible.sign_in.rs, withwinreg) as"<app>" --autostart, quoted.tauri-plugin-autostartwrites the path without quotes, which splits atC:\Users\Ana Lima\....tauri-plugin-single-instance, in release builds only, so the dev app still runs next to the installed one. A second launch (Start menu, a notification) brings the running app forward and emitsbotloft://reopened.TrayIconandMenufrom@tauri-apps/api, with updates queued so two quick changes never create two icons.tauri-plugin-notificationshows the notifications.Tests
pnpm checkpasses (176 tests).cargo clippy -D warningspasses forbotloft-appin both debug and release, and its tests pass (including the quoting test).Real test (
pnpm tauri devon the dev data folder, Windows 11)tray_icon_appwindow existed).Manual steps still open