Support for loading .pgn files#20
Conversation
|
After a bit more user testing, there are a lot of conflicts possible between saving state in localStorage and setting the |
|
The main reason that the source of truth is in localStorage now instead of in the yaml is that in Live Preview, it's very easy to accidentally unload the board and lose the current board state. I like the manual save button idea, but it might still cause issues with de-syncing the chess game state from the chessboard.js state. It's been a while since I've touched the code, but I remember the issue bing that the undo/redo moves were losing state if you mutate the underlying codeblock while the board is rendered. |
This PR adds support for loading PGN files as well as a minimal test vault. Users can now use the
pgn_filekey in their Chesser yaml to load a game from a file. Comments are not displayed at this point, but the full history of a game is available.