fix: 토너먼트 시작 후 친구 초대 버튼 숨김 - #509
Conversation
참여자 패널의 + 버튼에 노출 조건이 없어, 시작 후에도 초대 진입점이 남아 있었다. 시작 이후에는 새 참여자를 받을 수 없다. - ParticipantPanel 에 ownerStarted prop 추가 - 시작 후 + 버튼 숨김 (주최자·참여자 양쪽) - 시트를 열어둔 사이 시작된 경우도 함께 닫음
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 23 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Discord 스레드 연동용 메타데이터입니다. discord-pr-bot 워크플로가 자동 생성하며, 수정·삭제하면 PR 과 Discord 알림 연동이 끊깁니다. |
작업 요약
작업 세부 내용
+버튼에 노출 조건이 없어 항상 렌더되고 있었습니다. 시작 이후에는 새 참여자를 받을 수 없으므로 진입점 자체를 없앱니다.ParticipantPanel이 시작 여부를 판단할 정보를 받지 않아, 부모(TournamentCreateClient)가 이미 계산해 둔ownerStarted를 prop 으로 내려받도록 했습니다.주최자·참여자 양쪽 모두 숨깁니다. 시작 후에는 서버도 초대를 받지 않습니다.
열려 있던 시트 처리
시트를 열어둔 사이 주최자가 시작하는 경우도 있습니다. SSE/폴링으로
ownerStarted가 갱신되면 시트가 함께 닫히도록 했습니다.참고
hasFriends가 false 일 때 나오는 "친구와 함께 담아보세요" 카드도 같은handleOpenInvite를 쓰지만, 혼자면 시작 시 매치 화면으로 이동해 이 카드를 볼 수 없어 범위에서 제외했습니다.스크린샷
연관 이슈
closes #508