Add desktop update release notes tooltip#2520
Conversation
- Add a shared tooltip popup for desktop update states - Link update status to the correct GitHub release notes - Cover latest version and release URL helpers with tests
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
ApprovabilityVerdict: Approved This PR adds a UI enhancement - a richer tooltip for desktop updates showing version information and a release notes link. The changes are self-contained, include unit tests, and don't affect any sensitive code paths. You can customize Macroscope's approvability policy. Learn more. |
Got inspired by VSCode:
What Changed
Why
UI Changes
Checklist
Note
Low Risk
Low risk UI enhancement that reuses existing update state to build GitHub release-note URLs; main risk is incorrect URL/tag formatting for edge-case versions/channels.
Overview
Adds a shared
DesktopUpdateTooltipPopupfor desktop updates that shows state-specific title, current/latest versions, and a Release Notes button that opens the matching GitHub release (with toast error handling if opening fails).Extends
desktopUpdate.logicwith helpers to compute the latest version and derive the correct release notes URL (stable vs nightly tag format), replaces the simple tooltip copy in Settings and the Sidebar update pill with the new popup, and adds unit tests covering the new URL/version helpers.Reviewed by Cursor Bugbot for commit 2f2ee1e. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add release notes tooltip to desktop update UI with version info and external link
DesktopUpdateTooltipPopupcomponent that replaces simple text tooltips in the sidebar update pill and settings About section with a richer UI showing current/latest versions, a state-derived title, and a 'Release Notes' button.getDesktopUpdateReleaseNotesUrlto build a tag-specific GitHub Releases URL based on update channel (nightly vs stable) andgetDesktopUpdateLatestVersionto resolve the newest known version from update state.api.shell.openExternaland shows an error toast on failure.Macroscope summarized 2f2ee1e.