Conversation
|
Caution Review failedAn error occurred during the review process. Please try again later. Walkthrough마이페이지 및 폴더 뷰의 UI 요소 크기와 스타일을 조정하고, 설정 아이콘 드로어블을 새로운 디자인으로 업데이트했습니다. 텍스트 라인높이, 아이콘 크기, 패딩 값 변경 및 아이콘 렌더링 방식(채우기에서 스트로크 기반으로)이 포함됩니다. Changes
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ 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.
🧹 Nitpick comments (1)
presentation/src/main/java/daily/dayo/presentation/view/FolderView.kt (1)
81-92:lineHeight값 중복(21.sp)을 상수/토큰으로 정리해 두는 게 안전합니다.현재 Line 83, Line 90에서 동일 값이 반복되어 추후 타이포 변경 시 누락 위험이 있습니다. 또한 PR 목적상 “folder title”만 조정 의도였다면 Line 90(게시글 수 텍스트) 적용 범위도 QA 기준과 일치하는지 확인해 주세요.
♻️ 제안 diff
+ val folderInfoLineHeight = 21.sp Text( text = folder.title, - lineHeight = 21.sp, + lineHeight = folderInfoLineHeight, style = DayoTheme.typography.b6.copy(Dark) ) @@ Text( text = "${dec.format(folder.postCount)}개", - lineHeight = 21.sp, + lineHeight = folderInfoLineHeight, style = DayoTheme.typography.b6.copy(Gray3_9FA5AE) )🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@presentation/src/main/java/daily/dayo/presentation/view/FolderView.kt` around lines 81 - 92, Extract the duplicated 21.sp lineHeight used in the two Text composables into a single constant/token (e.g., FOLDER_LINE_HEIGHT or a DayoTheme token) and replace the literal 21.sp in the Text showing folder.title and the Text showing "${dec.format(folder.postCount)}개" with that constant; while doing so, confirm whether the post-count Text (the one using DecimalFormat dec and folder.postCount) should share the same line-height per QA and adjust only if intended. Reference: the two Text composables in FolderView.kt that use folder.title and the DecimalFormat dec formatting for folder.postCount.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@presentation/src/main/java/daily/dayo/presentation/view/FolderView.kt`:
- Around line 81-92: Extract the duplicated 21.sp lineHeight used in the two
Text composables into a single constant/token (e.g., FOLDER_LINE_HEIGHT or a
DayoTheme token) and replace the literal 21.sp in the Text showing folder.title
and the Text showing "${dec.format(folder.postCount)}개" with that constant;
while doing so, confirm whether the post-count Text (the one using DecimalFormat
dec and folder.postCount) should share the same line-height per QA and adjust
only if intended. Reference: the two Text composables in FolderView.kt that use
folder.title and the DecimalFormat dec formatting for folder.postCount.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 8726aaf5-54c1-40b2-90c3-2c9baf1e157a
📒 Files selected for processing (3)
presentation/src/main/java/daily/dayo/presentation/screen/mypage/MyPageScreen.ktpresentation/src/main/java/daily/dayo/presentation/view/FolderView.ktpresentation/src/main/res/drawable/ic_setting.xml
작업 내용
참고