모든 게임: 결과·팝업은 애니메이션이 끝난 뒤에, 증강 윷놀이: 이의있음!이 다음 판에도 뜨게, 증강 고르는 목록·나오게 할 증강을 팝업 목록으로

- lib/motion: motionBusy / useMotionHold / useMotionSettled / useAfterMotionValue / AfterMotion
- 방 화면: 결과 창과 상태 줄은 판이 멈춘 뒤에(실시간 게임은 상태 줄 그대로), 새 판마다 판 화면을 새로 그림
  (결과 창에 둔 채 다음 판이 시작되면 이전 판의 효과 번호가 남아 이의있음!·알림이 안 뜨던 문제)
- 41개 게임: 결과 패널·배너·점수·팝업이 마지막 움직임 뒤에 나오도록 게임별로 정리
- 증강 윷놀이: 명탐정·배달·손버릇·따라쟁이·착각 대상은 아이콘과 설명이 다 보이는 목록에서,
  방 설정의 나오게 할 증강은 팝업 목록에서 스위치로 켜고 끔
- e2e: 늦게 바뀌는 상태 줄·결과 창과 새 증강 화면에 맞춤

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-11-08 09:07:27 +09:00
parent f18909c44f
commit 4e0eb4d52c
52 changed files with 2142 additions and 855 deletions

View File

@@ -22,6 +22,12 @@ export interface ChatLine {
export interface GameState {
seq: number;
/**
* The room's game number this view belongs to. The server sends the new room before a new game's first state,
* so this is read from the room when the state arrives. The room page remounts the board when it changes, so
* nothing a board remembers (the last effect / move it showed) leaks into the next game.
*/
gameNo: number;
view: unknown;
active: string[];
deadline: number | null;
@@ -294,7 +300,7 @@ class GameSocket {
case 'state': {
if (st.game && m.seq < st.game.seq) break; // stale
const patch: Partial<RoomStore> = {
game: { seq: m.seq, view: m.view, active: m.active, deadline: m.deadline, events: m.events },
game: { seq: m.seq, gameNo: st.room?.gameNo ?? 0, view: m.view, active: m.active, deadline: m.deadline, events: m.events },
};
if (m.cs !== undefined && m.cs === st.pending) {
patch.pending = null;