Skip to content

fix(sudoku): move elapsed timer into the board header, retire modal chrome capsule - #677

Merged
wei18 merged 2 commits into
mainfrom
fix/674-sudoku-timer-placement
Jul 4, 2026
Merged

wei18 merged 2 commits into
mainfrom
fix/674-sudoku-timer-placement

Conversation

@wei18

@wei18 wei18 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Fixes #674 (owner device report): the floating modal chrome timer capsule rendered on top of the board's first grid row.

Root cause: Sudoku's header already HAD an in-header timerLabel, but gated if gameChrome == nil — hidden exactly in the modal context, where the separate GameModalContent capsule (fixed .padding(.top, 56)) rendered instead and overlapped the grid. Minesweeper had already moved its timer into its own status bar in #663 and has zero gameChrome references — this was a Sudoku-only mirror drift.

Fix: un-gate the header timer (renders in modal + macOS push contexts), remove Sudoku's chrome feed (updateElapsed tick + setHidingChrome), gut GameModalContent to a pass-through (kept for stable view identity). GameChromeState seam is now fully dormant — kept compiling with doc flags; removal is a follow-up.

Verification: GameAppKit 23/23 · SudokuKit 261 · MinesweeperKit 173 · GameShellKit 21; zero snapshot changes (no test injects \.gameChrome, so baselines already rendered the header timer — spot-verified by CR). Sim-verified on iPhone 17 Pro (-uitest-near-win-modal): timer ticks in the header row, nothing overlaps the grid — Leader eyeballed the screenshots. Dual CR APPROVE ×2; sonnet's stale-comment nit fixed in c61f386.

🤖 Generated with Claude Code

wei18 and others added 2 commits July 4, 2026 17:16
…hrome 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]>
@wei18
wei18 merged commit 875c6d6 into main Jul 4, 2026
4 checks passed
@wei18
wei18 deleted the fix/674-sudoku-timer-placement branch July 4, 2026 09:26
wei18 added a commit that referenced this pull request Jul 5, 2026
…ain (#695)

Session log: 4-screenshot bug wave (#673-#677), three-lane dual-app
UIUX/spec audit, navigation-flows + screen-contracts spec (#683), the
screen-contract-spec skill (#684), the contract-driven static pass, the
4-PR fix train (#690-#693), two evidence-based environmental downgrades,
and the gated open items (#685/#468/B1-B4/#694).

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.

fix(sudoku): modal chrome timer capsule overlaps the board's first row

1 participant