Skip to content

fix(ratewise): RW-3 PWA manifest 主題色 SSOT(#514 拆分 3/7)#518

Closed
s123104 wants to merge 1 commit into
mainfrom
rw-3-pwa-offline-brand-sync
Closed

fix(ratewise): RW-3 PWA manifest 主題色 SSOT(#514 拆分 3/7)#518
s123104 wants to merge 1 commit into
mainfrom
rw-3-pwa-offline-brand-sync

Conversation

@s123104

@s123104 s123104 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

摘要

#514 拆分第 3 支。PWA manifest 的 theme_color/background_color 改用實際主題色 SSOT(移除硬編 #8B5CF6/#E8ECF4),並修正 zen 主色在 themes.ts↔index.css 的漂移。

變更

  • generate-manifest.mjs:import STYLE_DEFINITIONStheme_color=zen.primary、background_color=zen.background(經 rgbTripletToHex)→ manifest 現為 #7C3AED(與渲染一致,原硬編 #8B5CF6 不符)。
  • themes.ts:zen primary 99 102 241124 58 237,與 index.css 渲染值同步(修漂移)。
  • public/manifest.webmanifest:重新生成。

範圍說明(KISS + 紅線)

Test plan

  • typecheck / lint --max-warnings 0
  • test 2516 passed
  • build:ratewise;manifest 服務驗證 theme_color: #7C3AED
  • zen 首頁截圖無回退

Refs #514(3/7)。獨立可合。

🤖 Generated with Claude Code
via Happy

- 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>
@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 結構化數據
  • ✅ 內部連結結構

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