Repository navigation
[Fix/#528] 예매 취소·환불 및 관리자 삭제 정책 정합화 - #529
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (2)
Summary by CodeRabbit
Walkthrough삭제 가능 상태를 공통 상수로 관리합니다. 취소 화면은 결제 상태와 결제 금액으로 환불 필요 여부를 계산합니다. 취소 요청, 검증, 확인 모달은 요청 유형에 따라 동작합니다. 입금 안내 문구와 라디오 버튼 설명을 추가합니다. Changes예매 삭제 및 취소 정합화
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
PR 작성하느라 고생 많았어요!! 라벨 잘 지정되었는지 확인 한 번 해 주기 🫶 |
|
|
||
| const isRefundRequest = (requestData: CancelRequestProps) => | ||
| Boolean(requestData.bankName || requestData.accountNumber || requestData.accountHolder); | ||
|
|
||
| export const useCancelBooking = (name?: string, phone?: string, password?: string) => { |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/hooks/useCancelBooking.tsx`:
- Around line 14-16: Update isRefundRequest in useCancelBooking so it returns
true only when bankName, accountNumber, and accountHolder are all present, and
false when the account information is entirely absent or partially provided;
preserve the existing refundMutation branching for complete account details.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 192fb4bd-5a37-44b0-afa0-11ffe9bea9b2
📒 Files selected for processing (5)
src/constants/bookingStatus.tssrc/hooks/useCancelBooking.tsxsrc/pages/cancel/Cancel.tsxsrc/pages/cancel/components/select/RadioButton.styled.tssrc/pages/cancel/components/select/RadioButton.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
- src/pages/cancel/Cancel.tsx
|



📌 관련 이슈번호
🎟️ PR 유형
✅ Key Changes
CHECKING_PAYMENT예매는 사용자가 선택한 입금 여부에 따라 즉시 취소 또는 환불 요청으로 분기합니다.BOOKING_CONFIRMED예매는 환불 계좌 입력 후 환불 요청으로 처리합니다.BOOKING_CANCELLED만 삭제할 수 있습니다.🧪 검증
yarn tsc --noEmitgit diff --check📢 To Reviewers
📸 스크린샷
🔗 참고 자료