Point staging version link to corresponding commit on GitHub (#7529)

* Add the 'Download the app' button back on web
Fixes #7527

* Fix staging release link in desktop app
Fixes #7513

* Update snapshots

* Update snapshots

* Update snapshots

* Add ref parsing logic and unit test

* Oops

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Pierre Jacquier
2025-06-19 11:30:28 -04:00
committed by GitHub
parent 23a01e86e6
commit d510e58ebc
18 changed files with 28 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import type { StatusBarItemType } from '@src/components/StatusBar/statusBarTypes'
import type { Location } from 'react-router-dom'
import { PATHS } from '@src/lib/paths'
import { APP_VERSION } from '@src/routes/utils'
import { APP_VERSION, getReleaseUrl } from '@src/routes/utils'
import {
BillingRemaining,
BillingRemainingMode,
@ -28,7 +28,7 @@ export const defaultGlobalStatusBarItems = ({
id: 'version',
element: 'externalLink',
label: `v${APP_VERSION}`,
href: `https://github.com/KittyCAD/modeling-app/releases/tag/v${APP_VERSION}`,
href: getReleaseUrl(),
toolTip: {
children: 'View the release notes on GitHub',
},