fix: 토너먼트 시작 후 참여자 화면에 담기 버튼이 남던 문제 - #496
Conversation
+ 버튼 노출이 isDepositClosed 만 보는데, 이 값은 ownerStarted 일 때 오히려 false 가 되어 시작 후에도 버튼이 남고 누르면 409 만 돌아왔다. - 담기 차단 여부를 isAddItemBlocked 로 분리 (만료 마감 + 주최자 시작) - 쿼리 파라미터로 열리는 담기 다이얼로그도 같은 조건으로 차단
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 57 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 (3)
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 알림 연동이 끊깁니다. |
작업 요약
작업 세부 내용
+버튼 노출 조건이isDepositClosed만 보고 있었는데, 이 값은ownerStarted가 true 면 오히려 false 가 됩니다. 그래서 시작 이후에도 버튼이 남고, 누르면 409(시작 전에만 가능)만 돌아왔습니다.원인 — 한 플래그가 두 의미를 겸함
isDepositClosed는 "만료로 인한 마감" 개념이라 마감 안내 모달과 시작 버튼에서 쓰입니다. 여기서!ownerStarted는 의도된 조건입니다 — 시작했으면 마감 모달을 띄울 이유가 없기 때문입니다.문제는 여기에 "담기 가능 여부" 판단까지 얹으면서 시작 이후 구멍이 생긴 점입니다.
담기 차단 플래그를 분리
기존 값을 건드리지 않고 담기 전용 플래그를 추가했습니다.
isDepositClosed는 마감 모달·시작 버튼에서 그대로 쓰고, 바스켓 캐러셀에는isAddItemBlocked를 내려보냅니다.다른 진입 경로 차단
이슈에서 확인 요청한 부분입니다.
TournamentCreateClient에 쿼리 파라미터(OPEN_GET_ITEM_DIALOG)로 열리는 담기 다이얼로그가 하나 더 있어,+버튼만 숨기면 URL 로 우회됩니다. 같은 조건으로 막았습니다.스크린샷
연관 이슈
closes #483