Repository navigation
feat(minesweeper): gameview UX uplift — fill-height board, toggle below, softer completion card - #663
Merged
Merged
Conversation
…ow, softer completion card - F3: board fills available height, scrolls at most one axis (remove aspectRatio slot; 3-branch GeometryReader). Intermediate/Expert no longer both-axis scroll with empty bands. - F2: move Reveal/Flag mode toggle below the board (thumb zone, mirrors Sudoku). - F1 (shared GameShellUI): replace hero card .glassEffect with .regularMaterial + soft shadow — removes the hard Liquid-Glass shadow band under the completion card (both apps). Cross-platform (iOS+macOS). - Remove orphaned boardAspectRatio. Co-Authored-By: Claude Opus 4.8 <[email protected]>
The #F3 fill-height board now extends to the top of the screen, so the modal's floating timer capsule (GameModalContent, fed via gameChrome) overlapped the top mine rows on Intermediate/Expert. Retire that capsule for Minesweeper: stop pushing elapsed to the chrome and surface the clock in the in-board status row (mm:ss). Also removes the B1 dead-zone (the capsule + its gap are gone). Removes the now-orphaned gameChrome env read, the two setHidingChrome hooks, and the unused GameAppKit import. Sudoku keeps the shared capsule (its 9×9 board never fills to the top, so no collision). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
wei18
added a commit
that referenced
this pull request
Jul 4, 2026
…hrome capsule (#677) * fix(sudoku): move elapsed timer into the board header, retire modal chrome capsule (#674) The modal chrome's floating timer capsule (GameModalContent, GameAppKit) rendered at a fixed .padding(.top, 56) independent of where the board's own header actually landed, so it overlapped the grid's first row on some devices. Minesweeper already solved this in #663 by surfacing its clock in the board's own status bar; Sudoku's BoardView already had an in-header timerLabel but suppressed it whenever gameChrome != nil (i.e. exactly the modal case that was broken) in favor of feeding the capsule instead. Mirror the MS fix: always render Sudoku's timerLabel in BoardView's header (both modal and macOS push contexts), stop feeding chromeState.updateElapsed / setHidingChrome from BoardView, and drop the now-dead capsule rendering from GameModalContent. GameChromeState and the \.gameChrome environment key are kept as an unused injection seam per the dispatch spec, not deleted in this surgical fix. Co-Authored-By: Claude Fable 5 <[email protected]> * docs(gameappkit): refresh stale gameChrome injection comment (CR #674 nit) Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Minesweeper gameview UX uplift
Designer-led (dual-model) UX pass on the Minesweeper gameplay screen, grounded in real simulator screenshots and verified on-device (iPhone 17 Pro) on both apps.
Changes
.aspectRatioslot (the cause of the centered-square-with-empty-bands + both-axis scroll on Intermediate/Expert). New 3-branchGeometryReader: fits-both (center) → fill-height + horizontal-only scroll (heightFit) → small-phone both-axis fallback at the 32pt tap floor (never worse than before). Intermediate (16×16) and Expert (30×16) now fill the screen with comfortable ~34pt cells and single-axis scroll.GameShellUI, both apps). Replaced the hero card's.glassEffect(.regular,…)with.regularMaterial+ a soft drop shadow — kills the hard rectangular Liquid-Glass shadow band under the completion card. Cross-platform (iOS + macOS).gameChromeplumbing + unusedGameAppKitimport. Sudoku keeps the shared capsule (its 9×9 board never reaches the top).Verification
swift test: MinesweeperKit 173/173, SudokuKit 303/303, GameShellKit 21/21. SwiftLint--strictclean. Snapshot baselines re-recorded + eyeballed.Not included (follow-up)
mainpre-F1), tracked as a separate focused fix.