Mobile now gets a compact layout, pinch zoom and an offline banner #24
Loading…
Reference in a new issue
No description provided.
Delete branch "osf/212-review-the-usability-of-the-mobile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Players met a cramped desktop layout on landscape phones and small tablets, pinch zoom locked, an installed app stuck in portrait, silence when a connection dropped, and seats that could render empty avatars or names. Now the layout adapts below 820px wide or 560px tall, pinch zoom works, the app launches in any orientation, a small banner appears when the connection drops and hides when it recovers, and seats always render an avatar and name. The two-tap-to-play default, the per-room tap-once toggle, the round-end summary's tap-to-dismiss, and the server's identity guarantees are unchanged.
Checks: 2 things to look at
.forgejo/workflows,.gitea/workflowsor.github/workflows); what only CI tests went unverifiedNot done
Try it
git fetch origin && git checkout osf/212-review-the-usability-of-the-mobile.npm test.cd packages/client && npx playwright test— it plays a full round at 390x844, 844x390 and 768x1024, saving screenshots intotest-results/.npm start, open the app in a phone-width window, and confirm the compact layout, working pinch zoom, and the reconnecting banner after dropping the connection.packages/client/e2e/smoke.spec.tsfirst, thenpackages/client/src/styles.css, where the broadened breakpoint lives.Code review: 3 notes left, 13 fixed
Left for you
packages/client/src/styles.css:2597)packages/client/src/styles.css:1607)packages/client/src/App.tsx:208)Fixed before the commit
packages/client/src/App.tsx:167)packages/client/src/App.tsx:217)packages/client/src/components/Table.tsx:538)packages/client/src/components/Table.tsx:118)packages/client/src/styles.css:2512)packages/client/src/styles.css:2591)packages/client/e2e/smoke.spec.ts:1387)packages/client/e2e/smoke.spec.ts:1627)packages/client/e2e/smoke.spec.ts:1332)packages/client/e2e/smoke.spec.ts:1344)packages/client/e2e/smoke.spec.ts:1782)packages/client/src/game-lobby.test.tsx:316)Tests: 292 passed in 2 lanes
All 11 scenarios of
review-the-usability-of-the-mobile-exper-mvvsn9have a tagged test.Fix round 1 left something unchanged on purpose: - Secondary judge notes deliberately left alone (not the failing criterion, and the fix is supposed to be only that): seat-name/top-edge truncation ("Bi…", "A…", "C…", "M…" on a phone; "Aggressive Arch…" at desktop), the offline banner covering the felt's top edge (the lane's controls-only check passes), the round-end summary showing red SCRATCH pills for everyone after a bad bid (a natural consequence, not a defect), and the desktop brand heart's marginal 4.07 contrast. - The desktop and portrait layouts are untouched; the felt still scrolls as a last resort (about 8px at 812x375), never let…
The test lint recorded nothing in the run's tests.
Braid run 212: 2 h 12 m on vLLM · inkling-2-mini
review-the-usability-of-the-mobile-exper-mvvsn9(34 steps, 2 retried)Opened by Braid.