Repository navigation
fix(minesweeper): thread the theme through Practice Hub (picker + CTA + text) - #787
Merged
Merged
Conversation
… + text) MinesweeperPracticeHubView carried zero theme.* references — the difficulty picker took the system tint, the Start CTA rendered system blue, and text used .primary/.secondary. The one screen where a new MS player picks a difficulty had no brand/difficulty color identity, unlike Sudoku's PracticeHubView (audit finding #765). Mirrors Sudoku's reference shape exactly: @Environment(\.theme), surface.background + text.primary threaded into PracticeHubShellView, text tokens on the card labels, and one difficulty-derived tint (beginner/intermediate/expert -> difficulty.easy/medium/hard per MinesweeperTheme's own mapping) shared by the segmented picker and the CTA so the two stay visually linked. No snapshot baselines exist for this view (deliberately deferred per the test file's header), so no re-records; visual verification via a temporary record-mode snapshot, eyeballed in light/Beginner (slate-blue picker+CTA on blueprint-paper background) and dark/Expert (rose picker+ CTA on dark surface), then removed — working tree carries only this one source change. Verification: MinesweeperKit full suite 240/240; swift build clean; swiftlint --strict 0 violations. (Sibling audit finding #767 needed no work — already fixed by PR #780.) Closes #765 Co-Authored-By: Claude Fable 5 <[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.
What
Audit finding #765:
MinesweeperPracticeHubViewhad zerotheme.*references — system-blue CTA, untinted picker,.primary/.secondarytext. Now mirrors Sudoku'sPracticeHubViewreference shape:@Environment(\.theme), themed shell background/header, text tokens, and one difficulty-derived tint (difficulty.easy/medium/hard) shared by the segmented picker and the Start CTA.No snapshot baselines exist for this view (deliberately deferred per its test file header) — visual verification via a temporary record-mode snapshot (light/Beginner slate-blue, dark/Expert rose), removed after eyeballing; the diff is one source file (+24/−3).
Sibling audit finding #767 required no work — already fixed by PR #780.
Verification
Closes #765
🤖 Generated with Claude Code