Skip to content

feat(session): 응답 계약 정합 + 참가자 라운지/내 팀 강조 - #40

Merged
lsmin3388 merged 1 commit into
mainfrom
fix/contract-frontend
Jun 8, 2026
Merged

feat(session): 응답 계약 정합 + 참가자 라운지/내 팀 강조#40
lsmin3388 merged 1 commit into
mainfrom
fix/contract-frontend

Conversation

@lsmin3388

Copy link
Copy Markdown
Contributor

백엔드 #18(SessionResponse sessionId/participants, teamId=teamName)에 맞춰 프론트를 정합하고 남은 한계를 닫습니다.

  • types: SessionResponse.id → sessionId, participants[] 추가
  • 호스트 대기실 초기 스냅샷: WS 수신 전에는 session.participants 사용 → 호스트가 새로고침하거나 늦게 들어와도 목록이 보이고, WS 수신 후 실시간으로 전환
  • 참가자 라운지: 대기실에 입장한 참가자 닉네임 칩 표시(내 닉 강조) — DESIGN의 "무대 입장 전 라운지"
  • 내 팀 강조: 팀 리더보드에서 내 팀을 하이라이트(teamId=teamName 정합으로 매칭 정상화)
  • NewSessionClient: 세션 생성 후 session.sessionId로 라우팅

검증

pnpm tsc --noEmit ✅ · pnpm build

- types: SessionResponse id→sessionId, participants[] 추가 (백엔드 계약 정합)
- HostWaitingClient: session.participants 초기 스냅샷 사용 → 새로고침/늦은 입장에도 목록 표시, WS 수신 후 실시간 전환
- PlayerWaitingClient: 라운지(입장한 참가자 닉네임 칩, 내 닉 강조)
- PlayerLeaderboardClient: 팀 탭에서 내 팀 강조(teamId=teamName 정합으로 매칭)
- NewSessionClient: session.id→sessionId 라우팅 수정
@lsmin3388
lsmin3388 merged commit ded9ce6 into main Jun 8, 2026
@lsmin3388
lsmin3388 deleted the fix/contract-frontend branch June 8, 2026 06:50
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.

1 participant