Skip to content

fix(gameappkit): hide dead open game center button when signed out - #990

Merged
wei18 merged 1 commit into
mainfrom
worktree-agent-a35a32deb144265f5
Aug 5, 2026
Merged

wei18 merged 1 commit into
mainfrom
worktree-agent-a35a32deb144265f5

Conversation

@wei18

@wei18 wei18 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Sim-verified defect (feat(gamecenter): friends leaderboard — surface the friendsAllTime slice in an app-owned view #983): in the not-signed-in Daily Rank state, the persistent bottom "Open Game Center" button was still shown alongside the correct "Sign in to Game Center" explainer + CTA, but tapping it is a silent no-op — GKGameCenterViewController refuses to present when GKLocalPlayer isn't authenticated.
  • Hides (not disables) the button in exactly that state; still shown for friends-unauthorized, empty, populated, and network-error states, which all have an authenticated player.

Test plan

  • swift test --package-path Packages/GameAppKit — 66 tests / 12 suites pass, including DailyRankViewModel — #983 states.
  • swift test --package-path Packages/SudokuKit --filter DailyRank — 6 tests pass; no existing snapshot scripts the not-signed-in state, so no baseline changed.
  • swift test --package-path Packages/MinesweeperKit --filter DailyRank — 7 tests pass; same, no baseline changed.
  • swiftlint lint --strict on the touched file — 0 violations.

Part of #983.

🤖 Generated with Claude Code

GKGameCenterViewController silently refuses to present when the local
player isn't authenticated, so the persistent "Open Game Center" CTA
was a dead no-op in the not-signed-in state — exactly what an App
Review tester may see first. Hide it there; the Sign In CTA is the
sole correct action. Still shown for friends-unauthorized, empty,
populated, and network-error states, which all have an authenticated
player.

Part of #983.

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 merged commit fa29748 into main Aug 5, 2026
5 checks passed
@wei18
wei18 deleted the worktree-agent-a35a32deb144265f5 branch August 5, 2026 13:45
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