Validation Quickstart: Full Mobile-Responsive UI Audit & Polish
Feature: 20261126-182156-mobile-responsive-auditSpec: spec.md | Plan: plan.md | Contract: responsive-ui-contract.md
Prerequisites
- Node >=24 and
pnpminstalled (task frontend:install) - The project-locked Playwright Chromium build and its system libraries (
task frontend:browser:install). Use the CI image's fonts locally to match baseline rendering.
1. Static Checks & Unit / Component Tests
Run formatting, linting, type checking, and the full Vitest suite:
bash
task frontend:fix
task frontend:check
task frontend:lint
task frontend:testExpected outcomes:
- Zero TypeScript (
tsc), Oxlint, or Oxfmt errors or warnings. - 100% of Vitest tests pass, including new tests for:
Sheetslide-over drawer and stickyHeadermobile menu dismissal (Layout.test.tsx/Header.test.tsx)- Bounded
Dialog+DialogBody+DatePickermobile clamping (date-picker.test.tsx,ScanForm.test.tsx) - Hybrid mobile card views and interactions in
AdminUsers,AdminInvites, andAdminScans(AdminPages.test.tsx,AdminInvites.test.tsx,AdminInteractions.test.tsx)
2. Automated Mobile Visual & Zero-Overflow Verification
Run the mobile and desktop visual comparisons, the 26-route overflow sweep, and the overlay matrix with local Chromium.
bash
task frontend:browser:install
task frontend:snapshot -- --check --filter mobile
task frontend:snapshot -- --check --filter desktop
task frontend:snapshot -- --overflow-only
task frontend:snapshot -- --overlay-onlyReview visual diffs in the comparison gallery. For an intentional change, replace the affected baseline with its reviewed capture or run task frontend:snapshot -- --update --filter <scenario> and repeat its check.
bash
task snapshot:reportExpected outcomes:
- Every mobile scenario (
375×667,375×812,390×844) and tablet check (768×1024) passes the automateddocument.documentElement.scrollWidth <= window.innerWidthassertion with zero violations. - All newly added representative mobile baselines render cleanly with no clipped dialogs, truncated popovers, overlapping chart legends, or broken dark/light contrast.
- All existing desktop baselines (
1280×800) pass with zero unintended diffs.
3. Manual / Dev-Server Smoke Checks (Spot Verification)
Start the frontend locally (task frontend:dev) and spot-check in browser device emulation:
- 375×667 (Compact Phone):
- Open the header menu mid-scroll → confirm sticky header, slide-over drawer with backdrop, Escape/backdrop close, and route-change reset.
- Open Create Scan → scroll the dialog body while confirming header and Save/Cancel footer stay pinned; open Check-in and Check-out calendars and verify they remain inside the viewport.
- Open Profile → verify long custom ntfy server URLs, copy buttons, and Active Sessions rows wrap cleanly.
- 390×844 (Standard Phone) — Admin:
- Visit
/admin/users,/admin/invitations,/admin/scans→ confirm stacked mobile cards with comfortable action tap targets. - Visit
/admin,/admin/operations,/admin/audit, and detail pages → confirm charts are legible and dense tables scroll inside contained wrappers without moving the whole page.
- Visit
- 768×1024 (Tablet Transition):
- Confirm header navigation switches cleanly between mobile drawer and desktop links without wrapping or clipping.
4. Closing Artifacts
Before opening the PR:
- Confirm
docs/specs/20261126-182156-mobile-responsive-audit/audit-report.mdrecords all 26 audited routes and resolutions (FR-015/SC-007). - Mark
T4.1.6complete indocs/CHECKLIST.mdand Phase 4 Polish indocs/PLAN.md. - Update
docs/architecture/DESIGN_FRONTEND.mdwith the mobile navigation drawer, bounded dialog, and hybrid admin list patterns.