From 73d7d3689d83d33ca68ca3f0c251c3240453333d Mon Sep 17 00:00:00 2001 From: haotool Date: Sun, 17 May 2026 02:27:29 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix(ratewise):=20=E6=94=B6=E6=96=82?= =?UTF-8?q?=E6=94=AF=E6=8F=B4=E8=B3=87=E8=A8=8A=E5=B0=8E=E8=A6=BD=E9=AB=94?= =?UTF-8?q?=E9=A9=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重構支援與資訊入口為 SSOT 導覽與四語系描述卡片 - 補齊公開頁 safe-area header、行動版 footer 與高對比 active pill token - 同步 SEO 技術頁、Settings skeleton、Guide 錨點與測試 guardrail 測試:pnpm --filter @app/ratewise test -- PageNavHeader Guide Skeleton tokens Settings 測試:pnpm --filter @app/ratewise typecheck 測試:pnpm --filter @app/ratewise build 測試:Playwright Chromium Firefox WebKit iPhone smoke --- .changeset/ratewise-support-info-ia.md | 5 + apps/ratewise/src/components/Layout.tsx | 6 +- .../ratewise/src/components/PageNavHeader.tsx | 106 ++++++++++--- .../src/components/SkeletonLoader.tsx | 20 ++- .../__tests__/PageNavHeader.test.tsx | 67 +++++++++ .../__tests__/SkeletonLoader.test.tsx | 7 +- .../ratewise/src/config/design-tokens.test.ts | 77 ++++++++++ apps/ratewise/src/config/design-tokens.ts | 6 + apps/ratewise/src/config/support-info.ts | 17 +++ apps/ratewise/src/config/themes.ts | 8 + apps/ratewise/src/i18n/locales/en.ts | 10 ++ apps/ratewise/src/i18n/locales/ja.ts | 9 ++ apps/ratewise/src/i18n/locales/ko.ts | 9 ++ apps/ratewise/src/i18n/locales/zh-TW.ts | 9 ++ apps/ratewise/src/index.css | 6 + apps/ratewise/src/pages/Guide.test.tsx | 9 ++ apps/ratewise/src/pages/Guide.tsx | 3 +- apps/ratewise/src/pages/OpenData.test.tsx | 2 +- apps/ratewise/src/pages/SeoTech.tsx | 28 ++-- .../src/pages/Settings.hydration.test.tsx | 16 ++ apps/ratewise/src/pages/Settings.tsx | 139 +++++++++++------- apps/ratewise/tailwind.config.ts | 1 + .../dev/002_development_reward_penalty_log.md | 7 +- 23 files changed, 454 insertions(+), 113 deletions(-) create mode 100644 .changeset/ratewise-support-info-ia.md create mode 100644 apps/ratewise/src/components/__tests__/PageNavHeader.test.tsx create mode 100644 apps/ratewise/src/config/support-info.ts diff --git a/.changeset/ratewise-support-info-ia.md b/.changeset/ratewise-support-info-ia.md new file mode 100644 index 000000000..b9e1439e4 --- /dev/null +++ b/.changeset/ratewise-support-info-ia.md @@ -0,0 +1,5 @@ +--- +'@app/ratewise': patch +--- + +重構支援與資訊入口與公開內容頁導覽:公開頁 header 新增品牌、麵包屑與支援分群導覽,手機版公開頁恢復 footer,設定頁支援區改為可掃描卡片並補齊四語系描述。 diff --git a/apps/ratewise/src/components/Layout.tsx b/apps/ratewise/src/components/Layout.tsx index 7eef9035b..793bb6a69 100644 --- a/apps/ratewise/src/components/Layout.tsx +++ b/apps/ratewise/src/components/Layout.tsx @@ -71,10 +71,8 @@ export function Layout({ children }: { children: React.ReactNode }) { {/* 主要內容 */}
{children}
- {/* 頁尾 - Stage 6:內部連結結構(僅桌面版顯示) */} -
-
-
+ {/* 頁尾 - Stage 6:內部連結結構(Footer 內含行動版與桌面版佈局) */} +