Skip to content

Feature/send guesses#73

Merged
tasaje1 merged 16 commits into
developmentfrom
feature/send-guesses
Jun 10, 2026
Merged

Feature/send guesses#73
tasaje1 merged 16 commits into
developmentfrom
feature/send-guesses

Conversation

@tasaje1

@tasaje1 tasaje1 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

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.

@sonarqubecloud

Copy link
Copy Markdown

@tasaje1 tasaje1 linked an issue Jun 10, 2026 that may be closed by this pull request
@tasaje1 tasaje1 marked this pull request as draft June 10, 2026 20:14

@XtophB XtophB left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@tasaje1 tasaje1 marked this pull request as ready for review June 10, 2026 20:59
@tasaje1 tasaje1 merged commit 0af181a into development Jun 10, 2026
2 checks 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.

WebSocket Endpunkt: Guess senden

2 participants