The app now respects phone safe areas and launches without a white… #2
Loading…
Reference in a new issue
No description provided.
Delete branch "osf/192-ux-and-visual-review-21-tasks-from"
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?
What was done
How to review
osf/192-ux-and-visual-review-21-tasks-from.npm install.npm test— it should pass.npx playwright test(it builds the client and starts a seeded server itself) — it should pass.npm start, open http://127.0.0.1:3000, and play a game against the bots to see the seats around the felt, the round summary, and the winner screen.packages/client/src/components/Table.tsxandpackages/client/src/styles.cssfirst — they hold the table layout, the trick and round moments, and the safe-area and speed rules.Code review
Reviewed the full diff of the 21-task UX/visual change against its four delta specs (game-bots, game-lobby, game-table, pwa) and the proposal/design/tasks. Verified the implementations: server-side speed scaling and SCRATCH_SEED, the aggressive bot's capped-but-legal bid, the installable manifest with a distinct maskable icon, dark pre-paint shell with splash images, safe-area layout, 44px touch targets, reduced-motion fallbacks, and self-hosted WOFF2 faces; confirmed the one left-untested scenario (bidding must not move the table) is genuinely covered by the e2e smoke's bounding-box comparison plus the markup test; confirmed each changed test file still asserts what it asserted before. Fixed three minor findings: removed the bid-stepping helper nextLegalBid and its dedicated test file, orphaned when the split-flap stepper was replaced by bid chips; added the 'no external font link remains' assertion that task 6.1 asks for in game-lobby.test.tsx; and updated the README's stale client-tests line. Left one pre-existing minor finding (unused lowestLegalCard) untouched as it predates the change.
Left for you
packages/client/src/moves.ts:53: lowestLegalCard is exported but referenced nowhere in production or tests (its comment says it labels hints). It predates this change — it is present in HEAD and untouched by the diff — so it was left as-is rather than refactored here; noted for a future cleanup.Fixed before the commit
packages/client/src/moves.ts:45: nextLegalBid was dead after this change: its only production user, the split-flap bid stepper in BidPanel.tsx, was replaced by the chip-based panel, leaving the helper referenced only by moves.test.ts (whose header still described the removed 'split-flap bid counter'). Removed the function and deleted the test file; the remaining moves.ts exports are all used by BidPanel, Hand, and App.packages/client/src/game-lobby.test.tsx:159: Task 6.1 asks game-lobby.test.tsx to assert 'no external font link remains', but the self-hosted typography block only checked the @font-face files and the logo, leaving the index.html half of the task untested (the e2e font check covers it in a browser, but the unit-level assertion the task names was missing). Added a test reading index.html and asserting it contains no fonts.googleapis.com or fonts.gstatic.com reference.README.md:183: The Tests section, which this change extended with a Playwright paragraph, still described the client unit tests as only 'the Web Audio sound module' although the suite now also covers sound, hand sorting, lobby and table markup, and the PWA artifacts. Updated the line to match the actual client test files.Tests
96 of 115 scenarios of
ux-and-visual-review-21-tasks-from-deskt-c51d6zhave a tagged test. No test carries thespec:tag of these:game-bots/Reactions never delay playgame-lobby/Bots as chipsgame-lobby/Room at a glancegame-table/Compact seats on a phonegame-table/Deal animationgame-table/Final round to winnergame-table/Legible on a phonegame-table/Neighbours stay readablegame-table/Never blocks longgame-table/No card clipped at the bottomgame-table/Play and trick sweepgame-table/Portrait playLeft untested on purpose:
game-table/Bidding does not move the table: Covered by the e2e smoke test (task 7.1), which compares table, round pill and trump card bounding boxes across bid turns, and by the markup test asserting the bid panel sits inside .table-center with a fixed hand-area min-height.The
e2elane took 122 s, past its target of about a minute.The test lint found, in the run's tests on the last check:
Recorded, not decided
packages/client/src/game-table.test.tsx:1812B6 inrenders the felt behind the panel and the confetti celebration: test has no// spec: <capability>/<scenario>tag, on itself, its describe or its file's toppackages/server/src/session.test.ts:850B6 indeals identical first hands to two servers started with the same seed: test has no// spec: <capability>/<scenario>tag, on itself, its describe or its file's toppackages/server/src/session.test.ts:866B6 indeals different first hands when the seeds differ: test has no// spec: <capability>/<scenario>tag, on itself, its describe or its file's toppackages/server/src/session.test.ts:880B6 infalls back to the SCRATCH_SEED env var when no seed option is given: test has no// spec: <capability>/<scenario>tag, on itself, its describe or its file's topBraid run
ux-and-visual-review-21-tasks-from-deskt-c51d6z(43 steps, 1 retried).forgejo/workflows,.gitea/workflowsor.github/workflows); what only CI tests went unverifiedOpened by Braid.