Skip to content

fix(mobile): simplify dashboard scroll-hide and stabilize UI test#426

Merged
BigSimmo merged 1 commit into
mainfrom
cursor/fix-phone-header-hide-scroll-4142
Jul 9, 2026
Merged

fix(mobile): simplify dashboard scroll-hide and stabilize UI test#426
BigSimmo merged 1 commit into
mainfrom
cursor/fix-phone-header-hide-scroll-4142

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #415: simplifies the phone dashboard header hide-on-scroll architecture and adds a stable Playwright regression test.

Changes

  • Single scroll reporter path: ClinicalDashboard wires phone scroll-hide via a native passive listener on <main> and passes scrollHidden to MasterSearchHeader; removes dual OR-merge with internal useHideOnScroll.
  • Dev origin fix (next.config.ts): add allowedDevOrigins: ['127.0.0.1'] so Next.js HMR/client hydration works when tooling hits 127.0.0.1 (without this, scroll listeners never attach).
  • Playwright base URL (playwright-base-url.ts): prefer localhost to match ensure-local-server.
  • Collapse test hook: data-scroll-hidden + data-testid="universal-header-collapse" on the collapse wrapper.
  • UI smoke test: stepped scroll on dashboard <main> asserting header collapse.

Verification

  • npm run verify:cheap
  • npm run format:check
  • npx playwright test tests/ui-smoke.spec.ts -g "phone universal header fully hides" --project=chromium

Manual follow-up

Quick scroll check on a real iPhone in Answer mode.

Open in Web Open in Cursor 

Wire ClinicalDashboard phone scroll-hide through a single native listener
on <main> instead of OR-merging parent and internal reporters. Allow
127.0.0.1 dev hydration via allowedDevOrigins, prefer localhost in
Playwright base URL resolution, and add a collapse data attribute with a
stepped-scroll smoke test.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
@supabase

supabase Bot commented Jul 9, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@BigSimmo
BigSimmo enabled auto-merge (squash) July 9, 2026 04:20
@BigSimmo
BigSimmo merged commit d76f5ef into main Jul 9, 2026
8 checks passed
@BigSimmo
BigSimmo deleted the cursor/fix-phone-header-hide-scroll-4142 branch July 9, 2026 12:35
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.

2 participants