Repository navigation
feat(sudoku): peer + same-digit cell highlighting - #661
Merged
Merged
Conversation
When a cell is selected, faintly highlight every cell sharing its row, column, or 3×3 box (peer highlight), and distinctly highlight all cells showing the same digit (same-digit highlight). Background priority chain: error > selected > sameDigit > highlighted (peer) > given > base. Token additions: - CellTokens.sameDigit (light 0xC8E1B4, dark 0x2A3C20) — vivid leaf green, clearly distinct from cell.highlighted (0xEBF0E2) and cell.selected (0xDCE6D0). - cell() moved to BoardView+Highlighting.swift to keep BoardView.swift at 366 lines (under the 400-line SwiftLint ceiling). Re-recorded 9 snapshot baselines affected by the new tinting (snapshotInProgress_* + snapshotAlmostComplete_*). Empty and completed-board fixtures are unchanged. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
wei18
added a commit
that referenced
this pull request
Jul 1, 2026
…ghting (#662) Records the unified pause/leave menu (#660, 4 owner-driven design rounds), the 3×3 keypad (#658), in-board peer+same-digit highlighting (#661), the CI PR-title relax (#659), and the session's lessons (ground UX in the actual screen; check worktrees before force-remove; don't trust subagent test claims). 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.
Owner-approved in-board UX: highlight the selected cell's peers and all cells sharing its digit. Sudoku-only, pure-visual (no game-logic/determinism).
What
cell.highlightedtoken).cell.sameDigittoken — 0xC8E1B4 light / 0x2A3C20 dark, deliberately distinct from selected/peer).cell()extracted toBoardView+Highlighting.swift(BoardView 400→366, back under the file-length ceiling).Verified
snapshotInProgress_iPhone_light: selected = medium sage, peers = faint pale-green, other same-digit cells = vivid leaf-green — three distinct tiers, board fully readable.🤖 Generated with Claude Code