fix(ratewise): 修復 Threads Barcelona UA 內建瀏覽器偵測#490
Merged
Conversation
- pwaInstallGuide SSOT 補 Barcelona token(2024+ Threads 內建瀏覽器 UA) - 新增 iOS/Android production UA 單元測試與 PwaInstallGuide 動畫指引覆蓋 測試:ratewise 目標測試 32 項通過、typecheck 通過 Co-authored-by: Cursor <cursoragent@cursor.com>
|
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 標準驗證項目都符合要求。
|
This was referenced Jun 27, 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.
Summary
Barcelona(不再含Threads字串),導致pwaInstallGuide偵測失敗、PWA 安裝指引與右上角動畫不顯示Root cause
IN_APP_BROWSER_PATTERNS僅匹配\bThreads\b,production UA 為Barcelona 431.x(whatmyuseragent.com / udger)Changed files
apps/ratewise/src/utils/pwaInstallGuide.ts— 補Barcelonatokenapps/ratewise/src/utils/__tests__/pwaInstallGuide.test.ts— iOS/Android production UAapps/ratewise/src/components/__tests__/PwaInstallGuide.test.tsx— Barcelona 動畫指引.changeset/threads-barcelona-inapp-ua.md— patch bumpdocs/dev/002_development_reward_penalty_log.mdTest plan
pnpm --filter @app/ratewise test -- pwaInstallGuide PwaInstallGuide coldStartRestore RememberedHomeRoute(32 passed)pnpm --filter @app/ratewise typechecktypecheck+test+build:ratewise(本地已跑過)/multi/Production verification (post-merge)
https://app.haotool.org/ratewise/inapp-corner-pointer動畫與安裝指引 dialog 出現localStorage['ratewise-converter'].state.lastConverterView === 'multi'時 hard reload → 應進/multi/Notes
Made with Cursor