Re-designed the New Game pane so its three settings are visual… #9
Loading…
Reference in a new issue
No description provided.
Delete branch "osf/177-re-design-new-game-pane"
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
CreateRoom.tsx).game-lobby.test.tsx).npm test) passed, and a judge opened the app served and confirmed the pane is clean with the correct defaults and that a full scripted game ran end to end with no console errors.How to review
git checkout osf/177-re-design-new-game-pane.npm test— the new "new game settings pane" cases should pass alongside the existing suite.npm start— when it printsScratch server listening on http://127.0.0.1:3000, open that URL.packages/client/src/components/CreateRoom.tsx, then its styling inpackages/client/src/styles.css.Code review
Reviewed the New Game pane re-design: CreateRoom.tsx now renders the round schedule and first lead as segmented two-button radiogroups and the dealer restriction as a checkbox-based toggle switch, all matching the spec (name-only labels, no rule prose, defaults Down/off/left-of-dealer, same onCreate flow) and mirroring the existing avatar-picker pattern. The new tests in game-lobby.test.tsx assert the control markup, the stable option names, the defaults-selected case, and the absence of the old prose, and the CSS gives the controls distinct selected/unselected states using the app's existing variables. One fix: the change orphaned the .radio-row/.check-row/.radio-group CSS rules (their only use was the old markup), so I removed them from styles.css; the touched test file and typecheck pass.
Fixed before the commit
packages/client/src/styles.css:127: The .radio-row, .check-row and .radio-group rules were orphaned dead CSS: their only usage was the old radio/checkbox markup this change removed from CreateRoom.tsx. Removed the three rules.Tests
All 3 scenarios of
re-design-new-game-pane-the-new-game-pan-2rc480have a tagged test.The test lint recorded nothing in the run's tests.
Braid run
re-design-new-game-pane-the-new-game-pan-2rc480(29 steps).forgejo/workflows,.gitea/workflowsor.github/workflows); what only CI tests went unverifiedOpened by Braid.