Conversation
Walkthrough검색 중 선택된 시술 목록이 유지되도록 UI 상태에 선택된 항목의 사전 필터링된 컬렉션을 추가합니다. ViewModel에서 검색 작업 중 선택 상태를 보존하고, 새로운 Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
app/src/main/java/com/cherrish/android/presentation/calendar/procedure/ProcedureViewModel.kt (1)
131-143:procedureItems대신selectedProcedureItems에서 조회해야 합니다.검색 후
procedureItems에는 현재 검색 결과만 포함됩니다. 사용자가 시술을 선택한 후 다른 키워드로 검색하면, 선택된 시술이procedureItems에 없을 수 있습니다. Downtime 단계에서 해당 시술 카드를 클릭하면 조회가 실패하여 bottom sheet가 표시되지 않습니다.🐛 수정 제안
fun onDowntimeClick(procedureId: Long) { _uiState.updateSuccess { current -> - val procedure = current.procedureItems.firstOrNull { it.id == procedureId } + val procedure = current.selectedProcedureItems.firstOrNull { it.id == procedureId } ?: return@updateSuccess current current.copy( selectedProcedureForDowntime = procedure, showDowntimeBottomSheet = true, downtimePickerValue = current.procedureDowntimeMap[procedureId] ?: procedure.minDowntimeDays ) } }
Related issue 🛠
Work Description ✏️
Screenshot 📸
Uncompleted Tasks 😅
N/A
To Reviewers 📢
Summary by CodeRabbit
릴리스 노트
성능 개선
버그 수정
✏️ Tip: You can customize this high-level summary in your review settings.