Skip to content

fix: 토너먼트 시작 후 친구 초대 버튼 숨김 - #509

Merged
ychany merged 1 commit into
devfrom
fix/508-hide-invite-after-start
Aug 12, 2026
Merged

fix: 토너먼트 시작 후 친구 초대 버튼 숨김#509
ychany merged 1 commit into
devfrom
fix/508-hide-invite-after-start

Conversation

@ychany

@ychany ychany commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

작업 요약

  • 토너먼트 시작 후 참여자 패널의 친구 초대 + 버튼을 숨깁니다.

작업 세부 내용

+ 버튼에 노출 조건이 없어 항상 렌더되고 있었습니다. 시작 이후에는 새 참여자를 받을 수 없으므로 진입점 자체를 없앱니다.

ParticipantPanel 이 시작 여부를 판단할 정보를 받지 않아, 부모(TournamentCreateClient)가 이미 계산해 둔 ownerStarted 를 prop 으로 내려받도록 했습니다.

{!ownerStarted && (
  <button onClick={handleOpenInvite} aria-label="친구 초대하기">

주최자·참여자 양쪽 모두 숨깁니다. 시작 후에는 서버도 초대를 받지 않습니다.

열려 있던 시트 처리

시트를 열어둔 사이 주최자가 시작하는 경우도 있습니다. SSE/폴링으로 ownerStarted 가 갱신되면 시트가 함께 닫히도록 했습니다.

open={isInviteDialogOpen && !ownerStarted}

참고

hasFriends 가 false 일 때 나오는 "친구와 함께 담아보세요" 카드도 같은 handleOpenInvite 를 쓰지만, 혼자면 시작 시 매치 화면으로 이동해 이 카드를 볼 수 없어 범위에서 제외했습니다.

스크린샷

스크린샷 2026-08-13 오전 2 37 19

연관 이슈

closes #508

참여자 패널의 + 버튼에 노출 조건이 없어, 시작 후에도 초대 진입점이
남아 있었다. 시작 이후에는 새 참여자를 받을 수 없다.

- ParticipantPanel 에 ownerStarted prop 추가
- 시작 후 + 버튼 숨김 (주최자·참여자 양쪽)
- 시트를 열어둔 사이 시작된 경우도 함께 닫음
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
piki Ready Ready Preview Aug 12, 2026 5:38pm

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ychany, you've reached your PR review limit, so we couldn't start this review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 64b71c60-341e-4041-8c72-621d82f9be9e

📥 Commits

Reviewing files that changed from the base of the PR and between ab1c6a1 and b96eba9.

📒 Files selected for processing (2)
  • apps/web/src/app/tournament/[id]/create/_components/TournamentCreateClient.tsx
  • apps/web/src/app/tournament/[id]/create/_components/participant-panel/ParticipantPanel.tsx

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added fix Something isn't working WEB labels Aug 12, 2026
@github-actions

Copy link
Copy Markdown

Discord 스레드 연동용 메타데이터입니다. discord-pr-bot 워크플로가 자동 생성하며, 수정·삭제하면 PR 과 Discord 알림 연동이 끊깁니다.

@github-actions
github-actions Bot requested a review from kanghaeun August 12, 2026 17:38
@ychany
ychany merged commit 697297a into dev Aug 12, 2026
9 checks passed
@ychany
ychany deleted the fix/508-hide-invite-after-start branch August 12, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Something isn't working WEB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: 토너먼트 시작 후에도 참여자 패널에 친구 초대 + 버튼이 남음

1 participant