Skip to content

feat(minesweeper): Home mode-card entry + reachable Daily/Practice hubs (#288, #289) - #302

Merged
wei18 merged 1 commit into
mainfrom
feat/ms-home-reachable-hubs-288-289
Jun 3, 2026
Merged

wei18 merged 1 commit into
mainfrom
feat/ms-home-reachable-hubs-288-289

Conversation

@wei18

@wei18 wei18 commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Closes #288 and #289. Builds Minesweeper's Home entry surface (mirroring Sudoku's HomeView) and makes the previously-unreachable Daily/Practice hubs navigable.

  • New MinesweeperHomeView + MinesweeperHomeViewModel — mode-card grid (New Game / Daily / Practice / Leaderboard / Settings) + Remove Ads card + banner slot, MS-theme-tinted, 1/2-col responsive (mirror Sudoku).
  • AppRoute gains .newGame/.daily/.practice; LiveRouteFactory resolves all three → MinesweeperDailyHubView/MinesweeperPracticeHubView now reachable.
  • MinesweeperRoot root content swapped NewGameView → MinesweeperHomeView; New Game becomes a .newGame destination (NewGameView itself untouched). Sidebar gains Daily/Practice.
  • Leaderboard = disabled "Coming soon" stub (not an AppRoute, GC modal side-effect per Switch to native GameCenter UI — remove custom LeaderboardView #49) until feat(minesweeper): Leaderboard / Game Center integration #291.

CR: APPROVE-WITH-NITS (no Blocker/High). Verified: Home/hubs render under MinesweeperTheme (no neutral fallback); .newGame-as-route redesign regression-free (Home→NewGame→Board chain preserved, factory exhaustive); structure matches the TARGET prototype (M02); zero Sudoku changes; swift6 clean; 51 tests pass. Daily hub shows placeholder until the Daily model (#290).

🤖 Generated with Claude Code

MS opened straight to NewGameView; the Daily/Practice hubs existed in
source but had no AppRoute and were unreachable. Add a Home mode-card
entry surface mirroring Sudoku's HomeView and make the hubs reachable.

- MinesweeperHomeView + MinesweeperHomeViewModel: mode-card grid (New
  Game, Daily, Practice, Leaderboard, Settings) using RoutePath<AppRoute>
  navigation (#240) + MinesweeperTheme tokens (no hardcoded colors).
  Optional Remove Ads card + banner slot mirror Sudoku.
- AppRoute: add .newGame, .daily, .practice cases. Leaderboard stays a
  GC modal side-effect (not a route, mirror #49) — disabled stub card
  until MS Game Center lands (#291).
- LiveRouteFactory: resolve .newGame/.daily/.practice; hubs reachable.
- MinesweeperRoot: root content swapped from NewGameView to
  MinesweeperHomeView; sidebar gains Daily/Practice; banner + monetization
  deps threaded from composition.
- Tests: Home VM interaction (local-stub + injected-binding), new route
  factory + AppRoute coverage. swift build + 51 tests green.

Daily hub shows date-seeded placeholder cards until the Daily model
lands (#290); functional-as-is.

Closes #288, #289

Co-Authored-By: Claude Opus 4.8 <[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(minesweeper): Home + Root mode-card entry surface (mirror Sudoku HomeView)

1 participant