[FEAT] 저장 조회 화면 api 연결#115
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough저장한 책/피드 조회 기능을 위한 모델·서비스·레포지토리·뷰모델·화면 연동을 추가/개편했다. MyPage 저장 화면을 Hilt 기반으로 교체하고 탭 전환 시 저장 데이터 로드가 이루어지도록 했다. 이외 여러 UI 패딩/레이아웃 및 AppBar 상호작용(IconButton→Icon+clickable) 변경과 일부 프로젝트 설정 파일이 수정되었다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant S as MypageSaveScreen
participant VMF as SavedFeedViewModel
participant VMB as SavedBookViewModel
participant RF as FeedRepository
participant RB as BookRepository
participant SF as FeedService
participant SB as BookService
Note over S: 탭 전환 시 데이터 로드
U->>S: 탭 선택(피드/책)
alt 피드 탭
S->>VMF: loadSavedFeeds()
VMF->>RF: getSavedFeeds(cursor?)
RF->>SF: GET /feeds/saved
SF-->>RF: BaseResponse<AllFeedResponse>
RF-->>VMF: Result<AllFeedResponse?>
VMF-->>S: feeds StateFlow 업데이트
else 책 탭
S->>VMB: loadSavedBooks()
VMB->>RB: getSavedBooks()
RB->>SB: GET /books/saved
SB-->>RB: BaseResponse<BookUserSaveResponse>
RB-->>VMB: Result<BookUserSaveResponse?>
VMB-->>S: books StateFlow 업데이트
end
sequenceDiagram
autonumber
actor U as User
participant S as MypageSaveScreen
participant VMF as SavedFeedViewModel
participant VMB as SavedBookViewModel
participant RF as FeedRepository
participant RB as BookRepository
Note over S: 액션 버튼
U->>S: 북마크 토글(피드)
S->>VMF: toggleBookmark(feedId)
VMF->>RF: changeFeedSave(feedId)
RF-->>VMF: Result
VMF-->>S: 리스트에서 제거(미저장)
U->>S: 북마크 토글(책)
S->>VMB: toggleBookmark(isbn)
VMB->>RB: saveBook(isbn, type=false)
RB-->>VMB: Result
VMB->>VMB: loadSavedBooks() 재호출
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Possibly related PRs
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (24)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
➕ 이슈 링크
🔎 작업 내용
📸 스크린샷
😢 해결하지 못한 과제
[] TASK
📢 리뷰어들에게
Summary by CodeRabbit
신규 기능
UI