fix(ratewise): 內容頁骨架去 sticky 重構+跨頁重複內容收斂 - #658
Merged
s123104 merged 1 commit intoJul 6, 2026
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Contributor
|
✅ SEO 審計通過!所有 2026 標準驗證項目都符合要求。
|
- PageNavHeader 改靜態頂列(不 sticky、不 backdrop-blur、無 border-b),隨內容捲動 - safe-area 適配移至 ContentPageLayout 容器 pt-safe-top,standalone 下頂列不進瀏海 - 錨點 scroll-mt 偏移縮小為 safe-area 加小間距,指南與隱私側欄 sticky offset 校正為 top-6 - 指南頁 FAQ 段改 GUIDE_FAQ_BRIDGE 摘要導流,問答全文唯一歸屬 /faq/(SSOT) - 開放資料頁授權聲明改 LICENSING_NOTICE 摘要導流,全文唯一歸屬 /open-source/ - 新增跨頁重複句掃描與前後截圖 QA 腳本,骨架守門測試同步改寫 測試:typecheck、vitest run 4816 綠、text-parity 幣別頁與非目標頁零 diff、build:ratewise 通過 Co-authored-by: Cursor <cursoragent@cursor.com>
s123104
force-pushed
the
fix/content-page-skeleton
branch
from
July 6, 2026 22:00
0dbb23e to
d74e307
Compare
Contributor
|
✅ SEO 審計通過!所有 2026 標準驗證項目都符合要求。
|
This was referenced Jul 6, 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.
摘要
依使用者裁決「內容頁上方不該隨用戶滾動」執行骨架重構,並收斂跨頁逐字重複內容(SEO duplicate content)。單一 PR,請勿 merge,等待使用者審核。
範圍 1:內容頁頂列去 sticky(7 頁共用骨架)
對象:
PageNavHeader(FAQ/指南/關於/隱私/開放資料/SEO 揭露/開源共用)。sticky top-0 z-20捲動時常駐bg-background/90 backdrop-blur-md border-b(模糊玻璃)pt-[calc(0.625rem+env(safe-area-inset-top))]ContentPageLayout容器.pt-safe-top(repo 既有類)scroll-mt-[calc(5rem+env(safe-area-inset-top))](為 sticky 預留)scroll-mt-[calc(1rem+env(safe-area-inset-top))]lg:sticky lg:top-16(為頂列預留 4rem)lg:sticky lg:top-6(保留桌面 sticky 行為,只校正 offset)守門測試同步改寫:
PageNavHeader.safe-area.test.tsx(7 頁 smoke:頂列不得 sticky/backdrop-blur/border-b,容器必含pt-safe-top)、ContentPageLayout.test.tsx(scroll-mt 新值)。範圍 2:跨頁重複內容收斂(SSOT)
全站掃描(新增
scripts/qa/scan-duplicate-sentences.mjs,以 dist 預渲染 HTML 句級比對):改動前 17 個跨頁逐字重複句 → 改動後 11 個(其餘為 app 殼/導覽連結文案,見下方保留清單)。收斂對照表
GUIDE_FAQ_BRIDGE(seo-metadata SSOT)情境化摘要(含 DCC 導流)+「查看完整答案 →」連結;移除頁尾重複的「查看更多常見問題」連結LICENSING_NOTICE(seo-metadata SSOT),開源頁引用全文;開放資料頁改一句摘要+「查看完整授權聲明 →」連結GUIDE_HOW_TO_STEPS步驟 6 改寫為差異化句式保留(申報為非內容重複)
RelatedGuideLink導覽連結描述(描述同一目標頁)。FAQPageschema 維持既有規則:只在 /faq/ 輸出(本次未動 jsonLd)。驗證
pnpm --filter @app/ratewise exec vitest run:184 檔 4816 綠(seo-ssot/seo-copy-guard 守門通過)verify-visible-text-parity:幣別頁抽樣 5 頁全 PASS(零 diff);非目標內容頁/、/about/、/privacy/、/seo-tech/、3 攻略頁全 PASS(零 diff)/guide/(−9/+4 節點,逐字 Q&A → 摘要導流)、/open-data/(−8/+2 節點,授權全文 → 摘要導流)、/faq/、/open-source/零 diffgit status無 tracked 產物漂移(markdown mirrors 不受影響)screenshots/content-skeleton/(before/after × FAQ/指南/關於 × 390/768/1440 + standalone safe-area 59px 模擬 × top/scrolled,共 48 張)附註
experiment/ratewise-product-2026h2檔頭現值為 +170,依 SSOT 公式(最新總分=前次總分+本次變化)記為 +171。Made with Cursor