Skip to content

feat: show if current version is latest one#1547

Merged
peppescg merged 5 commits intomainfrom
show-latest-version-info
Feb 16, 2026
Merged

feat: show if current version is latest one#1547
peppescg merged 5 commits intomainfrom
show-latest-version-info

Conversation

@peppescg
Copy link
Copy Markdown
Collaborator

@peppescg peppescg commented Feb 3, 2026

Align version and cli tabs on new rebranding style

Screenshot 2026-02-16 at 11 11 29Screenshot 2026-02-16 at 11 29 46
Screenshot 2026-02-16 at 11 29 56

@peppescg peppescg self-assigned this Feb 3, 2026
Copilot AI review requested due to automatic review settings February 3, 2026 12:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a UI indicator in Settings to show when the installed Desktop UI version matches the latest available version.

Changes:

  • Extended AppVersionInfo with a new isLatestVersion boolean.
  • Derived isLatestVersion in useAppVersion() and displayed a “latest version” label in the Version settings tab.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
renderer/src/common/hooks/use-app-version.ts Adds isLatestVersion to the version info returned by the React Query hook.
renderer/src/common/components/settings/tabs/version-tab.tsx Updates the Desktop UI version badge to optionally show a “latest version” label.

Comment thread renderer/src/common/hooks/use-app-version.ts Outdated
Comment thread renderer/src/common/components/settings/tabs/version-tab.tsx Outdated
Comment thread renderer/src/common/components/settings/tabs/version-tab.tsx Outdated
Comment thread renderer/src/common/hooks/use-app-version.ts Outdated
@peppescg peppescg enabled auto-merge (squash) February 3, 2026 16:16
@samuv
Copy link
Copy Markdown
Collaborator

samuv commented Feb 4, 2026

Instead of the text, wouldn’t it be better to use a green tag on the side that just says “latest”?
I feel like the text in parentheses doesn’t have a lot of impact

@peppescg
Copy link
Copy Markdown
Collaborator Author

peppescg commented Feb 4, 2026

Instead of the text, wouldn’t it be better to use a green tag on the side that just says “latest”? I feel like the text in parentheses doesn’t have a lot of impact

yeah you're right I don't have a strong opinion.
I also forgot to share this PR 😆 cause I am not totally convinced about it (probably I would move the default update flow to manual update, cause also if the user do not wants to upgrade, the next time that will restart the app he will find the new one, so he doesn't have the full control...and moving the default flow to manual there will be always the notification and icon for new update available, and in this case you shouldn't need a latest label)

@jtenniswood we can add the a green tag on the right side with latest, wdyt?

peppescg and others added 5 commits February 16, 2026 10:59
- Fix version comparison to use !isNewVersionAvailable instead of
  direct string equality to avoid issues with 'v' prefix mismatch
- Fix spacing in "(latest version)" label
- Add tests for isLatestVersion display behavior
- Update test mocks to include isLatestVersion property

Co-authored-by: Cursor <cursoragent@cursor.com>
Use !isNewVersionAvailable directly instead of maintaining
a separate isLatestVersion field, simplifying the interface
and reducing redundancy.

Co-authored-by: Cursor <cursoragent@cursor.com>
@peppescg peppescg force-pushed the show-latest-version-info branch from 173afd3 to db4aa80 Compare February 16, 2026 10:40
Copy link
Copy Markdown
Collaborator

@samuv samuv left a comment

Choose a reason for hiding this comment

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

nice!

@peppescg peppescg merged commit 2fafe92 into main Feb 16, 2026
16 of 17 checks passed
@peppescg peppescg deleted the show-latest-version-info branch February 16, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants