From cfff270be7550740c49908747657bcaea7162f4a Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Wed, 3 Jun 2026 09:13:03 -0700 Subject: [PATCH] =?UTF-8?q?fix(i18n):=20green=20CI=20=E2=80=94=20settings?= =?UTF-8?q?=20mock=20+=20canonical=20text=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - settings.test.ts mocks @fusion/core; add SUPPORTED_LOCALES to the mock so the new language enum import resolves (shard 1). - LanguageSelector.css used the banned --text-secondary token; switch to the canonical --text-muted (shard 2 text-token-canonicalization guard). Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/cli/src/commands/__tests__/settings.test.ts | 1 + packages/dashboard/app/components/LanguageSelector.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/__tests__/settings.test.ts b/packages/cli/src/commands/__tests__/settings.test.ts index a0755b2b1c..a6e8bb1880 100644 --- a/packages/cli/src/commands/__tests__/settings.test.ts +++ b/packages/cli/src/commands/__tests__/settings.test.ts @@ -25,6 +25,7 @@ vi.mock("@fusion/core", () => { return { GlobalSettingsStore: vi.fn(), DEFAULT_SETTINGS, + SUPPORTED_LOCALES: ["en", "zh-CN", "zh-TW", "fr", "es"], resolveWorktrunkSettings: (globalValue: any, projectValue: any) => ({ enabled: projectValue?.enabled ?? globalValue?.enabled ?? false, ...(projectValue?.binaryPath ?? globalValue?.binaryPath ? { binaryPath: projectValue?.binaryPath ?? globalValue?.binaryPath } : {}), diff --git a/packages/dashboard/app/components/LanguageSelector.css b/packages/dashboard/app/components/LanguageSelector.css index c57276eeec..3f3cab26c0 100644 --- a/packages/dashboard/app/components/LanguageSelector.css +++ b/packages/dashboard/app/components/LanguageSelector.css @@ -9,7 +9,7 @@ font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; - color: var(--text-secondary, #888); + color: var(--text-muted, #888); } .language-options {