Remove manual reveal button and fix vote sync on session transitions
All checks were successful
Build & Push Container Image / build (push) Successful in 12s

Remove the "Reveal Votes" button since auto-reveal handles this. Add
poker:sync event so PokerRoom fetches current vote state on mount,
fixing checkmarks not appearing for other users on subsequent rounds.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jan Willem Mannaerts 2026-03-05 10:33:30 +01:00
parent 36c8c5f6f4
commit 0b713d3858
2 changed files with 16 additions and 12 deletions

View file

@ -256,6 +256,17 @@ io.on('connection', (socket) => {
}
});
throttled('poker:sync', async ({ sessionId }) => {
try {
if (!sessionId) return;
const snapshot = await getSessionSnapshot(sessionId, socket.user.jiraCloudId);
if (!snapshot) return;
await emitSessionState(snapshot.session.roomId, sessionId, socket.user.jiraCloudId);
} catch (error) {
console.error('[socket] poker:sync failed:', error);
}
});
throttled('poker:vote', async ({ sessionId, vote }) => {
try {
if (!sessionId) {