From 6fb14d5544fffc5cdff670491937f20e59719c0c Mon Sep 17 00:00:00 2001 From: Mark Greene Date: Sun, 4 Oct 2026 14:36:18 +1300 Subject: [PATCH] Fix: footer game version and CDN label The footer showed the game's full version with its build number and labelled the environment as "CDN". Show only the part of the game version before the underscore (e.g. 11.20), and rename the "CDN" label to "Branch" since it shows the environment/branch the site was built from. --- packages/website/src/components/Footer.astro | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/website/src/components/Footer.astro b/packages/website/src/components/Footer.astro index 3bcd19c6c..ff2f490d3 100644 --- a/packages/website/src/components/Footer.astro +++ b/packages/website/src/components/Footer.astro @@ -12,6 +12,7 @@ export interface Props { } const gameDefinitions = await api.gameDefinitions(); +const gameVersion = gameDefinitions.version.split("_")[0]; const environment = assertSecret(import.meta.env.PUBLIC_ENVIRONMENT); const { locale } = Astro.props; const strings = getStrings(locale); @@ -141,7 +142,7 @@ const strings = getStrings(locale); ) } - CDN + Branch @@ -151,7 +152,7 @@ const strings = getStrings(locale); { environment !== "preview" && ( - {gameDefinitions.version} + {gameVersion} ) } @@ -174,13 +175,13 @@ const strings = getStrings(locale); WoTB - {gameDefinitions.version} + {gameVersion} ) } - CDN + Branch {environment}