Skip to content

refactor : 예매자 삭제 확인 모달 안내 문구 분기 로직 가독성 개선 - #543

Merged
move-hoon merged 2 commits into
developfrom
refactor/#543/delete-booking-modal-guide
Aug 28, 2026
Merged

move-hoon merged 2 commits into
developfrom
refactor/#543/delete-booking-modal-guide

Conversation

@move-hoon

Copy link
Copy Markdown
Member

📌 개요

  • 예매자 삭제 확인 모달의 서브텍스트 분기 로직을 우아하고 직관적인 Set 기반 매칭 및 헬퍼 함수로 리팩터링하여 가독성과 런타임 안정성을 확보합니다.

🛠️ 작업 내용

  • ACTIVE_STATUSES (CHECKING_PAYMENT, BOOKING_CONFIRMED, 입금확인중, 예매 확정) 및 CANCELLED_STATUSES Set 기반 상태 조회 적용
  • getDeleteModalSubTitle 순수 헬퍼 함수 분리로 모달 서브텍스트 생성 로직 단순화
  • checkedIdSet (Set<number>)을 활용한 O(1) 필터링 최적화 및 명시적 Number 캐스팅 적용
  • TypeScript 정적 타입 컴파일 (tsc -b) 검증 완료

📸 동작 확인

  • 활성 예매 단독 선택: 선택한 예매가 취소되며, 해당 티켓은 다시 예매 가능한 잔여 좌석으로 반납돼요.
  • 취소 예매 단독 선택: 목록에서 예매자 정보가 삭제돼요. (잔여 좌석 수에는 변동이 없어요)
  • 혼합 선택: 선택한 예매 중 활성 예매는 취소되어 좌석이 반납되고, 이미 취소된 건은 목록에서 삭제돼요.

@github-actions github-actions Bot added the ♻️ REFACTOR 프로덕션 코드 리팩토링 label Aug 28, 2026
@github-actions

Copy link
Copy Markdown

PR 작성하느라 고생 많았어요!! 라벨 잘 지정되었는지 확인 한 번 해 주기 🫶

@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 22 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e0143e08-040a-4f84-94f6-425c7c97e784

📥 Commits

Reviewing files that changed from the base of the PR and between 7807977 and 7db4cd3.

📒 Files selected for processing (1)
  • src/pages/ticketholderlist/TicketHolderList.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.

@sonarqubecloud

Copy link
Copy Markdown

@move-hoon
move-hoon merged commit a4cde46 into develop Aug 28, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from ✅Todo to 🎉Done in 🌱beat-board Aug 28, 2026
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ REFACTOR 프로덕션 코드 리팩토링

Projects

Status: 🎉Done

Development

Successfully merging this pull request may close these issues.

1 participant