Repository navigation
fix(sudoku): move elapsed timer into the board header, retire modal chrome capsule - #677
Merged
Merged
Conversation
…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]>
…nit) Co-Authored-By: Claude Fable 5 <[email protected]>
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]>
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.
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 gatedif gameChrome == nil— hidden exactly in the modal context, where the separateGameModalContentcapsule (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 zerogameChromereferences — this was a Sudoku-only mirror drift.Fix: un-gate the header timer (renders in modal + macOS push contexts), remove Sudoku's chrome feed (
updateElapsedtick +setHidingChrome), gutGameModalContentto a pass-through (kept for stable view identity).GameChromeStateseam 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