feat(nudge): name the sender; blink lobby cards; re-animate toasts #75

Merged
developer merged 2 commits from feature/nudge-name-lobby-blink into development 2026-06-16 19:33:57 +00:00
Showing only changes of commit 2a034ff9be - Show all commits
+5 -1
View File
@@ -55,7 +55,11 @@
void load(); void load();
}); });
$effect(() => { $effect(() => {
if (app.lastEvent) void load(); // Refetch on a real game event only — not the 10 s keep-alive heartbeat. Refetching on every
// heartbeat turned the lobby into a 10 s poll whose REST view of a just-committed opponent move
// could update (and blink) a card seconds before the matching your_turn event/toast arrived
// over the slower live stream; gating it keeps the card, its blink and the toast on one event.
if (app.lastEvent && app.lastEvent.kind !== 'heartbeat') void load();
}); });
const myId = $derived(app.session?.userId ?? ''); const myId = $derived(app.session?.userId ?? '');