feat: move chess pieces by typing SQL queries + UI polish#2
Merged
Conversation
…r-bar active-turn highlight Agent-Logs-Url: https://github.com/Devn913/SQL_Chess/sessions/32b36d0d-69c4-4ded-994a-17eb4abc62fa Co-authored-by: Devn913 <56478595+Devn913@users.noreply.github.com>
…able, regex verified Agent-Logs-Url: https://github.com/Devn913/SQL_Chess/sessions/32b36d0d-69c4-4ded-994a-17eb4abc62fa Co-authored-by: Devn913 <56478595+Devn913@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Devn913
April 21, 2026 06:57
View session
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.
The app showed SQL for every move but never let players drive moves via SQL. This adds a full SQL input workflow and several UX improvements.
SQL Move Input
UPDATE chess_piece SET position = '...' WHERE position = '...'format the app already generates, plus shorthand (e2 e4,e2-e4,e2 to e4,e2e4)Auto-fill on piece click
Clicking a board piece pre-populates the textarea with a move template and positions the cursor on
???(the destination placeholder), so typing the target square is the only remaining step.Other UX changes
state.sqlInputHasTemplateflag tracks template state (avoids magic-string detection)