Skip to content

fix(ratewise): 對齊離線頁與 manifest 主題色 SSOT(含 RW-3~6 + deploy gate)#523

Merged
s123104 merged 9 commits into
mainfrom
fix/rw-offline-manifest-theme-ssot
Jun 30, 2026
Merged

fix(ratewise): 對齊離線頁與 manifest 主題色 SSOT(含 RW-3~6 + deploy gate)#523
s123104 merged 9 commits into
mainfrom
fix/rw-offline-manifest-theme-ssot

Conversation

@s123104

@s123104 s123104 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • pnpm --filter @app/ratewise test -- --run src/index.html.test.ts src/pwa-offline.test.ts
  • pnpm --filter @app/ratewise test:e2e -- pwa.spec.ts:124(build 後 preview)
  • pnpm build:ratewise
  • pnpm --filter @app/ratewise verify:artifacts
  • grep:offline.html / manifest.webmanifest / index.html 均為 #7C3AED

Follow-up

Made with Cursor

haotool and others added 9 commits June 30, 2026 01:56
- manifest theme_color/background 改讀 STYLE_DEFINITIONS.zen(移除硬編 #8B5CF6/#E8ECF4)
- 同步 themes.ts zen primary 99 102 241→124 58 237,修 TS↔index.css 漂移
- 離線模板主題化(需保留 #508 自我修復的高風險合併)列 RW-3b

測試:typecheck、lint、test 2516 passed、build:ratewise、zen 截圖驗證、manifest #7C3AED

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
- RW-5:seo-metadata core/currency-landing 與內容 generator 一致將「每 5 分鐘自動同步/更新」改為「約每 5 分鐘檢查更新」
- OpenData 更新頻率 FAQ 補新鮮度免責(依資料來源與 CDN 快取而定)
- regenerate public mirrors/llms/api 同步;品牌定位詞「最精準」屬產品決策本支不改

測試:typecheck、lint、test 2516 passed、build:ratewise、mirrors 同步無漂移

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
- 加 extractSeoulSnapshotDate/shouldRefreshLatestSnapshot:rate-changed 或 date-rollover 才刷新
- 整合進 hasRateChanges;保留 main 的 needsSchemaMigration/enrichExchangeShop(紅線不取代)
- 補 3 個 vitest 案例並納入 test:root(date-rollover/unchanged/rate-changed)

測試:moneybox vitest 3 passed、腳本 import 5 exports 正常、needsSchemaMigration 保留

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
- workflow history 檔名改用 extractSeoulSnapshotDate(資料首爾掛牌日)+ fallback 首爾 wall-clock
- aggregate 首次缺失補 changed=true,避免 history-30d.json 遺失卻不開 PR
- sw.ts history-30d 路由加 providers/moneybox 路徑,離線可服務換錢所趨勢圖

測試:typecheck、lint、test 2516 passed、build:ratewise(sw 編進 worker)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
- 合併 PR 433 主題感知離線模板(per-theme CSS 變數 + theme-color + safe-area + viewport-fit)
- 植回 main 的 PR 508 CHECK_SHELL_PRECACHE 自我修復腳本與 id=retry-btn(不取整檔避免回退死亡迴圈)
- generate-offline-html 移除 prettier 並將 generated offline.html 加入 prettierignore(prebuild 禁 prettier)

測試:typecheck、lint、test 2516 passed、build、nitro 離線頁深色 020617 且 508 導回 app 驗證

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	docs/dev/002_development_reward_penalty_log.md
Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	docs/dev/002_development_reward_penalty_log.md
Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	docs/dev/002_development_reward_penalty_log.md
- regenerate offline.html zen violet-600
- index.html theme-color 對齊 #7C3AED
- 更新 PWA E2E/unit 期望色
- 新增 offline/manifest artifact 一致性 smoke test

測試:pnpm build:ratewise、index.html.test.ts、pwa-offline.test.ts、pwa E2E theme-color

Co-authored-by: Cursor <cursoragent@cursor.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions

Copy link
Copy Markdown
Contributor

✅ SEO 審計通過!所有 2026 標準驗證項目都符合要求。

  • ✅ Sitemap 2026 標準
  • ✅ Breadcrumb Schema
  • ✅ JSON-LD 結構化數據
  • ✅ 內部連結結構

@s123104 s123104 merged commit 08e27f4 into main Jun 30, 2026
17 checks passed
@s123104 s123104 deleted the fix/rw-offline-manifest-theme-ssot branch June 30, 2026 14:59
s123104 pushed a commit that referenced this pull request Jun 30, 2026
- 以 main SSOT 解決 api-semantics-v2、design-tokens 目錄化、seo-metadata 模組化衝突
- 移植 Epic3 heroIntro/precisionThesis 至 seo-metadata 模組結構
- 補回 hero-v2 layout tokens 至 design-tokens/layout.ts

測試:pnpm --filter @app/ratewise typecheck 通過

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant