Feature/send guesses#73
Merged
Merged
Conversation
|
XtophB
approved these changes
Jun 10, 2026
XtophB
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, found various bugs while testing feature, but from what I can tell they are from different sources. Backend correctly receives the payload and calls the flipCard method correctly, and also updates the game state correctly.
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.



Context
This PR contains the addition of the frontend card selection flow for operative guesses.
Description
Operatives can now select unrevealed cards during their guessing phase. Selected cards are visually highlighted on the board. Clicking an already selected card submits that card as a guess and reveals it through the existing backend reveal-card websocket flow.
A deselect-all action was also added so players can clear their current card selection without revealing anything.
Changes in the code base
Add selectable card state to the game board
Highlight selected cards with a visible border
Wire selected card reveal to the existing guess submission flow
Add deselect-all button for selected cards
Add ViewModel tests for multi-position guess submission handling
Add UI tests for selecting, deselecting, and revealing selected cards
Changes outside the code base
N/A
Additional information
The frontend still sends only one revealed card per confirmed click. Other selected cards remain local UI state until individually confirmed.