Skip to content

fix(minesweeper): remove divergent board New Game toolbar button (#448) - #449

Merged
wei18 merged 1 commit into
mainfrom
fix/ms-board-remove-newgame-button-448
Jun 9, 2026
Merged

wei18 merged 1 commit into
mainfrom
fix/ms-board-remove-newgame-button-448

Conversation

@wei18

@wei18 wei18 commented Jun 9, 2026

Copy link
Copy Markdown
Owner

What

Removes the divergent .primaryAction New Game toolbar button
(minesweeper.board.newGame) from the Minesweeper .board(...) route in
LiveRouteFactory. Sudoku's board route has no such toolbar item, so this
restores board-route parity (issue #448, item ③).

Why

The button was a Minesweeper-only divergence. The only behavior it provided —
popping back to the difficulty picker — is already reachable from the
Completion overlay's New Game CTA.

What is kept

  • The onNewGame: { Self.popToNewGame(path: path) } argument passed into
    MinesweeperBoardView — the Completion overlay CTA still uses it.
  • The popToNewGame(_:) helper it routes to.

Only the trailing .toolbar { ... } modifier block was removed; two adjacent
comments that referenced the now-gone button were updated to avoid a stale
reference.

Verification

  • swift build --package-path Packages/MinesweeperKit — Build complete.
  • swift test --package-path Packages/MinesweeperKit — 127 tests passed.
  • swift test --package-path Packages/MinesweeperCoreKit — 81 tests passed.
  • git show --stat HEAD — only LiveRouteFactory.swift changed; no snapshot PNGs.

Refs #448.

🤖 Generated with Claude Code

The board route attached a `.primaryAction` "New Game" toolbar button
(`minesweeper.board.newGame`) that Sudoku's board route does not have.
Remove the entire `.toolbar { ... }` block to restore parity.

The `onNewGame` argument into `MinesweeperBoardView` is kept — the
Completion overlay's New Game CTA still uses it — as is the
`popToNewGame` helper it routes to.

Refs #448 (item ③).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@wei18
wei18 merged commit 405adeb into main Jun 9, 2026
4 checks passed
@wei18
wei18 deleted the fix/ms-board-remove-newgame-button-448 branch June 9, 2026 10:09
wei18 added a commit that referenced this pull request Jun 10, 2026
…fix theme/issue citations (#459)

Code Reviewer (REJECT) on PR #462 — four factual inaccuracies in the re-tag pass:
- New Game mode (#410-removed) still depicted: M01/M02 cards, M03 active sidebar row + picker detail, M05/M07/mac-Settings sidebar rows, M08-M12 board navbar buttons (#449-removed), M13 rail button — all purged; M03 detail now shows the shipped Home mode cards
- tokens panel prose/callout still claimed 'no theme' under the IMPLEMENTED heading → rewritten as-built (MinesweeperTheme.swift; baseline-churn note)
- best-time-row citations pointed at #284 (closed, unrelated clear-cache issue) → #455 save-flow (3 spots)
- reminders banner overstated ReminderPrimerCoordinator as 'both apps' → Sudoku post-Daily + shared Settings section (both apps)
- suggestions folded: MS <title> as-built; Settings sub theme phrasing; ErrorReport doc comment no longer cites the removed buffer

Telemetry 28 green.

Co-Authored-By: Claude Fable 5 <[email protected]>
wei18 added a commit that referenced this pull request Jun 10, 2026
…lit re-export shim (#459) (#462)

* chore: re-tag shipped prototypes + remove dead ASC/Telemetry code, split re-export shim (#459)

Leader-applied directly: this session's harness denies ALL subagent file writes (worktree + /tmp); two dispatched Developers completed full fact-verification but could not edit. Edits follow their verified line-level findings.

- reminders-flow.prototype.html: Phase-2 primer shipped (#287) — banner/meta/honesty notes re-tagged as-built; U2/U3 + macOS P12 caveats kept
- minesweeper-app-flow.prototype.html: Home/Daily/Practice (#288/#289), Completion overlay + GC dashboard (#291/#292/#386), MinesweeperTheme — all re-tagged SHIPPED; intentional NOT-YET-BUILT remain only on resume pill (#455) and best-time row (#284); M02 card count fixed 5→4 (#410)
- ASCClient: drop dead ClientError.missingResponseBody + its TODO comment
- ErrorReporter: remove speculative recent() ring buffer (no production consumer, TODO(issue: TBD)) + its test; LiveErrorReporter init simplifies to (telemetry:)
- SudokuEngine: split DeterminismKit re-export out of UTCDayReexport.swift into DeterministicRNGReexport.swift (mirrors MinesweeperEngine)

Won't-fix (investigated): docs/designs/code DesignPreviewSnapshotTests XCTest usage — standalone sandbox package outside Project.swift/xctestplans/CI; never runs in the workspace graph.

Tests: Telemetry 28 (-1 removed), SudokuCoreKit 131, SudokuKit 220, MinesweeperKit 127 — all green; ASCRegisterKit builds.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: address CR blockers — purge removed New Game mode from frames, fix theme/issue citations (#459)

Code Reviewer (REJECT) on PR #462 — four factual inaccuracies in the re-tag pass:
- New Game mode (#410-removed) still depicted: M01/M02 cards, M03 active sidebar row + picker detail, M05/M07/mac-Settings sidebar rows, M08-M12 board navbar buttons (#449-removed), M13 rail button — all purged; M03 detail now shows the shipped Home mode cards
- tokens panel prose/callout still claimed 'no theme' under the IMPLEMENTED heading → rewritten as-built (MinesweeperTheme.swift; baseline-churn note)
- best-time-row citations pointed at #284 (closed, unrelated clear-cache issue) → #455 save-flow (3 spots)
- reminders banner overstated ReminderPrimerCoordinator as 'both apps' → Sudoku post-Daily + shared Settings section (both apps)
- suggestions folded: MS <title> as-built; Settings sub theme phrasing; ErrorReport doc comment no longer cites the removed buffer

Telemetry 28 green.

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