Repository navigation
fix(settings): bundle version in Sudoku settings + silence IAP cancel toast - #646
Merged
Merged
Conversation
…ncel toast Bug 1 (#644): LiveRouteFactory now passes `appVersion:` from `CFBundleShortVersionString` into `SettingsViewModel`, matching the Minesweeper pattern exactly. The hardcoded "1.0.0" default is no longer used at runtime. Bug 2 (#645): both catch blocks in `MonetizationStateController` (`purchaseRemoveAds` + `restorePurchases`) now detect `StoreKitError.userCancelled` and treat it as a silent no-op, mirroring the in-band `.userCancelled` return-value handling. Genuine errors show a generic "Purchase failed" message instead of leaking `String(describing: error)` (which surfaced raw enum names like "userCancelled" when the App Store sign-in sheet was dismissed). `internal import StoreKit` added to MonetizationUI — StoreKit is already in the AppMonetizationKit seam; MonetizationUI previously omitted it only by convention. Closes #644 Closes #645 Co-Authored-By: Claude <[email protected]>
wei18
added a commit
that referenced
this pull request
Jun 29, 2026
39-screenshot idb audit of Sudoku + Minesweeper v2.6.0 with 3 parallel design/a11y reviewers. Filed #644/#645/#647/#648/#649/#650/#652; shipped #646 (version + IAP toast) and #651 (accent-blue leaks). Records two Leader-caught false positives (completion-Close debug artifact; #648 iOS-26 cancel render) and the verified non-bugs (raw-seconds idiom, per-game theming, GC-entitlement no-op). Co-Authored-By: Claude <[email protected]>
wei18
added a commit
that referenced
this pull request
Jun 29, 2026
39-screenshot idb audit of Sudoku + Minesweeper v2.6.0 with 3 parallel design/a11y reviewers. Filed #644/#645/#647/#648/#649/#650/#652; shipped #646 (version + IAP toast) and #651 (accent-blue leaks). Records two Leader-caught false positives (completion-Close debug artifact; #648 iOS-26 cancel render) and the verified non-bugs (raw-seconds idiom, per-game theming, GC-entitlement no-op). Co-authored-by: Claude <[email protected]>
wei18
added a commit
that referenced
this pull request
Jun 30, 2026
Extends the 2026-06-29 sim-audit log with the follow-on fixes (#646/#651/#654/#655), the Play Again arc, and four Leader-caught agent defects (Daily fork, placeholder L10n, catalog-reformat bleed, compile error masked by an incremental build). Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes two bugs found in the interactive simulator UX audit (2026-06-29).
#644 — Sudoku Settings showed hardcoded "1.0.0"
SudokuAppComposition/LiveRouteFactory.swift.settingscase now readsCFBundleShortVersionStringfromBundle.mainand passes it asappVersion:toSettingsViewModel, matching Minesweeper'sLiveRouteFactoryexactly (same?? "1.0.0"fallback). Verified live: Sudoku Settings now shows the real bundle version instead of the unused default.#645 — raw "userCancelled" error string leaked as a toast
Both catch blocks in
MonetizationUI/MonetizationStateController.swift(purchaseRemoveAds+restorePurchases) previously surfacedString(describing: error)directly to the user — dismissing the App Store sign-in sheet produced a "userCancelled" failure toast on Home. Now:StoreKitError.userCancelledis treated as a silent no-op (mirrors the existing in-band.userCancelledreturn-value handling).Verification
swift test --package-path Packages/SudokuKit— 260 tests passswift test --package-path Packages/AppMonetizationKit— 114 tests passswiftlint --stricton both changed files — 0 violationsCloses #644
Closes #645
🤖 Generated with Claude Code