-
Notifications
You must be signed in to change notification settings - Fork 0
[PC-000] 퍼즐 부족 다이얼로그 표출되자마자 꺼지는 이슈 수정 #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughThe pull request removes finalizer state updates ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
feature/matching/src/main/java/com/puzzle/matching/graph/main/MatchingViewModel.kt (1)
235-267: Optional: Consider explicit dialog state cleanup on success.While the current fix correctly addresses the bug,
isShowDialogremainstrueafter successful navigation. Although this doesn't cause visible issues (since navigation occurs), you could optionally add explicit cleanup in theonSuccessblocks for cleaner state management:}.onSuccess { // ... existing code ... setState { copy(isShowDialog = false) } }.onFailure { handleMatchingError(it) }This is a minor refinement and can be deferred if preferred.
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
feature/matching/src/main/java/com/puzzle/matching/graph/main/MatchingViewModel.kt
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build
🔇 Additional comments (2)
feature/matching/src/main/java/com/puzzle/matching/graph/main/MatchingViewModel.kt (2)
235-247: LGTM! Dialog state fix is correct.Removing the
.also { setState { copy(isShowDialog = false) } }block correctly fixes the issue where the puzzle shortage dialog was closing immediately. Previously, when the API failed withNOT_ENOUGH_PUZZLE,handleMatchingErrorwould show the dialog, but the.alsoblock would execute afterward and close it immediately.
256-267: LGTM! Consistent fix applied.The same fix is correctly applied here—removing the
.alsoblock prevents the dialog from being closed immediately afterhandleMatchingErrorshows it on failure. The error handling logic is preserved correctly.
* [PC-1507] MatchingScreen 에서 발생하는 에러 예외 처리 (#187) (#188) * fix: gson 제거 및 proto datastore로 마이그레이션 하면서 consumer-rules 수정 * [PC-1507] MatchingViewmodel 에러 처리 로직 수정 * [PC-000] 퍼즐 부족 다이얼로그 표출되자마자 꺼지는 이슈 수정 (#189) * [PC-1514] 매칭 풀 소진 다이얼로그 구현 * [PC-1514] 매칭 풀 소진 다이얼로그 show, hide 로직 추가 * [PC-1514] 이미 구매한 연락처 에러 처리 로직 추가 * [PC-1514] 퍼즐 부족 에러 시 사용자 퍼즐 요청 * [PC-1514] 뉴 매치일 때 checkMatchingPiece 하도록 변경 * [PC-1514] MatchingPoolEmptyDialog 미구현 로직 주석 추가 * [PC-1514] 연락처 조회 실패 시 에러 로직 함수 호출 시 matchId 인자 추가 * [PC-1514] 새 매칭 진입 시 펼쳐진 카드 변경 * [PC-1514] ci 실패 수정 * [PC-1514] getInstantNewMatch에 퍼즐 사용 파라미터 추가 * [PC-1514] onRefresh -> onPullToRefresh 변경 * [PC-1514] PreviewMatchingPoolEmptyDialog 가시성 추가 * [PC-1514] getInstantNewMatch 파라미터 명 변경 * [PC-1514] PreviewTimerCompleteDialog가시성 추가 * [PC-1537] 다중매칭 관련 Amplitude logging 추가 (#191) * [PC-1537] analyticsHelper 미구현 screen 로깅 추가 및 최상단이 아닌 컴포넌트단으로 위치 이동 * [PC-1537] MatchingDetailScreen에 entryRoute 추가 * [PC-1537] entryRoute -> entryRouteForLog 로 파라미터명 수정 * [PC-1537] entryRoute -> entryRouteForLog 로 파라미터명 수정 * [PC-1537] AmplitudeEvent를 track, revenue 타입으로 변경 * [PC-1537] billing 모듈에 analytics 의존성 추가 * [PC-1537] trackRevenue 추가 * [PC-1534] 매칭 풀 소진 다이얼로그(기본) 구현 (#192) * [PC-1534] 매칭 풀 다이얼로그(기본) show/hide 로직 구현 * [PC-1534] 매칭 풀 다이얼로그 show/hide 로직 수정 * [PC-1534] showPurchaseDialog -> showDialog * [PC-1534] MatchingPoolType -> MatchingPoolEmptyType * [PC-1534] isModalShownToday -> isBasicMatchingPoolEmptyDialogShownToday * [PC-1534] getStandardDate -> getResetDateString * [PC-1534] getResetDateString 함수 테스트 코드 작성 * [PC-1534] LastModal -> LastMatchingPoolEmptyDialog * [PC-1534] 로그아웃, 탈퇴 시 매칭 풀 소진 다이얼로그 clear * [PC-1534] LastModal -> LastMatchingPoolEmptyDialog * [PC-1534] LastModal -> LastMatchingPoolEmptyDialog * [PC-1534] 로그인, 로그아웃 테스트 코드에 lastMatchingPoolEmptyDialogShownDate 빈 값 확인 코드 추가 * [PC-1534] 매칭 풀 소진 다이얼로그(기본) show/hide 테스트 코드 추가 * [PC-1534] 매칭 풀 소진 다이얼로그(기본) subText 수정 * [PC-1534] 매칭 풀 소진 다이얼로그 표출 확인 테스트 코드 작성 * [PC-1534] 매칭 풀 소진 다이얼로그 본 날짜 토큰 만료시 제거하도록 변경 * [PC-1534] 맛보기 매칭 풀 소진일 때는 Basic 매칭 풀 소진 표출되도록 변경 * [PC-1534] lastMatchingPoolEmptyDialogShownDate 타입 non-null로 변경 * [PC-1514] ci 실패 수정 * [PC-1514] ci 실패 수정 --------- Co-authored-by: Kim Kuen Hyung <120651330+kkh725@users.noreply.github.com>
1. ⭐️ 변경된 내용
2. 🖼️ 스크린샷(선택)
3. 💡 알게된 부분
4. 📌 이 부분은 꼭 봐주세요!
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.