Skip to content

chore(gamecenter): remove the dead leaderboard-slice chain left by #1009 - #1011

Merged
wei18 merged 3 commits into
mainfrom
chore/1010-remove-dead-leaderboard-chain
Aug 13, 2026
Merged

wei18 merged 3 commits into
mainfrom
chore/1010-remove-dead-leaderboard-chain

Conversation

@wei18

@wei18 wei18 commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Removes the entire dead leaderboard-slice chain that #1009 deliberately deferred: the three GameCenterClient protocol requirements (fetchLeaderboardSlice, friendsAuthorizationStatus, requestFriendsAuthorization) plus everything that becomes orphaned with them — LeaderboardSliceService, LeaderboardScope, LeaderboardSlice, LeaderboardEntry, LeaderboardLoader, GKLeaderboardLoader, FakeLeaderboardLoader, FriendsAuthStatus, GameCenterError.friendsAccessDenied, the fake's ownRankSlice knobs, and the leaderboardLoader injection point.

Rationale: an always-throwing live stub behind try? is exactly what shipped the dead Friends button. Zero production callers confirmed by scan before dispatch; rg over Packages/ finds zero remaining references after.

Verification: swift test green on GameCenterKit (--no-parallel, 29 tests), GameAppKit (56), SudokuKit (13 filter batches), MinesweeperKit (375); swiftlint --strict 0 violations on changed files; no snapshot re-record. The two NearWin conformers sit inside #if os(iOS) — verified separately with an iOS Simulator destination build (see PR checks/comments).

Closes #1010. Part of #983.

🤖 Generated with Claude Code

wei18 and others added 2 commits August 13, 2026 09:05


#1009 removed the app-owned Daily Rank screen but deferred removing the
protocol members it orphaned. `fetchLeaderboardSlice`,
`friendsAuthorizationStatus`, and `requestFriendsAuthorization` had zero
production callers, and the always-throwing `requestFriendsAuthorization`
live stub was exactly the failure shape behind the shipped dead-button bug.

Removes the whole chain: 6 whole-file deletions (Leaderboard/Slice.swift,
GKLeaderboardLoader.swift, FakeLeaderboardLoader.swift, and their three test
files) plus partial edits across the protocol, LiveGameCenterClient,
FakeGameCenterClient, UITestFakeSeams, both Sudoku NearWin modifiers, three
GameAppKit inline test fakes, and ProtocolShapeTests. Annotates the four docs
mentions as removed without rewriting their historical narrative.

`LeaderboardKind`, `LeaderboardIDs`, `PlayerSummary`, `GameCenterSink`, and
`SudokuLeaderboardRouting` (the submitScore path) are untouched.
MinesweeperKit needed no symmetric change (it shares `FakeGameCenterClient`
and had zero direct references to the removed chain).

part of #983
closes #1010

Co-Authored-By: Claude <[email protected]>
…ice chain

Review finding (MINOR) on #1011: the Triggers line was annotated as removed
but the adjacent Purpose line and slice-driven States entries in the same
section still read as live. Annotate them in the same strikethrough style.

Part of #1010.

Co-Authored-By: Claude <[email protected]>
@wei18

wei18 commented Aug 13, 2026

Copy link
Copy Markdown
Owner Author

iOS Simulator build verification (the #if os(iOS) gap — #953 class)

Both edited NearWin conformer files (SudokuNearWinModifier.swift, SudokuNearWinModalModifier.swift) sit inside #if os(iOS) blocks, which macOS-host swift test never compiles. Verified separately against this branch at 11521cd (the doc-only follow-up aa21139 does not touch these files):

cd <worktree>/Packages/SudokuKit
xcodebuild -scheme SudokuUI -destination 'generic/platform=iOS Simulator' build
** BUILD SUCCEEDED **  (exit 0)

This compiles the iOS-only blocks, confirming the conformer removals are complete there too (a leftover implementation of a deleted requirement or a missing one would fail this build).

Review status: dual code review completed (mechanical scan: zero findings; deep review: 1 MAJOR = this missing evidence, addressed by this comment; 1 MINOR = 06-completion.md annotation consistency, fixed in aa21139). No BLOCKER.

🤖 Generated with Claude Code

…AS-BUILT NOTE

Acceptance-pass observation on #1011: the 2026-07-05 AS-BUILT NOTE still
implied the slice logic exists but is hidden. Annotate it as resolved by the
full chain removal.

Part of #1010.

Co-Authored-By: Claude <[email protected]>
@wei18
wei18 merged commit 932b96b into main Aug 13, 2026
6 checks passed
@wei18
wei18 deleted the chore/1010-remove-dead-leaderboard-chain branch August 13, 2026 02:27
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.

chore(gamecenter): remove the dead leaderboard-slice chain left by #1009

1 participant