Remove manual reveal button and fix vote sync on session transitions
All checks were successful
Build & Push Container Image / build (push) Successful in 12s
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:
parent
36c8c5f6f4
commit
0b713d3858
2 changed files with 16 additions and 12 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue