Skip to content

Stop sepia-dimming the board while in analysis mode - #824

Merged
IongIer merged 2 commits into
hiveboardgame:mainfrom
Moltenfire:fix/analysis-board-sepia-dim
Sep 10, 2026
Merged

IongIer merged 2 commits into
hiveboardgame:mainfrom
Moltenfire:fix/analysis-board-sepia-dim

Conversation

@Moltenfire

@Moltenfire Moltenfire commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Viewing a non-final history position dims the board with a sepia filter to signal it isn't live play. The piece-rendering branch right below it already carves out an !in_analysis exception for this (introduced in 77f1506, "Better gamestate prop (#464)"), but the history_style sepia class was never given the same exception.

Since GameStateStore (and its board_view field) is provided once at the app root and persists across client-side route navigation, whatever board_view was left at from browsing a completed game's move list carries straight into the Analysis page, where nothing resets it. That let the board visibly sepia-dim while stepping through analysis history with the arrow keys, even though analysis is always browsing non-live positions and should never get that treatment.

Extracts the sepia logic into a pure board_history_style function (mirroring the existing stack_expansion_reset_key helper) and adds the missing !in_analysis check, with regression tests.

Moltenfire and others added 2 commits September 8, 2026 20:30
Viewing a non-final history position dims the board with a sepia
filter to signal it isn't live play. The piece-rendering branch right
below it already carves out an `!in_analysis` exception for this
(introduced in 77f1506, "Better gamestate prop (hiveboardgame#464)"), but the
`history_style` sepia class was never given the same exception.

Since GameStateStore (and its board_view field) is provided once at
the app root and persists across client-side route navigation,
whatever board_view was left at from browsing a completed game's move
list carries straight into the Analysis page, where nothing resets it.
That let the board visibly sepia-dim while stepping through analysis
history with the arrow keys, even though analysis is always browsing
non-live positions and should never get that treatment.

Extracts the sepia logic into a pure `board_history_style` function
(mirroring the existing `stack_expansion_reset_key` helper) and adds
the missing `!in_analysis` check, with regression tests.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U4Y2jNZLSGwpvfWXVxQfzP
@IongIer
IongIer merged commit 29cf5f3 into hiveboardgame:main Sep 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants