Skip to content

fix(ratewise): 修復窄視窗 QA 佈局重疊與觸控目標#494

Merged
s123104 merged 1 commit into
mainfrom
fix/viewport-qa-layout-hotfix
Jun 27, 2026
Merged

fix(ratewise): 修復窄視窗 QA 佈局重疊與觸控目標#494
s123104 merged 1 commit into
mainfrom
fix/viewport-qa-layout-hotfix

Conversation

@s123104

@s123104 s123104 commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Galaxy S21 360×800navigationTokens.mainScroll≤360px 額外 +28px bottom padding,避免「加入歷史」CTA 與 fixed bottom nav 重疊
  • 320×568 micro/nanosingleConverterLayoutTokens.rateCard.infoPadding 頂部改 pt-10(40px),避免匯率文字與絕對定位 RateSelector 重疊
  • 320×568 觸控目標addToHistory token 在 micro/nano 套用 min-h-11(44px),符合 WCAG 2.2 最小觸控尺寸

Root cause

QA 10 裝置矩陣實測缺陷,非 band-aid:

  1. AppLayout 僅預留 56px bottom nav 高度,360px 寬裝置內容堆疊後 CTA 仍被 nav 遮住 ~28px
  2. 高度斷點 micro/nano 縮減 infoPadding 過激(pt-5/pt-4),RateSelector 絕對定位於卡片頂部,匯率大字向下侵入
  3. micro/nano 的 py-1.5 使 CTA 實測高度 ~38px,低於 44px 觸控下限

Changed files

  • apps/ratewise/src/config/design-tokens.ts
  • apps/ratewise/src/components/AppLayout.tsx
  • apps/ratewise/src/config/design-tokens.test.ts
  • apps/ratewise/src/components/__tests__/AppLayout.safe-area.test.tsx
  • .changeset/viewport-qa-layout-hotfix.md
  • docs/dev/002_development_reward_penalty_log.md

Test plan

  • pnpm --filter @app/ratewise typecheck
  • pnpm --filter @app/ratewise test -- design-tokens.test AppLayout.safe-area SingleConverter.core(67 passed)
  • pre-push:typecheck + test + build:ratewise
  • CI green
  • 手動:360×800 與 320×568 確認 CTA 無重疊、RateSelector 可讀、觸控區 ≥44px

Notes

Made with Cursor

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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

- 360×800:main 底部留白 +28px,避免 CTA 與 bottom nav 重疊
- 320×568:infoPadding 頂部 pt-10,避免匯率文字蓋住 RateSelector
- 加入歷史 CTA:micro/nano 套用 min-h-11(WCAG 44px)
- 新增 design-tokens / AppLayout 防回歸測試

測試:typecheck;design-tokens、AppLayout.safe-area、SingleConverter.core(67 passed)

Co-authored-by: Cursor <cursoragent@cursor.com>
@s123104 s123104 force-pushed the fix/viewport-qa-layout-hotfix branch from 54d9ef9 to 04ed55f Compare June 27, 2026 18:26
@github-actions

Copy link
Copy Markdown
Contributor

✅ SEO 審計通過!所有 2026 標準驗證項目都符合要求。

  • ✅ Sitemap 2026 標準
  • ✅ Breadcrumb Schema
  • ✅ JSON-LD 結構化數據
  • ✅ 內部連結結構

@s123104 s123104 merged commit cb748c3 into main Jun 27, 2026
17 checks passed
@s123104 s123104 deleted the fix/viewport-qa-layout-hotfix branch June 27, 2026 18:39
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