Skip to content

[Feat] 회원 탈퇴 기능 #59

Draft
Jung-eunwoo wants to merge 11 commits intodevfrom
feat/withdrawal
Draft

[Feat] 회원 탈퇴 기능 #59
Jung-eunwoo wants to merge 11 commits intodevfrom
feat/withdrawal

Conversation

@Jung-eunwoo
Copy link
Member

Changed

회원 탈퇴 기능 구현 — 탈퇴 모달 UI + API 연동 + 공통 컴포넌트 추출

회원 탈퇴 모달 및 API 연동

  • WithdrawalModal 컴포넌트 생성 (CommonConfirmModalLayout 기반 중앙 모달)
  • 탈퇴 사유 선택 + 상세 입력 textarea 포함
  • withdrawMe() API 함수 추가 (DELETE /api/v1/users/me, REFRESH-TOKEN 헤더 포함)
  • ProfilePage에서 기존 ConfirmModal 기반 탈퇴 로직을 WithdrawalModal로 교체
  • 탈퇴 성공 시 토큰 4종(accessToken, refreshToken, accessTokenExpiry, refreshTokenExpiry) 전체 삭제 후 로그인 페이지 이동
  • 성공/실패 시 AlertModal로 결과 알림

공통 컴포넌트 생성

  • CommonSelectBox — 제네릭 인라인 드롭다운 select 컴포넌트 (애니메이션, 체크 아이콘 선택 표시)
  • CommonTextarea — 공통 textarea 컴포넌트

텍스트 상수

  • withdrawal.ts — 탈퇴 사유 목록(WITHDRAWAL_REASONS), 모달 텍스트 상수(WITHDRAWAL_MODAL_TEXT)

📸 스크린샷 (선택)

image

📎 관련 이슈 (선택)


Todo

  • withdrawMe API에 탈퇴 사유(reason, detail)를 request body로 전달하는 로직 추가 (백엔드 API 스펙 확정 후)
  • 로그아웃 처리에도 refreshToken 등 전체 토큰 삭제 적용 검토

Note

  • CommonSelectBox는 제네릭 컴포넌트(<T extends string>)로 다른 곳에서도 재사용 가능합니다
  • CommonSelectBox, CommonTextarea는 inputs 하위에 위치합니다

@Jung-eunwoo Jung-eunwoo added this to the api 연결 milestone Feb 21, 2026
@Jung-eunwoo Jung-eunwoo self-assigned this Feb 21, 2026
@Jung-eunwoo Jung-eunwoo added enhancement New feature or request api 서버 api 연결 labels Feb 21, 2026
@Jung-eunwoo Jung-eunwoo marked this pull request as draft February 21, 2026 08:40
@coderabbitai
Copy link

coderabbitai bot commented Feb 21, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/withdrawal

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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 and usage tips.

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

Labels

api 서버 api 연결 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant