[Feat] UnderImageProgressBar 구현#92
Conversation
📝 WalkthroughWalkthrough새로운 Jetpack Compose UI 컴포넌트인 UnderImageProgressBar가 추가됩니다. 이미지 아래에 진행률을 표시하는 컴포넌트로, 배경 박스와 원형 클립이 적용된 전경 진행률 바로 구성됩니다. 여러 진행 상태의 Preview를 포함합니다. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 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
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@app/src/main/java/com/flint/core/designsystem/component/progressbar/UnderImageProgressBar.kt`:
- Around line 19-21: UnderImageProgressBar currently accepts a Float progress
that may be outside 0..1 while fillMaxWidth expects a fraction in that range;
clamp the value before use by creating a safeProgress (e.g., val safeProgress =
progress.coerceIn(0f, 1f)) inside the UnderImageProgressBar function and use
safeProgress wherever the original progress value is passed to layout APIs like
fillMaxWidth to prevent unexpected layout behavior or crashes.
🧹 Nitpick comments (1)
app/src/main/java/com/flint/core/designsystem/component/progressbar/UnderImageProgressBar.kt (1)
23-27: 외부 Box에 기본 너비 설정을 고려해주세요.현재 외부 Box에 기본적으로
fillMaxWidth()가 적용되어 있지 않습니다. Preview에서는Modifier.fillMaxWidth()를 명시적으로 전달하고 있지만, 호출부에서 이를 누락하면 진행률 바가 제대로 렌더링되지 않을 수 있습니다.♻️ 제안된 수정 사항
Box( modifier = modifier + .fillMaxWidth() .height(5.dp) .background(FlintTheme.colors.gray700), ) {
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
app/src/main/java/com/flint/core/designsystem/component/progressbar/UnderImageProgressBar.kt
🔇 Additional comments (2)
app/src/main/java/com/flint/core/designsystem/component/progressbar/UnderImageProgressBar.kt (2)
29-36: Clip과 background 순서가 올바릅니다.
clip(CircleShape)이background()전에 적용되어 foreground 바의 양쪽 끝이 둥글게 처리됩니다. 구현이 적절합니다.
40-55: Preview 구현이 잘 되어 있습니다.
PreviewParameterProvider를 활용하여 다양한 진행 상태(0%, 25%, 50%, 75%, 100%)를 미리 볼 수 있도록 구성되어 있습니다.FlintTheme으로 감싸 테마 색상이 올바르게 적용됩니다.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
nahy-512
left a comment
There was a problem hiding this comment.
고생하셨습니다!
Base를 따로 안 만들고, CollectionDetail에서 쓰일 컴포넌트를 만들어주신 걸로 이해했는데 맞을까요?
📮 관련 이슈
📌 작업 내용
UnderImageProgressBar구현📸 스크린샷
Summary by CodeRabbit
새로운 기능
✏️ Tip: You can customize this high-level summary in your review settings.