From d36373aff271efd91f11823d8c7ba33986408ebf Mon Sep 17 00:00:00 2001 From: ahauy Date: Mon, 9 Nov 2026 15:21:41 +0700 Subject: [PATCH 1/8] chore(web): drop the unused three dependency --- web/package-lock.json | 69 +------------------------------------------ web/package.json | 6 +--- 2 files changed, 2 insertions(+), 73 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index e572f61..0c63f24 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -8,11 +8,7 @@ "name": "flowsnap-web", "version": "0.0.1", "dependencies": { - "astro": "^7.3.1", - "three": "^0.185.1" - }, - "devDependencies": { - "@types/three": "^0.185.4" + "astro": "^7.3.1" }, "engines": { "node": ">=22.12.0" @@ -512,13 +508,6 @@ "node": ">= 20.12.0" } }, - "node_modules/@dimforge/rapier3d-compat": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz", - "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==", - "dev": true, - "license": "Apache-2.0" - }, "node_modules/@emnapi/core": { "version": "1.11.3", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz", @@ -1923,13 +1912,6 @@ "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", "license": "MIT" }, - "node_modules/@tweenjs/tween.js": { - "version": "23.1.3", - "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz", - "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==", - "dev": true, - "license": "MIT" - }, "node_modules/@tybys/wasm-util": { "version": "0.10.3", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz", @@ -1982,41 +1964,12 @@ "@types/unist": "*" } }, - "node_modules/@types/stats.js": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz", - "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/three": { - "version": "0.185.4", - "resolved": "https://registry.npmjs.org/@types/three/-/three-0.185.4.tgz", - "integrity": "sha512-gAsBIC07NIFrxjbf7tH2t71c38uulFfk/RFoC7FNBSjMRAQ8J1x/RBvusX0N5PJouaYFJawXQqfCQ0RKUx/1nA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@dimforge/rapier3d-compat": "~0.12.0", - "@tweenjs/tween.js": "~23.1.3", - "@types/stats.js": "*", - "@types/webxr": ">=0.5.17", - "fflate": "~0.8.2", - "meshoptimizer": "~1.1.1" - } - }, "node_modules/@types/unist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", "license": "MIT" }, - "node_modules/@types/webxr": { - "version": "0.5.24", - "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz", - "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==", - "dev": true, - "license": "MIT" - }, "node_modules/@ungap/structured-clone": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz", @@ -2617,13 +2570,6 @@ } } }, - "node_modules/fflate": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz", - "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==", - "dev": true, - "license": "MIT" - }, "node_modules/find-proc": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/find-proc/-/find-proc-0.1.0.tgz", @@ -3154,13 +3100,6 @@ "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", "license": "CC0-1.0" }, - "node_modules/meshoptimizer": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-1.1.1.tgz", - "integrity": "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==", - "dev": true, - "license": "MIT" - }, "node_modules/micromark-util-character": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", @@ -3797,12 +3736,6 @@ "url": "https://opencollective.com/svgo" } }, - "node_modules/three": { - "version": "0.185.1", - "resolved": "https://registry.npmjs.org/three/-/three-0.185.1.tgz", - "integrity": "sha512-5aojFCXKwnjBRZvUnt3WFfEcvUJgkN5LlijRFN95hMy8WVkG4I0QNcJE+OuWvuJ0bOdStrbfXn0pkd6/QyiAlg==", - "license": "MIT" - }, "node_modules/tiny-inflate": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz", diff --git a/web/package.json b/web/package.json index efd528d..51e3634 100644 --- a/web/package.json +++ b/web/package.json @@ -14,13 +14,9 @@ "astro": "astro" }, "dependencies": { - "astro": "^7.3.1", - "three": "^0.185.1" + "astro": "^7.3.1" }, "allowScripts": { "esbuild": true - }, - "devDependencies": { - "@types/three": "^0.185.4" } } From e31b7da33d3a61f9574355e79a13f90f2fdcd8b0 Mon Sep 17 00:00:00 2001 From: ahauy Date: Mon, 9 Nov 2026 15:21:59 +0700 Subject: [PATCH 2/8] fix(web): make the first tab stop the content, not the logo --- web/src/i18n/en.json | 3 ++- web/src/i18n/vi.json | 3 ++- web/src/layouts/BaseLayout.astro | 4 ++++ web/src/pages/index.astro | 2 +- web/src/pages/vi/index.astro | 2 +- web/src/styles/design-tokens.css | 21 +++++++++++++++++++++ 6 files changed, 31 insertions(+), 4 deletions(-) diff --git a/web/src/i18n/en.json b/web/src/i18n/en.json index cd3e11b..c94cd80 100644 --- a/web/src/i18n/en.json +++ b/web/src/i18n/en.json @@ -478,6 +478,7 @@ "switchToVietnamese": "Switch to Tiếng Việt", "viewGitHub": "View FlowSnap on GitHub", "toggleTheme": "Toggle color theme", - "backToTop": "Back to top" + "backToTop": "Back to top", + "skipToContent": "Skip to main content" } } diff --git a/web/src/i18n/vi.json b/web/src/i18n/vi.json index 83b7c38..7bf9a26 100644 --- a/web/src/i18n/vi.json +++ b/web/src/i18n/vi.json @@ -478,6 +478,7 @@ "switchToVietnamese": "Chuyển sang tiếng Việt", "viewGitHub": "Xem FlowSnap trên GitHub", "toggleTheme": "Đổi màu giao diện", - "backToTop": "Lên đầu trang" + "backToTop": "Lên đầu trang", + "skipToContent": "Bỏ qua tới nội dung chính" } } diff --git a/web/src/layouts/BaseLayout.astro b/web/src/layouts/BaseLayout.astro index baa47c2..a461e9d 100644 --- a/web/src/layouts/BaseLayout.astro +++ b/web/src/layouts/BaseLayout.astro @@ -1,5 +1,7 @@ --- import '../styles/design-tokens.css'; +import { getI18n } from '../i18n'; +import { RELEASE_METADATA } from '../data/distribution-data'; interface Props { title?: string; @@ -45,6 +47,7 @@ const absoluteOgImage = ogImage.startsWith('http') ? ogImage : `${siteUrl}${basePath || '/FlowSnap'}/${ogImage.replace(/^\//, '')}`; const ogLocale = lang === 'vi' ? 'vi_VN' : 'en_US'; +const t = getI18n(lang); const jsonLdSchema = { '@context': 'https://schema.org', @@ -140,6 +143,7 @@ const jsonLdSchema = { + diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro index f0bdad5..e5c28d7 100644 --- a/web/src/pages/index.astro +++ b/web/src/pages/index.astro @@ -22,7 +22,7 @@ const t = getI18n(lang); >
-
+
diff --git a/web/src/pages/vi/index.astro b/web/src/pages/vi/index.astro index 9257aec..99153c5 100644 --- a/web/src/pages/vi/index.astro +++ b/web/src/pages/vi/index.astro @@ -22,7 +22,7 @@ const t = getI18n(lang); >
-
+
diff --git a/web/src/styles/design-tokens.css b/web/src/styles/design-tokens.css index 60f8daa..8858247 100644 --- a/web/src/styles/design-tokens.css +++ b/web/src/styles/design-tokens.css @@ -357,3 +357,24 @@ pre, kbd { font-family: var(--font-mono); } + +/* Keyboard users otherwise cross ~75 tab stops before the download card. The + link stays off-screen until focused so it costs nothing visually. */ +.skip-link { + position: fixed; + top: 12px; + left: 12px; + z-index: 100; + padding: 10px 16px; + background: var(--color-surface-elevated); + color: var(--color-text-primary); + border: 1px solid var(--color-border); + border-radius: var(--radius-md); + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); + text-decoration: none; + transform: translateY(-200%); +} + +.skip-link:focus-visible { + transform: none; +} From 789425e728eff5f75c375aecf325384c27332956 Mon Sep 17 00:00:00 2001 From: ahauy Date: Mon, 9 Nov 2026 15:21:59 +0700 Subject: [PATCH 3/8] fix(web): announce shortcut copy results instead of swallowing them --- web/src/components/ShortcutMatrix.astro | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web/src/components/ShortcutMatrix.astro b/web/src/components/ShortcutMatrix.astro index d887ca4..24a4dfb 100644 --- a/web/src/components/ShortcutMatrix.astro +++ b/web/src/components/ShortcutMatrix.astro @@ -46,6 +46,7 @@ const counts = { aria-label="Interactive Keyboard Shortcuts Matrix" data-copy-label={t.shortcuts.controls.copyLabel} data-copied-label={t.shortcuts.controls.copiedLabel} + data-copy-fail-label={t.clipboard.copyFail} data-show-all-label={t.shortcuts.controls.showAll} data-show-fewer-label={t.shortcuts.controls.showFewer} > @@ -157,6 +158,7 @@ const counts = {
+