Skip to content

refactor(daily): move DailyHub test-only seams off the shipping UI surface - #907

Merged
wei18 merged 1 commit into
mainfrom
refactor/905-dailyhub-test-seams
Jul 20, 2026
Merged

wei18 merged 1 commit into
mainfrom
refactor/905-dailyhub-test-seams

Conversation

@wei18

@wei18 wei18 commented Jul 20, 2026

Copy link
Copy Markdown
Owner

What

Demotes the DailyHub test-only seams (setPhase2PendingForTesting, setStateForTesting, setWeekStripForTesting, and the related access widenings) from public to internal on SudokuUI/MinesweeperUI, and extracts MS's inline seams to MinesweeperDailyHubViewModel+Testing.swift mirroring Sudoku's +Testing.swift shape.

Why

These seams (accreted across #842/#878/#882/#886 for snapshot fixtures) were test scaffolding on the shipping product surface. Consumer inventory showed every caller is an in-package test target (or GameTestSupportKit) using @testable import, so plain internal is sufficient — no @_spi, no new target. A normal import SudokuUI / import MinesweeperUI now sees zero test seams.

Verification

  • SudokuKit --filter DailyHub 68 + --filter Snapshot 4 pass
  • MinesweeperKit --no-parallel 361 pass; GameTestSupportKit 3 pass
  • swiftlint --strict 0 violations on the 4 touched files
  • Dual CR (independent reviewers): APPROVE ×2, no blocking findings

Closes #905

🤖 Generated with Claude Code

…rface

The DailyHub view models exposed test-only API on the shipping SudokuUI/
MinesweeperUI product surface (setPhase2PendingForTesting, setStateForTesting,
setWeekStripForTesting, plus internal(set)/public widenings), accreted across
#842/#878/#882/#886 to drive snapshot fixtures without bootstrap().

Every consumer is an in-package test target (or GameTestSupportKit) using
@testable import, so the lightest mechanism suffices: demote all seams to
internal — no @_spi, no new target. MS's inline seams move to a new
MinesweeperDailyHubViewModel+Testing.swift mirroring Sudoku's +Testing.swift
shape; doc comments travel with them. A normal import SudokuUI /
import MinesweeperUI now sees zero test seams.

Verified: SudokuKit --filter DailyHub 68 + Snapshot 4, MinesweeperKit
--no-parallel 361, GameTestSupportKit 3 all green; swiftlint --strict 0
violations on the 4 touched files. Dual CR: APPROVE x2, no blocking findings.

Closes #905

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 enabled auto-merge (squash) July 20, 2026 04:47
@wei18
wei18 merged commit 464ab07 into main Jul 20, 2026
5 checks passed
@wei18
wei18 deleted the refactor/905-dailyhub-test-seams branch July 20, 2026 04:48
@wei18 wei18 mentioned this pull request Jul 20, 2026
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.

refactor: move DailyHub test-only seams out of the shipping UI product surface

1 participant