Merged
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough마이페이지 탈퇴 기능을 신설하고 네비게이션/화면/뷰모델/도메인/데이터/원격 API를 일괄 추가·확장했다. 저장소(DataStore) 기반 자동로그인 플래그 저장 로컬 데이터소스를 도입했다. 장소 목록 엔티티에 townId를 추가하고 관련 매핑을 갱신했다. 컬렉션 화면의 선택 모드 전달 방식을 슬롯 기반으로 변경했다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant MS as MainScreen
participant MN as MainNavigator
participant WG as WithdrawNavGraph
participant WR as WithdrawRoute/Screen
participant VM as WithdrawViewModel
participant REP as MypageRepository
participant REM as MypageService
participant LDS as DataStore(Local)
U->>MS: 마이페이지에서 "탈퇴" 선택
MS->>MN: navigateToWithdraw()
MN->>WG: navigate Withdraw
WG->>WR: Compose WithdrawRoute
WR->>VM: Intent.Init
VM->>REP: getWithdrawList()
REP->>REM: GET /api/users/withdraw/reasons
REM-->>REP: withdraw list
REP-->>VM: Result<List<WithdrawEntity>>
VM-->>WR: 상태 업데이트(리스트 표시)
U->>WR: 항목 선택/사유 입력
U->>WR: "탈퇴하기" 클릭
WR->>VM: Intent.WithdrawButtonClick (→ 다이얼로그 표시)
U->>WR: 다이얼로그 확인
WR->>VM: Intent.DialogConfirmClick
VM->>REP: deleteUser(type, reason)
REP->>REM: DELETE /api/users/withdraw (body)
REM-->>REP: NullableBaseResponse<Unit>
REP-->>VM: Result<Unit>
VM->>REP: saveAutoSignIn(false)
REP->>LDS: updateData(autoSignIn=false)
LDS-->>REP: 완료
VM-->>WR: SideEffect.NavigateToOauth
WR->>MN: navigateToOauth()
sequenceDiagram
autonumber
actor U as User
participant MP as MypageRoute
participant VM as MypageViewModel
participant REP as MypageRepository
participant REM as MypageService
participant MAP as Maps
U->>MP: "저장한 장소 전체보기" 클릭
MP->>VM: Intent.PlaceAllClick
VM-->>MP: placeAllState = true
MP->>VM: (초기 로드) getReportPlaceList
VM->>REP: getReportPlaceList(userId)
REP->>REM: GET /api/users/{id}/places
REM-->>REP: PlaceListResponseDto(townId 포함)
REP-->>VM: Result<List<PlaceInfoEntity>>
VM-->>MP: 상태 업데이트(그리드 표시)
U->>MP: 카드 클릭(placeId, townId)
MP->>VM: Intent.PlaceCardClick
VM-->>MP: SideEffect.NavigateToMap(placeId, townId)
MP->>MAP: 지도 상세 이동
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (38)
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 PR 요약
🌱 작업한 내용
🌱 PR 포인트
📸 스크린샷
📮 관련 이슈
Summary by CodeRabbit