-
Notifications
You must be signed in to change notification settings - Fork 0
feat: 스포일러 글일 경우 이미지 보이지 않도록 구현 #764
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
|
Caution Review failedThe pull request is closed. 📋 개요스포일러 게시글에서 이미지를 숨기는 기능을 구현하고, 라이브러리 새로고침 메커니즘을 추가하며, UI 컴포넌트에서 리플 효과를 제거합니다. 🚶 과정FeedModel에 📊 변경 사항
🎯 시퀀스 다이어그램sequenceDiagram
participant Fragment as LibraryFragment
participant ViewModel as LibraryViewModel
participant Repo as LibraryRepository
participant DataSource as LibraryLocalDataSource
Note over Fragment: onResume() 호출
Fragment->>ViewModel: refreshLibrary()
ViewModel->>Repo: refresh()
alt MyLibraryRepository
Repo->>DataSource: selectAllNovels().invalidate()
DataSource-->>Repo: Paging source 무효화
else UserLibraryRepository
Repo-->>ViewModel: (no-op)
end
Repo-->>ViewModel: 완료
ViewModel-->>Fragment: 라이브러리 갱신
sequenceDiagram
participant View as FeedView
participant Model as FeedModel
participant Layout as item_feed.xml
Model->>Model: isVisible 계산<br/>(!isSpoiler && imageUrls.isNotEmpty())
Layout->>Model: isVisible 체크
alt isVisible = true
Layout->>View: 이미지 표시
else isVisible = false
Layout->>View: 이미지 숨김
end
⏱️ 예상 코드 리뷰 시간🎯 3 (중간) | ⏱️ ~25분 주의 깊게 검토할 부분:
🔗 관련 PR
🏷️ 제안 라벨
👥 제안 리뷰어
🐰 축하 시
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (17)
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 |
| } | ||
|
|
||
| override suspend fun refresh() { | ||
| libraryLocalDataSource.selectAllNovels().invalidate() |
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.
🚫 [ktlint] standard:indent reported by reviewdog 🐶
Unexpected indentation (11) (should be 12)
| shape = RoundedCornerShape(4.dp), | ||
| ).padding(vertical = 4.dp), | ||
| ) | ||
| .padding(vertical = 4.dp), |
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.
🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Unexpected newline before '.'
| shape = RoundedCornerShape(8.dp), | ||
| ).padding(vertical = 4.dp), | ||
| ) | ||
| .padding(vertical = 4.dp), |
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.
🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Unexpected newline before '.'
| shape = RoundedCornerShape(size = 8.dp), | ||
| ).then( | ||
| ) | ||
| .then( |
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.
🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Unexpected newline before '.'
| }, | ||
| ).padding(vertical = 14.dp, horizontal = 24.dp), | ||
| ) | ||
| .padding(vertical = 14.dp, horizontal = 24.dp), |
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.
🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Unexpected newline before '.'
|
새로운 브랜치에서 해결 예정 |
📌𝘐𝘴𝘴𝘶𝘦𝘴
📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯
Summary by CodeRabbit
릴리스 노트
새 기능
스타일