fix(ratewise): RW-3 PWA manifest 主題色 SSOT(#514 拆分 3/7)#518
Closed
s123104 wants to merge 1 commit into
Closed
Conversation
- 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>
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Contributor
|
✅ SEO 審計通過!所有 2026 標準驗證項目都符合要求。
|
This was referenced Jun 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
#514 拆分第 3 支。PWA manifest 的
theme_color/background_color改用實際主題色 SSOT(移除硬編#8B5CF6/#E8ECF4),並修正 zen 主色在 themes.ts↔index.css 的漂移。變更
generate-manifest.mjs:importSTYLE_DEFINITIONS,theme_color=zen.primary、background_color=zen.background(經rgbTripletToHex)→ manifest 現為 #7C3AED(與渲染一致,原硬編 #8B5CF6 不符)。themes.ts:zen primary99 102 241→124 58 237,與 index.css 渲染值同步(修漂移)。public/manifest.webmanifest:重新生成。範圍說明(KISS + 紅線)
CHECK_SHELL_PRECACHE自我修復(其 base 早於 fix(ratewise): offline.html 自我修復打破 SW 死亡迴圈 #508),整檔取會回退死亡迴圈修復。需在 main 模板上外科式疊加主題感知,屬高風險專注工作,另立 RW-3b。Test plan
--max-warnings 0theme_color: #7C3AEDRefs #514(3/7)。獨立可合。
🤖 Generated with Claude Code
via Happy