Add navigation to Software Updates when the updates toast is tapped and fix update count display - #5291
Open
Gabriel Dufresne (GabrielDuf) wants to merge 3 commits into
Open
Conversation
Copilot started reviewing on behalf of
Gabriel Dufresne (GabrielDuf)
August 17, 2026 18:39
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Improves update notification navigation and sidebar count clarity.
Changes:
- Adds launch actions for update notifications.
- Makes in-app toast bodies clickable.
- Caps update badge text at
99+.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
SidebarView.axaml |
Updates badge layout and binding. |
MainWindow.axaml.cs |
Routes clickable toasts to Updates. |
InfoBar.axaml.cs |
Handles toast body taps. |
InfoBar.axaml |
Adds clickable styling and tap event. |
SidebarViewModel.cs |
Produces capped badge text. |
InfoBarViewModel.cs |
Adds optional body command. |
WindowsAppNotificationBridge.cs |
Passes launch actions to fallback banners. |
MacOsNotificationBridge.cs |
Adds update launch-action plumbing. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
This pull request introduces improvements to the notification and toast system, enhances badge display in the sidebar, and adds support for clickable notification bodies. The main changes include adding a "launch action" to notifications (allowing, for example, a toast to navigate to the Updates tab when clicked), updating the sidebar badge to display "99+" when the count is high, and making InfoBar notifications optionally clickable.
Notification and Toast System Improvements:
launchActionparameter to notification delivery methods inMacOsNotificationBridgeandWindowsAppNotificationBridge, enabling actions such as navigating to the Updates tab when a notification is clicked. (src/UniGetUI.Avalonia/Infrastructure/MacOsNotificationBridge.cs)MainWindow.ShowRuntimeNotificationandShowBannerto accept and process thelaunchActionparameter, wiring up navigation logic for the "ShowOnUpdatesTab" action. (src/UniGetUI.Avalonia/Views/MainWindow.axaml.csSidebar Badge Enhancements:
Modified the sidebar updates badge to display "99+" if the count exceeds 99, reduced font size for better fit, and ensured the badge text updates reactively. (
src/UniGetUI.Avalonia/ViewModels/SidebarViewModel.cs);Added support for making InfoBar bodies clickable when a command is provided, including visual feedback (cursor change) and event handling to execute the command without interfering with existing buttons. (
src/UniGetUI.Avalonia/ViewModels/InfoBarViewModel.csThese changes collectively improve notification interactivity and visual clarity in the application.