What happened?
Changing the piece set or board colours on the Export page unintentionally updates the home page board. The two pages share the same localStorage keys, so any change on the Export page persists globally.
Steps to reproduce
- Open the home page — note the current piece set and board colours
- Navigate to the Export page via the Download button
- Change the piece set or square colours in the Board Style tab
- Return to the home page
Expected
Changes on the Export page are local to that session only. The home page board is unchanged on return.
Actual
The home page reflects the Export page choices — piece set and colours are overwritten globally.
Root cause
BoardStyleStep calls setBoardPieceSet() from useBoardPieceSet, which writes to the shared chess-piece-style localStorage key. The home page reads the same key, so it picks up the change immediately. Square colour changes have the same issue via shared localStorage keys.
Browser & OS
Any browser / OS.
Before submitting
What happened?
Changing the piece set or board colours on the Export page unintentionally updates the home page board. The two pages share the same localStorage keys, so any change on the Export page persists globally.
Steps to reproduce
Expected
Changes on the Export page are local to that session only. The home page board is unchanged on return.
Actual
The home page reflects the Export page choices — piece set and colours are overwritten globally.
Root cause
BoardStyleStepcallssetBoardPieceSet()fromuseBoardPieceSet, which writes to the sharedchess-piece-stylelocalStorage key. The home page reads the same key, so it picks up the change immediately. Square colour changes have the same issue via shared localStorage keys.Browser & OS
Any browser / OS.
Before submitting