Skip to content

feat(minesweeper): gameview UX uplift — fill-height board, toggle below, softer completion card - #663

Merged
wei18 merged 3 commits into
mainfrom
feat/ms-gameview-uplift
Jul 1, 2026
Merged

wei18 merged 3 commits into
mainfrom
feat/ms-gameview-uplift

Conversation

@wei18

@wei18 wei18 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

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

  • F3 — board fills height, scrolls at most one axis. Removed the fixed .aspectRatio slot (the cause of the centered-square-with-empty-bands + both-axis scroll on Intermediate/Expert). New 3-branch GeometryReader: 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.
  • F2 — Reveal/Flag mode toggle moved below the board (thumb zone, mirrors Sudoku's below-board controls).
  • F1 — softer completion card (shared 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).
  • Timer no longer covers the mine board (fixes an F3-introduced regression + the B1 dead-zone). With the board filling to the top, the modal's floating timer capsule overlapped the top mine rows on Intermediate/Expert. Retired that capsule for Minesweeper and surfaced the clock (mm:ss) in the in-board status row; removed the now-orphaned gameChrome plumbing + unused GameAppKit import. Sudoku keeps the shared capsule (its 9×9 board never reaches the top).

Verification

  • On-device sim: Beginner (fits, no scroll), Intermediate + Expert (fill height, horizontal-only scroll — vertical swipe no-op, horizontal scrollbar present), timer in status row not over the board, MS Boom + Sudoku Solved cards both render with the soft shadow (no regression).
  • swift test: MinesweeperKit 173/173, SudokuKit 303/303, GameShellKit 21/21. SwiftLint --strict clean. Snapshot baselines re-recorded + eyeballed.
  • Dual-model code review (Sonnet + Haiku): approved — cross-platform safe, Mac 600pt cap preserved, no div-by-zero, no orphans.

Not included (follow-up)

  • Completion card vertical centering (both apps) — a pre-existing top-alignment (confirmed identical on main pre-F1), tracked as a separate focused fix.

wei18 and others added 3 commits July 1, 2026 19:02
…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]>
@wei18
wei18 merged commit 0783ae6 into main Jul 1, 2026
4 checks passed
@wei18
wei18 deleted the feat/ms-gameview-uplift branch July 1, 2026 15:47
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant