[Feature] 자체 qa#216
Hidden character warning
Conversation
|
Warning Review limit reached
More reviews will be available in 50 minutes and 52 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesCollectionDetail 북마크 최소 제한 초과 처리
SavedContent 북마크 토스트 및 OTT 바텀시트
프로필 수정 완료 후 ProfileScreen 자동 갱신
UI 마이너 개선
Sequence Diagram(s)sequenceDiagram
participant EditProfile as EditProfileRoute
participant MainNavHost as MainNavHost
participant SavedState as SavedStateHandle
participant ProfileNav as ProfileNavigation
participant ProfileRoute as ProfileRoute
participant ProfileVM as ProfileViewModel
rect rgba(59, 130, 246, 0.5)
Note over EditProfile,MainNavHost: 프로필 저장 완료
EditProfile->>MainNavHost: onProfileSaved()
MainNavHost->>SavedState: KEY_PROFILE_UPDATED = true
end
rect rgba(34, 197, 94, 0.5)
Note over SavedState,ProfileRoute: 갱신 신호 전파
SavedState-->>ProfileNav: collectAsStateWithLifecycle
ProfileNav->>ProfileRoute: shouldRefreshProfile = true
end
rect rgba(249, 115, 22, 0.5)
Note over ProfileRoute,ProfileVM: 프로필 헤더 재조회
ProfileRoute->>ProfileVM: reloadUserProfile()
ProfileVM-->>ProfileRoute: _uiState.profile 갱신
ProfileRoute->>ProfileNav: onProfileRefreshed()
ProfileNav->>SavedState: KEY_PROFILE_UPDATED = false
end
sequenceDiagram
participant Screen as CollectionDetailScreen
participant VM as CollectionDetailViewModel
participant Repo as BookmarkRepository
Screen->>VM: toggleContentBookmark(contentId)
alt 북마크 취소(!newBookmarkState)
VM->>VM: 즉시 bookmarkCount-1 상태 갱신
VM->>Repo: 저장소 토글 실행
Repo-->>VM: ContentMinLimitExceeded 예외
VM->>Screen: ToggleContentBookmarkMinLimitExceeded 방출
Screen->>Screen: OneButtonModal 표시
else 북마크 추가(newBookmarkState)
VM->>VM: adjustedBookmarkCount+1 상태 갱신
VM->>Repo: 디바운스 후 저장소 토글
Repo-->>VM: 실패 시 fallbackCount-1 롤백
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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: 1
🧹 Nitpick comments (1)
app/src/main/java/com/flint/presentation/collectiondetail/CollectionDetailScreen.kt (1)
129-138: 상수를 이용한 매직 넘버 제거 권장
SavedContentScreen에서는SavedContentUiState.MIN_REQUIRED_COUNT를 사용하여 최소 저장 개수를 표시합니다. 일관성과 유지보수성을 위해 이 화면에서도 동일한 상수를 참조해야 합니다. 현재 하드코딩된 "5개"를 상수로 변경하면 향후 값 변경 시 한 곳에서만 수정하면 됩니다.♻️ 제안 수정
if (showBookmarkRestrictionModal) { OneButtonModal( title = "작품 저장을 취소할 수 없어요", - message = "취향 키워드 분석을 위해\n최소 5개의 작품을 저장해주세요", + message = "취향 키워드 분석을 위해\n최소 ${SavedContentUiState.MIN_REQUIRED_COUNT}개의 작품을 저장해주세요", buttonText = "확인", onConfirm = { showBookmarkRestrictionModal = false }, onDismiss = { showBookmarkRestrictionModal = false }, icon = R.drawable.ic_gradient_bookmark, ) }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/src/main/java/com/flint/presentation/collectiondetail/CollectionDetailScreen.kt` around lines 129 - 138, The OneButtonModal in CollectionDetailScreen contains a hardcoded "5" in the message string for the bookmark restriction modal, but SavedContentUiState.MIN_REQUIRED_COUNT constant is already used elsewhere for the same purpose. Replace the hardcoded "5" in the message parameter with a reference to SavedContentUiState.MIN_REQUIRED_COUNT to ensure consistency across the codebase and allow future changes to be made in a single location.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@app/src/main/java/com/flint/presentation/profile/SavedContentViewModel.kt`:
- Around line 96-101: The totalCount calculation in the state update does not
have a lower bound check and can become negative when the -1 operation is
applied during unbookmarking, especially if the local state is out of sync. Fix
this by applying a minimum value constraint (coerce to at least 0) to the
totalCount value in the line where totalCount is calculated using the
conditional expression with if (isBookmarked) 1 else -1, ensuring the value
never goes below zero.
---
Nitpick comments:
In
`@app/src/main/java/com/flint/presentation/collectiondetail/CollectionDetailScreen.kt`:
- Around line 129-138: The OneButtonModal in CollectionDetailScreen contains a
hardcoded "5" in the message string for the bookmark restriction modal, but
SavedContentUiState.MIN_REQUIRED_COUNT constant is already used elsewhere for
the same purpose. Replace the hardcoded "5" in the message parameter with a
reference to SavedContentUiState.MIN_REQUIRED_COUNT to ensure consistency across
the codebase and allow future changes to be made in a single location.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 59ac4db7-575e-42eb-91d2-62a1a4df0356
📒 Files selected for processing (13)
app/src/main/java/com/flint/core/designsystem/component/listView/SavedContentsSection.ktapp/src/main/java/com/flint/presentation/collectiondetail/CollectionDetailScreen.ktapp/src/main/java/com/flint/presentation/collectiondetail/CollectionDetailViewModel.ktapp/src/main/java/com/flint/presentation/collectiondetail/sideeffect/CollectionDetailSideEffect.ktapp/src/main/java/com/flint/presentation/main/MainNavHost.ktapp/src/main/java/com/flint/presentation/profile/ProfileScreen.ktapp/src/main/java/com/flint/presentation/profile/ProfileViewModel.ktapp/src/main/java/com/flint/presentation/profile/SavedContentScreen.ktapp/src/main/java/com/flint/presentation/profile/SavedContentSideEffect.ktapp/src/main/java/com/flint/presentation/profile/SavedContentViewModel.ktapp/src/main/java/com/flint/presentation/profile/navigation/ProfileNavigation.ktapp/src/main/java/com/flint/presentation/setting/editprofile/EditProfileScreen.ktapp/src/main/java/com/flint/presentation/setting/editprofile/navigation/EditProfileNavigation.kt
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@app/src/main/java/com/flint/presentation/onboarding/OnboardingContentScreen.kt`:
- Line 312: The OnboardingContentScreen.kt file has inconsistent empty state
messages across different UI state branches - line 312 shows "아직 준비 중인 작품이에요"
while other branches contain different text or have typos like "작품이이요". Create a
single string constant for the empty state message and replace all occurrences
of the empty state title text across the UiState.Success(data.isEmpty()),
UiState.Empty, and UiState.Failure branches to use this constant, ensuring
consistent UX messaging regardless of which branch is executed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: b3a16a86-8a18-4b57-8b93-e853fd075124
📒 Files selected for processing (2)
app/src/main/java/com/flint/core/designsystem/component/image/SelectedContentItem.ktapp/src/main/java/com/flint/presentation/onboarding/OnboardingContentScreen.kt
📌 작업 내용
Summary by CodeRabbit
릴리스 노트