From ae709f51b8ebf4a104c0195032bfc8d839390c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Ros?= <1165805+sebastienros@users.noreply.github.com> Date: Tue, 29 Sep 2026 14:42:46 -0700 Subject: [PATCH 1/7] Show stable Aspire version and release notes link in Install CLI modal Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../src/components/InstallCliModal.astro | 52 +++++++++++++++++++ .../unit/custom-components.vitest.test.ts | 7 +++ 2 files changed, 59 insertions(+) diff --git a/src/frontend/src/components/InstallCliModal.astro b/src/frontend/src/components/InstallCliModal.astro index 9e7622674..53e4c3351 100644 --- a/src/frontend/src/components/InstallCliModal.astro +++ b/src/frontend/src/components/InstallCliModal.astro @@ -1,12 +1,20 @@ --- import { Code, Icon, Aside } from '@astrojs/starlight/components'; import CustomSelect, { type CustomSelectOption } from '@components/CustomSelect.astro'; +import { + currentAspireMajorMinorVersion, + currentAspireVersion, +} from '../../config/aspire-versions.mjs'; interface Props { id?: string; } const { id = 'install-cli-modal' } = Astro.props; + +// Major releases omit the minor suffix (for example, /whats-new/aspire-13/). +const [major, minor] = currentAspireMajorMinorVersion.split('.'); +const releaseNotesHref = `/whats-new/aspire-${major}${minor === '0' ? '' : `-${minor}`}/`; const channelOptions: CustomSelectOption[] = [ { value: 'release', @@ -37,6 +45,15 @@ const channelOptions: CustomSelectOption[] = [