Repository navigation
fix(home): statistics entry follows the mode-card format - #857
Merged
Merged
Conversation
Owner override of #773's flat-row adjudication: Statistics rendered as a lighter-weight HomeSecondaryEntryLink (gray icon, no subtitle, no card background) while the four modes render as full HomeModeCard cards. Promote Statistics to the same HomeModeCard component (themed icon tint, bold title, new subtitle "Wins / times / averages", chevron), threaded via a new GameConfig.statsSubtitleKey through GameHomeViewModel into GameHomeView. Position stays the 5th entry below the 4-card grid; only the visual format changed. HomeModeCard generalized to take explicit symbolName/titleKey/subtitleKey instead of a HomeMode case, since Statistics isn't one of the four canonical modes. HomeSecondaryEntryLink deleted (no other consumers). L10n: new key added to both catalogs, all 7 locales. Home snapshot baselines re-recorded in both apps (approved design change). Closes #844 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
Closes #844 (owner report: Statistics 按鈕的 UI 沒有跟隨該頁其他按鈕格式) — the Home Statistics entry now renders as the same mode-card format as Daily/Practice/Leaderboard/Settings, in both apps.
Shape
HomeModeCardgeneralized (mode: → symbolName/titleKey/subtitleKey — pure signature refactor, four existing callers pass identical values; no per-mode tint existed to lose).HomeSecondaryEntryLinkdeleted (zero live references).GameConfig.statsSubtitleKeythreaded through GameAppKit; both apps set "Wins / times / averages" (L10n ×7 locales ×2 catalogs, fixture synced).Review
Dual CR, both APPROVE (mechanical 10/10; adversarial verified the four cards' pixels unchanged, iPad full-bleed-two-column row intentional-and-clean, a11y parity with existing card behavior, clean merge-tree vs current main). One low-sev note for the #479 scaffold author (blank subtitle line if a future game forgets statsSubtitleKey) — recorded on #479.
Verification
GameShellKit 28/28 · GameAppKit 43/43 · SudokuKit Home 23/23 · MinesweeperKit 324/324 --no-parallel (pre-#841 base; merge-tree clean vs 45d2aae+) · scan:l10n green · swiftlint --strict clean · 10 Home baseline pairs re-recorded, zero unrelated churn.
🤖 Generated with Claude Code