-
Notifications
You must be signed in to change notification settings - Fork 0
fix: 도서 상세 UI 버그 수정 #125
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
Merged
Merged
fix: 도서 상세 UI 버그 수정 #125
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e199447
[BOOK-244] fix: 전체 기록 개수를 PageInfo에서 가져오도록 수정
seoyoon513 33f020b
[BOOK-244] fix: CollectedSeed 디자인 디테일 수정
seoyoon513 2cd288f
[BOOK-244] fix: BookItem 디자인 디테일 수정
seoyoon513 50f8c83
[BOOK-244] fix: 도서 상태 변경 로직 수정
seoyoon513 5df34fe
[BOOK-244] chore: code style check success
seoyoon513 0c3a257
[BOOK-244] chore: 페이지 표시 변경 (P -> p)
seoyoon513 78c6c7d
[BOOK-244] refactor: coroutineScope -> rememberCoroutineScope로 변경
easyhooon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💡 Verification agent
🧩 Analysis chain
readingRecordsPageInfo 상태 도입: OK. 이후 페이지 로드/정렬 변경 시 최신화 필요
초기 로드에서만 설정되어 있어 추가 페이지 로드(loadMore)나 정렬 변경 시 totalElements 등 표시가 갱신되지 않을 수 있습니다. 아래 별도 코멘트에서 loadMore 분기 내 갱신을 제안합니다.
🏁 Script executed:
Length of output: 7418
🏁 Script executed:
Length of output: 4648
loadMoreReadingRecords 함수에 페이지 정보 갱신 로직 추가 필요
loadMoreReadingRecords 호출 시 onSuccess 블록에서 readingRecordsPageInfo 를 업데이트하지 않아, totalElements 등 페이지 정보가 초기값에 고정됩니다. 아래 위치에 result.page 를 반영하는 코드를 추가해 주세요.
제안하는 수정 예시:
recordRepository.getReadingRecords( userBookId = screen.userBookId, sort = currentRecordSort.value, page = startIndex, size = PAGE_SIZE, ).onSuccess { result -> - readingRecords = (readingRecords + result.content).toPersistentList() + readingRecords = (readingRecords + result.content).toPersistentList() + readingRecordsPageInfo = result.page currentStartIndex = startIndex isLastPage = result.content.size < PAGE_SIZE footerState = if (isLastPage) FooterState.End else FooterState.Idle }🤖 Prompt for AI Agents