feat: 1.9.1 업데이트 - #932
Merged
Merged
Conversation
feat: 버전 코드 업데이트
fix: 서재 datastore sorttype 마이그레이션
- `PopularFeedsResponseDto.kt`: `feedContent`, `isPublic`, `novelTitle`, `novelImage` 필드를 Non-nullable로 변경하고, 기존의 `title`, `novelThumbnailImage` 대신 `novelGenre` 필드 추가 - `FeedMapper.kt`: 변경된 DTO 구조에 맞춰 매핑 로직 수정 및 `novelGenre` 매핑 추가 - `FeedRepository.kt`: 개별 피드 상세 정보를 반복 호출하던 `fetchPopularFeedsWithDetails` 함수를 삭제하고, `fetchPopularFeeds` 내에서 유효한 피드만 필터링하도록 로직 간소화 - `HomeViewModel.kt`: 상세 정보 조회가 통합된 `feedRepository.fetchPopularFeeds`를 호출하도록 수정 및 이에 따른 데이터 접근 방식 변경
- `PopularFeedsEntity.kt`: 불필요한 래퍼 클래스인 `PopularFeedsEntity`를 삭제하고, 내부 `PopularFeedEntity`를 별도 파일로 분리 - `FeedMapper.kt`: `toData` 함수의 반환 타입을 `PopularFeedsEntity`에서 `List<PopularFeedEntity>`로 수정 - `FeedRepository.kt`: `fetchPopularFeeds`의 반환 타입을 리스트로 변경하고, 필터링 로직을 리스트 확장 함수를 사용하는 방식으로 간소화 - `HomeViewModel.kt`: 래퍼 클래스 제거에 따라 `popularFeeds` 데이터 접근 로직 수정 - `HomeUiState.kt`, `PopularFeedsAdapter.kt`, `PopularFeedsViewHolder.kt`: 참조하던 `PopularFeedsEntity.PopularFeedEntity` 타입을 `PopularFeedEntity`로 업데이트
- `PopularFeedsResponseDto.kt`: `feedContent` 필드를 nullable(`String?`)로 변경하고 기본값을 `null`로 설정 - `FeedMapper.kt`: `PopularFeedEntity` 변환 시 `feedContent`가 null인 경우 빈 문자열을 반환하도록 `orEmpty()` 적용
- `FeedMapper.kt`: `PopularFeedsResponseDto.toData` 함수에서 `feedContent`가 null이거나 공백인 항목을 리스트에서 제외하도록 `mapNotNull` 및 `isNotBlank` 필터링 로직 적용
fix: 지금 뜨는 글 조회 N + 1 문제
- `HomeFragment.kt`: 로그인한 사용자에게 개인화된 추천 문구(`%s님을 위한 추천글`)를 노출하고, 텍스트 배치를 위해 아이콘 숨김 및 제약 조건(Constraint)을 조정하는 로직 추가 - `fragment_home.xml`: 라이징 피드 타이틀 `TextView`에 ID(`tv_home_rising_feed`) 추가 - `strings.xml`: 사용자 닉네임을 포함하는 개인화 문구 리소스(`home_rising_feed_for_user`) 추가
- `HomeFragment.kt`: 로그인 상태에 따라 'HOT' 아이콘 가시성과 타이틀 위치를 동적으로 변경하던 로직 삭제 및 닉네임 업데이트 로직 간소화 - `fragment_home.xml`: 'HOT' 아이콘(`iv_home_hot`) 삭제 및 라이징 피드 타이틀(`tv_home_rising_feed`)을 부모 컨테이너 왼쪽에 고정되도록 레이아웃 수정
- `MainViewModel.kt`: 유저 정보 요청 시작 및 성공 시 `mainUiState`의 `error` 상태를 `false`로 명시적으로 업데이트하도록 수정
홈 화면 타이틀 텍스트 변경
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📌𝘐𝘴𝘴𝘶𝘦𝘴
📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯
📷𝘚𝘤𝘳𝘦𝘦𝘯𝘴𝘩𝘰𝘵
💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴