From 1b89c0f7c319008f02f41fac4cd638efe24c0a0f Mon Sep 17 00:00:00 2001 From: Vedank Purohit Date: Thu, 2 Jul 2026 10:11:05 +0530 Subject: [PATCH 1/4] fix(marketing): show platform-appropriate commit shortcut on the website MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hero's "Commit & push" button hardcoded the macOS shortcut (⌘⏎), so Windows and Linux visitors saw the wrong keys. Reuse the existing client-side platform detection in index.astro to swap the label to "Ctrl ⏎" when the detected OS is not macOS. The server-rendered default stays ⌘⏎. Fixes #3526 --- apps/marketing/src/pages/index.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/marketing/src/pages/index.astro b/apps/marketing/src/pages/index.astro index 69de2088d43..477daeb3cb0 100644 --- a/apps/marketing/src/pages/index.astro +++ b/apps/marketing/src/pages/index.astro @@ -254,7 +254,7 @@ const mobileEndorsementRows = [ @@ -403,12 +403,14 @@ const mobileEndorsementRows = [ const label = document.getElementById("download-label"); const ctaBtn = document.getElementById("cta-download-btn") as HTMLAnchorElement | null; const ctaLabel = document.getElementById("cta-download-label"); + const kbd = document.getElementById("pr-button-kbd"); const platform = detectPlatform(); if (!platform) return; document.documentElement.dataset.platform = platform.os; if (label) label.textContent = platform.label; if (ctaLabel) ctaLabel.textContent = platform.label; + if (kbd && platform.os !== "mac") kbd.textContent = "Ctrl ⏎"; try { const release = await fetchLatestRelease(); From c9d5d02b65ff89039ee977077fb5f8bdd63aee47 Mon Sep 17 00:00:00 2001 From: Vedank Purohit Date: Thu, 2 Jul 2026 11:20:48 +0530 Subject: [PATCH 2/4] Match app's Ctrl+Enter shortcut label --- apps/marketing/src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/marketing/src/pages/index.astro b/apps/marketing/src/pages/index.astro index 477daeb3cb0..518cd2b5346 100644 --- a/apps/marketing/src/pages/index.astro +++ b/apps/marketing/src/pages/index.astro @@ -410,7 +410,7 @@ const mobileEndorsementRows = [ document.documentElement.dataset.platform = platform.os; if (label) label.textContent = platform.label; if (ctaLabel) ctaLabel.textContent = platform.label; - if (kbd && platform.os !== "mac") kbd.textContent = "Ctrl ⏎"; + if (kbd && platform.os !== "mac") kbd.textContent = "Ctrl+Enter"; try { const release = await fetchLatestRelease(); From 8155288dbf0d28ca8b916e7c3a6d36ffe54909f3 Mon Sep 17 00:00:00 2001 From: Vedank Purohit Date: Fri, 3 Jul 2026 01:48:52 +0530 Subject: [PATCH 3/4] Use return glyph in non-Mac shortcut badge --- apps/marketing/src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/marketing/src/pages/index.astro b/apps/marketing/src/pages/index.astro index 518cd2b5346..0fd7512620d 100644 --- a/apps/marketing/src/pages/index.astro +++ b/apps/marketing/src/pages/index.astro @@ -406,11 +406,11 @@ const mobileEndorsementRows = [ const kbd = document.getElementById("pr-button-kbd"); const platform = detectPlatform(); + if (kbd && platform?.os !== "mac") kbd.textContent = "Ctrl ⏎"; if (!platform) return; document.documentElement.dataset.platform = platform.os; if (label) label.textContent = platform.label; if (ctaLabel) ctaLabel.textContent = platform.label; - if (kbd && platform.os !== "mac") kbd.textContent = "Ctrl+Enter"; try { const release = await fetchLatestRelease(); From 744ae349f04ceab64e7fecd39738af9957ad780d Mon Sep 17 00:00:00 2001 From: Vedank Purohit Date: Fri, 3 Jul 2026 01:54:21 +0530 Subject: [PATCH 4/4] Keep shortcut fallback platform-scoped --- apps/marketing/src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/marketing/src/pages/index.astro b/apps/marketing/src/pages/index.astro index 0fd7512620d..477daeb3cb0 100644 --- a/apps/marketing/src/pages/index.astro +++ b/apps/marketing/src/pages/index.astro @@ -406,11 +406,11 @@ const mobileEndorsementRows = [ const kbd = document.getElementById("pr-button-kbd"); const platform = detectPlatform(); - if (kbd && platform?.os !== "mac") kbd.textContent = "Ctrl ⏎"; if (!platform) return; document.documentElement.dataset.platform = platform.os; if (label) label.textContent = platform.label; if (ctaLabel) ctaLabel.textContent = platform.label; + if (kbd && platform.os !== "mac") kbd.textContent = "Ctrl ⏎"; try { const release = await fetchLatestRelease();