Skip to content

Add desktop update release notes tooltip - #2520

Closed
juliusmarminge wants to merge 1 commit into
mainfrom
t3code/6f2315db
Closed

Add desktop update release notes tooltip#2520
juliusmarminge wants to merge 1 commit into
mainfrom
t3code/6f2315db

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented May 5, 2026

Copy link
Copy Markdown
Member

Got inspired by VSCode:

image
  • 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

What Changed

Why

UI Changes

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Low Risk
UI-only change to desktop update tooltips and external link handling; no auth, data, or updater core logic changes.

Overview
Desktop update affordances in the sidebar pill and Settings → About now show a VS Code–style tooltip instead of a one-line string.

The new DesktopUpdateTooltipPopup surfaces a status title, the existing tooltip summary, current and latest versions, and a Release Notes control that opens GitHub via shell.openExternal, with an error toast if that fails.

getDesktopUpdateLatestVersion and getDesktopUpdateReleaseNotesUrl build the correct tag URL for stable (v…) vs nightly (nightly-v…) channels, with a fallback to the releases index when no version is known; unit tests cover these helpers.

Reviewed by Cursor Bugbot for commit 5f6f683. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

[!NOTE]

Add release notes tooltip to desktop update UI with version info and external link

  • Adds DesktopUpdateTooltipPopup component 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.
  • Adds getDesktopUpdateReleaseNotesUrl to build a tag-specific GitHub Releases URL based on update channel (nightly vs stable) and getDesktopUpdateLatestVersion to resolve the newest known version from update state.
  • The 'Release Notes' button opens the URL via api.shell.openExternal and shows an error toast on failure.

Macroscope summarized 5f6f683.

@coderabbitai

coderabbitai Bot commented May 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: e59fe119-efcf-4900-855c-be1e657c8243

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch t3code/6f2315db

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels May 5, 2026
@macroscopeapp

macroscopeapp Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: 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.

No code changes detected at 5f6f683. Prior analysis still applies.

You can customize Macroscope's approvability policy. Learn more.

- 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

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Wrong nightly release tag URL
    • Removed the nightly-specific nightly-v prefix branch so both channels use v${latestVersion}, matching the actual tag format produced by the nightly release script.

Create PR

Or push these changes by commenting:

@cursor push 07d5431b7d
Preview (07d5431b7d)
diff --git a/apps/web/src/components/desktopUpdate.logic.test.ts b/apps/web/src/components/desktopUpdate.logic.test.ts
--- a/apps/web/src/components/desktopUpdate.logic.test.ts
+++ b/apps/web/src/components/desktopUpdate.logic.test.ts
@@ -324,7 +324,7 @@
         channel: "nightly",
         availableVersion: "1.1.0-nightly.20260501.17",
       }),
-    ).toBe("https://github.com/pingdotgg/t3code/releases/tag/nightly-v1.1.0-nightly.20260501.17");
+    ).toBe("https://github.com/pingdotgg/t3code/releases/tag/v1.1.0-nightly.20260501.17");
   });
 
   it("falls back to the releases page when no latest version is known", () => {

diff --git a/apps/web/src/components/desktopUpdate.logic.ts b/apps/web/src/components/desktopUpdate.logic.ts
--- a/apps/web/src/components/desktopUpdate.logic.ts
+++ b/apps/web/src/components/desktopUpdate.logic.ts
@@ -88,7 +88,7 @@
     return DESKTOP_UPDATE_RELEASES_URL;
   }
 
-  const tag = state.channel === "nightly" ? `nightly-v${latestVersion}` : `v${latestVersion}`;
+  const tag = `v${latestVersion}`;
   return `${DESKTOP_UPDATE_RELEASES_URL}/tag/${encodeURIComponent(tag)}`;
 }

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit 5f6f683. Configure here.

}

const tag = state.channel === "nightly" ? `nightly-v${latestVersion}` : `v${latestVersion}`;
return `${DESKTOP_UPDATE_RELEASES_URL}/tag/${encodeURIComponent(tag)}`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong nightly release tag URL

High Severity

For the nightly update channel, getDesktopUpdateReleaseNotesUrl builds GitHub release tags with a nightly-v prefix, but nightly releases are published as v plus the full nightly semver (for example v1.1.0-nightly.20260501.17). The Release Notes link targets a tag that does not exist for current builds.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f6f683. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Expo continuous deployment is ready!

  • Project → t3-code
  • Platforms → android, ios
  • Scheme → t3code-preview
  🤖 Android 🍎 iOS
Fingerprint 971e873f513ad97675807fa4bf5eb9577ad935ce 3d9696e1c58021a1749a75e2a781a9012f956663
Build Details Build Permalink
DetailsDistribution: INTERNAL
Build profile: preview:dev
Runtime version: 971e873f513ad97675807fa4bf5eb9577ad935ce
App version: 0.1.0
Git commit: b88199835a15dc7e5e0ffef83754037e58c0ebf3
Build Permalink
DetailsDistribution: INTERNAL
Build profile: preview:dev
Runtime version: 3d9696e1c58021a1749a75e2a781a9012f956663
App version: 0.1.0
Git commit: 2989e216f45f591891d277a0247ccba452fcad42
Update Details Update Permalink
DetailsBranch: pr-2520
Runtime version: 971e873f513ad97675807fa4bf5eb9577ad935ce
Git commit: 5d5de7a1427a9a7a8cdf88e41713bf681dd07287
Update Permalink
DetailsBranch: pr-2520
Runtime version: 3d9696e1c58021a1749a75e2a781a9012f956663
Git commit: 5d5de7a1427a9a7a8cdf88e41713bf681dd07287
Update QR

@t3dotgg

t3dotgg commented Aug 23, 2026

Copy link
Copy Markdown
Member

Note

🤖 GPT-5.6 Sol responding on behalf of Theo

Closing this PR after an automated pass over open pull requests. Trusted maintainer proposal, but desktop release notes already shipped in #3832.

@t3dotgg t3dotgg closed this Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants