Skip to content

feat(completion): add Play Again (same difficulty) CTA - #654

Merged
wei18 merged 1 commit into
mainfrom
feat/completion-play-again
Jun 30, 2026
Merged

wei18 merged 1 commit into
mainfrom
feat/completion-play-again

Conversation

@wei18

@wei18 wei18 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Closes #652. Reverses SDD-003 Epic 4's "Close only" completion popup (product-approved in the 2026-06-29 sim UX audit).

What

  • CompletionOverlayScaffold gains an optional onPlayAgain → a "Play Again" (.borderedProminent, accent) button above a demoted Close. When nil, layout is byte-identical, so no completion snapshots moved.
  • Both apps wire Play Again to dismiss + re-present a fresh same-difficulty game via the existing draw/present path (Sudoku practice pool; Minesweeper fresh-seed practice board).
  • Daily boards stay Close-only (Leader-added guard): a daily is one-per-day, so Play Again would otherwise silently hand back a practice puzzle. Guarded by SudokuLeaderboardRouting.isDaily (Sudoku) and mode == .practice (Minesweeper).
  • L10n: "Play Again" in both catalogs, all 7 locales translated, Sudoku fixture regenerated, scan:l10n green.

Verify

GameShellKit 21 / SudokuKit 260 / MinesweeperKit 173 pass; scan:l10n green; swiftlint --strict 0.

🤖 Generated with Claude Code

Reverses SDD-003 Epic 4's "Close only" completion popup (product-approved).

- CompletionOverlayScaffold gains optional onPlayAgain → "Play Again"
  (.borderedProminent, accent) above a demoted Close. Nil → byte-identical
  to before, so no completion snapshots move.
- Both apps wire onPlayAgain to dismiss + re-present a fresh SAME-difficulty
  practice game via the existing drawPuzzle/presentGame path (Sudoku) /
  fresh-seed practice board (Minesweeper).
- Daily boards are Close-only: guarded by SudokuLeaderboardRouting.isDaily
  (Sudoku) and mode == .practice (Minesweeper), since a daily is one-per-day
  and Play Again would otherwise hand back a practice puzzle.
- L10n: "Play Again" added to both catalogs, all 7 locales translated
  (es/ja/ko/th/zh-Hans/zh-Hant), Sudoku test fixture regenerated; scan:l10n green.

GameShellKit 21 / SudokuKit 260 / MinesweeperKit 173 pass; swiftlint --strict 0.

Closes #652

Co-Authored-By: Claude <[email protected]>
@wei18
wei18 merged commit f806679 into main Jun 30, 2026
4 checks passed
@wei18
wei18 deleted the feat/completion-play-again branch June 30, 2026 02:27
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]>
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.

feat(completion): add Play Again (same difficulty) — revisit SDD-003 Epic 4 'Close only'

1 participant