Skip to content

feat(pwa): Merge PWA fix to main - #6

Merged
s123104 merged 1 commit into
mainfrom
feature/pwa-fix-merge
Oct 16, 2025
Merged

feat(pwa): Merge PWA fix to main#6
s123104 merged 1 commit into
mainfrom
feature/pwa-fix-merge

Conversation

@s123104

@s123104 s123104 commented Oct 16, 2025

Copy link
Copy Markdown
Contributor

This PR merges the PWA fix from commit 54abc71 into the main branch.

- 新增 Web App Manifest 配置 (manifest.webmanifest)
- 實作 Service Worker 支援離線快取與 API 請求管理
- 新增所有必要的 PWA 圖標(192x192, 384x384, 512x512, maskable, Apple)
- 配置 Service Worker 註冊邏輯
- 採用 Cache First 策略處理靜態資源
- 採用 Network First 策略處理 API 請求(含離線回退)
- 新增 PWA 實作文檔

技術細節:
- Service Worker: sw.js with ratewise-v1 cache
- Manifest: standalone display mode, purple theme
- Icons: Complete set including maskable for Android
- 相容性: Chrome, Firefox, Safari, Edge

[context7:workbox-window:2025-10-17T01:52:00+08:00]
[context7:mdn/pwa:2025-10-17T01:52:00+08:00]

Closes #PWA-Implementation
@s123104
s123104 merged commit 87ebd6d into main Oct 16, 2025
0 of 2 checks passed
@s123104
s123104 deleted the feature/pwa-fix-merge branch October 16, 2025 17:56
s123104 pushed a commit that referenced this pull request Oct 24, 2025
錯誤 #6 分析:
- staticDistDir 配置生效(port 37555)
- NO_FCP 錯誤仍持續(等待 30.2 秒後超時)
- 問題:React SPA 路由導致 Lighthouse CI 找不到 index.html

解決方案(來自官方文件):
1. 增加 isSinglePageApplication: true
   - 讓 Lighthouse CI 靜態伺服器在找不到路徑時返回 index.html
   - 專門用於 React/Vue/Angular 等 SPA 框架

參考:
- https://googlechrome.github.io/lighthouse-ci/docs/configuration.html
- GoogleChrome/lighthouse-ci#196
- GoogleChrome/lighthouse-ci#800
s123104 added a commit that referenced this pull request Dec 29, 2025
- 新增 Web App Manifest 配置 (manifest.webmanifest)
- 實作 Service Worker 支援離線快取與 API 請求管理
- 新增所有必要的 PWA 圖標(192x192, 384x384, 512x512, maskable, Apple)
- 配置 Service Worker 註冊邏輯
- 採用 Cache First 策略處理靜態資源
- 採用 Network First 策略處理 API 請求(含離線回退)
- 新增 PWA 實作文檔

技術細節:
- Service Worker: sw.js with ratewise-v1 cache
- Manifest: standalone display mode, purple theme
- Icons: Complete set including maskable for Android
- 相容性: Chrome, Firefox, Safari, Edge

[context7:workbox-window:2025-10-17T01:52:00+08:00]
[context7:mdn/pwa:2025-10-17T01:52:00+08:00]

Closes #PWA-Implementation

Co-authored-by: haotool <haotool.org@gmail.com>
s123104 pushed a commit that referenced this pull request Dec 29, 2025
錯誤 #6 分析:
- staticDistDir 配置生效(port 37555)
- NO_FCP 錯誤仍持續(等待 30.2 秒後超時)
- 問題:React SPA 路由導致 Lighthouse CI 找不到 index.html

解決方案(來自官方文件):
1. 增加 isSinglePageApplication: true
   - 讓 Lighthouse CI 靜態伺服器在找不到路徑時返回 index.html
   - 專門用於 React/Vue/Angular 等 SPA 框架

參考:
- https://googlechrome.github.io/lighthouse-ci/docs/configuration.html
- GoogleChrome/lighthouse-ci#196
- GoogleChrome/lighthouse-ci#800
s123104 pushed a commit that referenced this pull request Mar 22, 2026
- 移除:Git commit rules / Husky hooks(→ AGENTS.md SSOT)
- 移除:QA Artifacts + Root Hygiene 完整區塊(→ AGENTS.md SSOT)
- 移除:Skills Strategy(→ AGENTS.md SSOT)
- 移除:Troubleshooting #6 Prettier 格式漂移(→ AGENTS.md SSOT)
- 移除:security-headers Worker 部署 SOP 完整內容(→ AGENTS.md SSOT)
- 移除:程式碼註解風格完整區塊(→ AGENTS.md SSOT)
- 移除:外部寫作與 SOP 格式基準(低頻參考,不需常駐 context)
- AGENTS.md:補入資產快取驗證 curl 快查表(從 CLAUDE.md 遷移)
- CLAUDE.md 644 行 → 432 行(-33%);以單行參考取代重複規則

測試:兩檔審閱確認規則無遺漏,AGENTS.md 仍完整
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