Repository navigation
test(completion): snapshot test + sim-driveable debug hook for Play Again - #655
Merged
Merged
Conversation
…gain (#652) Makes the #652 Play Again CTA verifiable: - New snapshot test (CompletionOverlayScaffoldTests) renders the scaffold with a non-nil onPlayAgain, capturing the two-button layout (Play Again above Close). The nil-case baselines are untouched (byte-identical claim preserved). - DEBUG-only: -uitest-near-win-modal now wires onPlayAgain into the near-win board, so the Play Again button appears and tapping it re-presents a fresh board (two-phase dismiss→rebuild). Production wiring untouched. onChange observes (nearWinBoard == nil) rather than the board, so it does not require SudokuNearWinBoard: Equatable (the agent's first cut failed to compile). Sim-verified on device build: Play Again renders (primary green above secondary Close) and re-presents a fresh board with a reset timer — clean transition. GameShellKit 21 / SudokuKit 261 pass; swiftlint --strict 0. Co-Authored-By: Claude <[email protected]>
wei18
added a commit
that referenced
this pull request
Jun 30, 2026
Extends the 2026-06-29 sim-audit log with the follow-on fixes (#646/#651/#654/#655), the Play Again arc, and four Leader-caught agent defects (Daily fork, placeholder L10n, catalog-reformat bleed, compile error masked by an incremental build). Co-authored-by: Claude <[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.
Follow-up to #654 — makes the Play Again CTA verifiable (test + DEBUG-only; no production logic change).
What
CompletionOverlayScaffoldTests: renders the scaffold with a non-nilonPlayAgain, locking the two-button layout (Play Again primary above Close secondary). The nil-case baselines are untouched.-uitest-near-win-modalnow wiresonPlayAgainso the button appears and tapping it re-presents a fresh board (two-phase dismiss→rebuild). Production wiring untouched.onChangeobserves(nearWinBoard == nil)(a Bool) so it does not requireSudokuNearWinBoard: Equatable.Verified
Sim-driven on a device build (this is the point): tapping Play Again on the completion overlay dismisses cleanly and presents a fresh board with a reset timer — no blank cover, no stuck state. The earlier dismiss→present race concern is empirically clean. Screenshots 01/02 in the session shots dir.
GameShellKit 21 / SudokuKit 261 pass; swiftlint --strict 0.
🤖 Generated with Claude Code