Repository navigation
fix(sudoku): unify completion to the in-board overlay on all platforms - #669
Merged
Merged
Conversation
#667) macOS boards are NavigationStack pushes (path != nil), and the win handler pushed a separate `.completion` route whose Close only popped that route, stranding the player on the solved board underneath (SDD-003 audit P1). `shouldPresentCompletionOverlay` no longer gates on `path`, so the overlay now fires on every platform; Close picks dismiss (modal) vs a stack pop (push) via the new `exitToHub` helper, always landing back on the hub. DailyHubViewModel.openCompleted still constructs `AppRoute.completion` for the unrelated re-view-a-solved-daily flow (#379), so the case and its LiveRouteFactory destination stay. Also adds the terminal-state pause-button guard (audit P2), mirroring Minesweeper's `pauseToggle`, so the header control isn't visibly-but-dead once a game is won. Minesweeper is untouched (git diff confirms zero changes under Packages/MinesweeperKit) — its terminal flow was already overlay-based and its own pushed `.completion(difficulty:)` route is a different feature. Co-Authored-By: Claude Fable 5 <[email protected]>
…667) The `path` doc comment still described the deleted push-`.completion` behavior; it now names the actual consumer (the completion overlay's Close pop via exitToHub). Co-Authored-By: Claude Fable 5 <[email protected]>
SudokuNearWinModalModifier still described its sibling as the NavigationStack-push variant; both hooks are overlay-based since the Jul-3 cleanup and the push completion path is deleted (#667 2B). Co-Authored-By: Claude Fable 5 <[email protected]>
4 tasks
Closed
wei18
added a commit
that referenced
this pull request
Jul 28, 2026
… order (#934) (#958) * chore(upkeep): fix skill counts, prototype tags, noop spelling, plist order (#934) Five surgically-scoped fixes from the #934 upkeep triage (all verified against main @ 972d7a7): 1. CLAUDE.md §Where truth lives claimed 9 project-bound skills; actual flat-skill count under .claude/skills/ (excluding the apple-dev-skills submodule) is 8 — screen-contract-spec's master copy moved out to the design-app playbook on 2026-07-21 (6e5b1a2). 2. Same stale "9" count in docs/superpowers/specs/2026-06-24-apple-dev-skills -shared-plugin-design.md (AS-BUILT NOTE, architecture diagram, §5 header) — corrected to 8, with a new dated UPDATE note (mirroring the doc's own 2026-07-13 correction convention) explaining the reversion without erasing the historical 07-13 record. 3. Both app-flow prototypes still labeled the board->completion transition "push .completion". Shipped reality (#667/#669 Sudoku, #388/#386 MS): completion mounts as an in-board overlay, not a stack push; the pushed .completion route serves only the daily re-view. Re-tagged the S09/M14 edges and Sudoku's untagged S09 node + prose (which also referenced a nonexistent "retry" completion variant); MS's edge now uses the same kind:'state' (overlay, no push) treatment already used for its sibling M11->M12 lose-overlay edge. 4. Packages/TelemetryKit/Sources/Telemetry/NoOpTrackingSink.swift was the sole "NoOp" (capital O) type in a codebase that otherwise spells this pattern "Noop" (NoopErrorReporter and 6 other sibling placeholder types repo-wide). Renamed type + file to NoopTrackingSink; updated its test file and the GameAppKit call site. 5. App/Sudoku/Info.plist and App/Minesweeper/Info.plist had NSUserTrackingUsageDescription at different positions in an otherwise identical key sequence. Reordered Minesweeper's copy (the one that broke the shared LS*/NSGameKit*/NSUserTracking* block ordering, present since the two Info.plists first diverged pre-#393) to match Sudoku's. Co-Authored-By: Claude Fable 5 <[email protected]> * docs(designs): finish the S09 as-built sync + rename the foundations example (#934) CR round 1 on PR #958: - sudoku-app-flow.prototype.html: the sentence item 3 edited still claimed a leaderboard slice with sign-in/loading variants — all deleted by #698 (CompletionView is hero + time + mistakes + Close only). Prose and the S09 phone-label now say so. - foundations.md: the TelemetrySink code example renamed to NoopTrackingSink to match the item-4 rename (a current-API example, unlike the frozen v1 docs which keep the old spelling as history). Co-Authored-By: Claude <[email protected]> * docs(designs): drop the stale .loaded(slice) source note on S09 (#934) Acceptance caught the phone-source annotation two lines below the corrected S09 label still citing the #698-deleted CompletionState machinery. Co-Authored-By: Claude <[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.
What
Item 2B from #667 (SDD-003 gameview UX audit follow-up): Sudoku's completion now presents as the in-board
CompletionOverlayScaffoldoverlay on every platform. The macOS-only pushed.completionroute — whose Close popped one route and stranded the player on the solved board (audit P1) — is gone.shouldPresentCompletionOverlayno longer gates onpath == nil; the overlay is the single completion presentation.exitToHub(dismiss:): modal context →dismiss()(unchanged); push context (macOS) → pops the board's own stack entry, landing back on the hub. Close and Play Again both route through it.GameViewModel.completionRoute,BoardView.pushCompletionIfNeeded(), and thehasNavigatedToCompletionstate.MinesweeperBoardView.pauseToggle.AppRoute.completion+ itsLiveRouteFactorycase —DailyHubViewModel.openCompleted()(UX: solved Daily card stays tappable → dead completed board #379, re-view a solved daily) still pushes it. That flow is unrelated to the terminal path.git diffempty underPackages/MinesweeperKit) — its terminal flow was already overlay-based; its own.completion(difficulty:)route is the fix(minesweeper): mirror #379 — re-tap solved daily card routes to Completion #386 re-view feature.Verification
swift test: SudokuKit 261/261 · MinesweeperKit 173/173 · GameShellKit 21/21 · GameAppKit 23/23.mise run lint:swift_strictclean on changed files.xcodebuild testXCUITest run onplatform=macOSdrove the production flow — Practice → Draw → push-context board → winning move → completion overlay (game.completion.hero) appeared → Close → landed back on the Practice hub, digit pad gone (not stranded on the solved board), overlay dismissed. Test passed in 36.9s. (Driven via a temporary local near-win hook + temp E2E test, both reverted — not part of this diff.)exitToHubunit tests (pops exactly the board's entry; safe on empty path).Refs #667 (2B done; 2C tracked separately in the same issue).
🤖 Generated with Claude Code