Mobile now gets a compact layout, pinch zoom and an offline banner #24

Merged
cmoriarty merged 4 commits from osf/212-review-the-usability-of-the-mobile into main 2026-12-04 10:05:10 -05:00
Owner

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

  • Code review: 3 notes left, 13 fixed
  • Tests it wrote were run: 1 test file the change wrote ran in no lane
    • packages/client/e2e/smoke.spec.ts
  • CI: no CI ran on the checked code: the project has no CI (no workflow under .forgejo/workflows, .gitea/workflows or .github/workflows); what only CI tests went unverified
  • Passed: Scenarios with proof: 11 of 11 have a passing test or a look; Tests: 292 passed in 2 lanes; Seen working: 10 of 10 looks passed, and a session was played start to end; Tasks: 10 of 10 done; Same code: The tests and screenshots are of what merges

Not done

  • Rendering above 100% zoom is allowed but not exercised: the layout is tuned and checked at 100%, and no zoomed-viewport assertion exists.
  • The audit runs headless at fixed viewport sizes; a real phone home-screen landscape launch and a real pinch-zoom are unverified.
  • The audit screenshots land only in Playwright's output directory; no notes artifact records the oddities found, and no blocking ones are fixed or flagged anywhere.

Try it

  1. Check out the branch: git fetch origin && git checkout osf/212-review-the-usability-of-the-mobile.
  2. Run the unit suite: npm test.
  3. Run the browser audit: cd packages/client && npx playwright test — it plays a full round at 390x844, 844x390 and 768x1024, saving screenshots into test-results/.
  4. To see it live, run 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.
  5. Read packages/client/e2e/smoke.spec.ts first, then packages/client/src/styles.css, where the broadened breakpoint lives.
Code review: 3 notes left, 13 fixed

Left for you

  • Left as designed (overlay so the layout never reflows); spec's 'table remains visible' holds — the audit measures no-control-coverage now. (packages/client/src/styles.css:2597)
  • Left as is — changing card-drag behaviour is outside this change; pinch can still start anywhere else on the page. (packages/client/src/styles.css:1607)
  • Noted for the record; no change — the design explicitly specifies the ref. (packages/client/src/App.tsx:208)

Fixed before the commit

  • __app.state() lied about connectivity; now reports gs.connected. (packages/client/src/App.tsx:167)
  • Major: Also hide only on first-mount flash; now shown on every screen after at least one successful connection. (packages/client/src/App.tsx:217)
  • Freezing now clears pending bubble timers (bubbles stay up); release still clears them all. (packages/client/src/components/Table.tsx:538)
  • Comments now match the implementation (dismiss-at-once). (packages/client/src/components/Table.tsx:118)
  • 44px minimum added to both, plus two assertions in styles.test.ts. (packages/client/src/styles.css:2512)
  • flex-shrink: 0 added. (packages/client/src/styles.css:2591)
  • Major: After an unchanged turn survives 8 polls, the helper re-emits once; the key re-arms on advance. (packages/client/e2e/smoke.spec.ts:1387)
  • Filter now skips disabled and aria-disabled elements. (packages/client/e2e/smoke.spec.ts:1627)
  • test.setTimeout(360_000) at the top of the audit test. (packages/client/e2e/smoke.spec.ts:1332)
  • Added toHaveCount(0) after the app mounts, before any action. (packages/client/e2e/smoke.spec.ts:1344)
  • Banner box is now also asserted non-intersecting every tappable element. (packages/client/e2e/smoke.spec.ts:1782)
  • New test renders a blank-name bot and asserts aria-label="Remove Player". (packages/client/src/game-lobby.test.tsx:316)
  • and 1 more
Tests: 292 passed in 2 lanes

All 11 scenarios of review-the-usability-of-the-mobile-exper-mvvsn9 have 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
  • Workflow: Braid's OpenSpec flow, change review-the-usability-of-the-mobile-exper-mvvsn9 (34 steps, 2 retried)
  • Model: vLLM · inkling-2-mini
  • Time: 2 h 12 m from start to this pull request, 2 h 12 m of it in the model
  • Tokens: 129.5M input, 230k output, 555k reasoning, over 1,451 model calls
  • Pre-flight estimate: fits, p50 324k / p80 543k tokens against a 224k-token step allowance

Opened by Braid.

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** - **Code review:** 3 notes left, 13 fixed - **Tests it wrote were run:** 1 test file the change wrote ran in no lane - packages/client/e2e/smoke.spec.ts - **CI:** no CI ran on the checked code: the project has no CI (no workflow under `.forgejo/workflows`, `.gitea/workflows` or `.github/workflows`); what only CI tests went unverified - **Passed:** Scenarios with proof: 11 of 11 have a passing test or a look; Tests: 292 passed in 2 lanes; Seen working: 10 of 10 looks passed, and a session was played start to end; Tasks: 10 of 10 done; Same code: The tests and screenshots are of what merges **Not done** - Rendering above 100% zoom is allowed but not exercised: the layout is tuned and checked at 100%, and no zoomed-viewport assertion exists. - The audit runs headless at fixed viewport sizes; a real phone home-screen landscape launch and a real pinch-zoom are unverified. - The audit screenshots land only in Playwright's output directory; no notes artifact records the oddities found, and no blocking ones are fixed or flagged anywhere. **Try it** 1. Check out the branch: `git fetch origin && git checkout osf/212-review-the-usability-of-the-mobile`. 2. Run the unit suite: `npm test`. 3. Run the browser audit: `cd packages/client && npx playwright test` — it plays a full round at 390x844, 844x390 and 768x1024, saving screenshots into `test-results/`. 4. To see it live, run `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. 5. Read `packages/client/e2e/smoke.spec.ts` first, then `packages/client/src/styles.css`, where the broadened breakpoint lives. <details> <summary>Code review: 3 notes left, 13 fixed</summary> **Left for you** - Left as designed (overlay so the layout never reflows); spec's 'table remains visible' holds — the audit measures no-control-coverage now. (`packages/client/src/styles.css:2597`) - Left as is — changing card-drag behaviour is outside this change; pinch can still start anywhere else on the page. (`packages/client/src/styles.css:1607`) - Noted for the record; no change — the design explicitly specifies the ref. (`packages/client/src/App.tsx:208`) **Fixed before the commit** - __app.state() lied about connectivity; now reports gs.connected. (`packages/client/src/App.tsx:167`) - **Major:** Also hide only on first-mount flash; now shown on every screen after at least one successful connection. (`packages/client/src/App.tsx:217`) - Freezing now clears pending bubble timers (bubbles stay up); release still clears them all. (`packages/client/src/components/Table.tsx:538`) - Comments now match the implementation (dismiss-at-once). (`packages/client/src/components/Table.tsx:118`) - 44px minimum added to both, plus two assertions in styles.test.ts. (`packages/client/src/styles.css:2512`) - flex-shrink: 0 added. (`packages/client/src/styles.css:2591`) - **Major:** After an unchanged turn survives 8 polls, the helper re-emits once; the key re-arms on advance. (`packages/client/e2e/smoke.spec.ts:1387`) - Filter now skips disabled and aria-disabled elements. (`packages/client/e2e/smoke.spec.ts:1627`) - test.setTimeout(360_000) at the top of the audit test. (`packages/client/e2e/smoke.spec.ts:1332`) - Added toHaveCount(0) after the app mounts, before any action. (`packages/client/e2e/smoke.spec.ts:1344`) - Banner box is now also asserted non-intersecting every tappable element. (`packages/client/e2e/smoke.spec.ts:1782`) - New test renders a blank-name bot and asserts aria-label="Remove Player". (`packages/client/src/game-lobby.test.tsx:316`) - and 1 more </details> <details> <summary>Tests: 292 passed in 2 lanes</summary> All 11 scenarios of `review-the-usability-of-the-mobile-exper-mvvsn9` have 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. </details> <details> <summary>Braid run 212: 2 h 12 m on vLLM · inkling-2-mini</summary> - **Workflow:** Braid's OpenSpec flow, change `review-the-usability-of-the-mobile-exper-mvvsn9` (34 steps, 2 retried) - **Model:** vLLM · inkling-2-mini - **Time:** 2 h 12 m from start to this pull request, 2 h 12 m of it in the model - **Tokens:** 129.5M input, 230k output, 555k reasoning, over 1,451 model calls - **Pre-flight estimate:** fits, p50 324k / p80 543k tokens against a 224k-token step allowance </details> --- Opened by Braid.
cmoriarty deleted branch osf/212-review-the-usability-of-the-mobile 2026-12-04 10:05:10 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/scratch-vllm-fp8!24
No description provided.