Skip to content

fix(sudoku): Game Center entry points are dead no-ops when signed out (no dashboard, no sign-in alert) #685

Closed

Description

@wei18

Confirmed on device sim WITH log evidence (2026-07-05 UX audit; build/sim/gc-ck-log.txt).

GameKit system auth failed in sim (GKLocalPlayerAuthenticator → ShowAuthenticationBanner, loginDisabled=1) — expected in an unentitled sim. The bug: tapping EITHER Game Center entry point produces zero GameKit log activity and no visible fallback — no dashboard, no sign-in alert, no re-auth attempt:

  • Home 'Leaderboard' card — per code (UX: Leaderboard card gives no feedback when Game Center is signed out #513) this SHOULD surface showGameCenterSignedOutAlert: GameHomeViewModel.select(.leaderboard) does if case .authenticated = authState { present } else { showGameCenterSignedOutAlert = true }, and the alert is mounted on the stable GameRootViewModel flag via universalRootModifiers specifically to dodge the transient-VM alert footgun. Yet no alert appeared. The fix must find WHY — candidates: authState is .unknown (auth never resolved because the whole iCloud account is dead) and the alert binding/path doesn't fire, or the card's onTap isn't reaching select(.leaderboard).
  • Settings 'Game Center' row — this one has NO signed-out guard by design: SettingsScreen's onGameCenter closure is just { GameCenterDashboard.present() }, which silently no-ops when unauthenticated. Consider routing it through the same signed-out-alert path as the Home card for parity.

Compare CloudKit, which DOES log its failure via Telemetry — the GC path swallows silently. Cross-check on a REAL GC-signed-in sim/device to confirm the authenticated dashboard actually opens (this audit only proved the signed-out path is dead). Screenshots audit-sud-42/43. Verify on BOTH apps (MS has the same two entry points).

Env note ruled OUT as the whole story: this isn't just 'sim has no GC account' — the missing FALLBACK (alert) is the defect, independent of auth success.

Activity

  1. added
    bug
    on Jul 4, 2026
  2. wei18 commented on Jul 5, 2026

    @wei18
    OwnerAuthor

    Second (worse) GC signed-out entry point — fold into this issue's scope (2026-07-05 contract-driven audit, code read-back):

    Beyond the Home Leaderboard card + Settings GC row already described here, the Completion overlay is a third signed-out path and it's WORSE — fully silent:

    • SudokuUI/Completion/CompletionViewModel.swift:89-101 and MinesweeperUI/Completion/MinesweeperCompletionViewModel.swift:73-93 bootstrap() both catch GameCenterError.notAuthenticated/.cancelled and COMPUTE an .unauthenticated state — but the call sites hard-code CompletionScreenState = .hidden (the epic: v2.6 / MS v1.1 — Puzzle Platform UX Refresh (SDD-003) #468 dormant-slice issue), so the signal never reaches the screen. The user gets zero feedback that GC was even attempted.

    So there are really THREE signed-out GC surfaces: Home card (should alert, doesn't), Settings row (no guard, silent present()), Completion (computes .unauthenticated but renders nothing). A complete fix should give all three a consistent signed-out treatment. Note the Completion path is entangled with #468 — resolving #468's 'expose vs delete the leaderboard zone' decision also decides whether Completion can show a signed-out state at all.

  3. wei18 commented on Jul 5, 2026

    @wei18
    OwnerAuthor

    Scope update after #698 (merged in #702): the dead completion leaderboard-zone state machine (5-state fetch/present + onSignIn/retry CTAs) is deleted from both apps, so this issue's Completion entry point no longer exists. Remaining scope = the Home card and Settings row GC entry points only (signed-out behavior). Still gated on the owner confirming the AUTHENTICATED dashboard path on a real GC-signed-in device.

  4. wei18 commented on Jul 6, 2026

    @wei18
    OwnerAuthor

    Owner device check (2026-07-06, real device, GC signed IN): the AUTHENTICATED path works on BOTH apps — Home Leaderboard card and Settings Game Center row both open the GC dashboard. That closes the gate on this issue's open question: the authenticated path is healthy; the defect is confined to the signed-out fallback (no alert from the Home card, silent no-op from the Settings row). Signed-out repro on both apps is being re-verified in the simulator next; fix work is now unblocked. Scope reminder from #698: Completion entry point no longer exists — Home card + Settings row only.

  5. wei18 commented on Jul 6, 2026

    @wei18
    OwnerAuthor

    Signed-out verification matrix complete (sim, iPhone 17 Pro, both apps, 2026-07-06 — full report + screenshots + logs in session scratchpad):

    Cell App Entry Result
    (c) Sudoku Home Leaderboard card NO alert, NO dashboard, screen unchanged; zero GameKit log activity on tap
    (c) Minesweeper Home Leaderboard card same
    (d) Sudoku Settings GC row silent no-op — before/after screenshots byte-identical; positive control (adjacent Reminders row) navigates, so the tap lands and the row is genuinely inert
    (d) Minesweeper Settings GC row silent no-op

    A 10s-post-launch delay variant behaved identically (not an auth-still-resolving timing artifact). Combined with the owner's real-device check (signed-in: both entries open the dashboard on both apps), the defect is fully confined to the signed-out fallback. Fix scope: (1) find why the Home card's showGameCenterSignedOutAlert never fires despite #513's design, (2) route the Settings row through the same signed-out-alert path for parity. Both apps — shared code expected. Fix work starting now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions