Skip to content

[Feat] 상세 화면 셀프 QA#165

Merged
nahy-512 merged 5 commits into
developfrom
feat/#162-collection-detail-self-qa
Jan 22, 2026
Merged

[Feat] 상세 화면 셀프 QA#165
nahy-512 merged 5 commits into
developfrom
feat/#162-collection-detail-self-qa

Conversation

@giovannijunseokim

@giovannijunseokim giovannijunseokim commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

📮 관련 이슈

📌 작업 내용

Summary by CodeRabbit

릴리스 노트

  • 새로운 기능

    • 컬렉션 생성일 표시 개선으로 더 읽기 쉬운 날짜 형식 제공
    • 북마크 상태 정보 추가
  • 버그 수정

    • 컬렉션 제목이 긴 경우 텍스트 줄임(…) 처리 개선
  • 리팩토링

    • 내부 데이터 구조 업데이트 및 정렬

✏️ Tip: You can customize this high-level summary in your review settings.

- `ContentPreviewProvider`에서 사용하는 모델을 `ContentModel`에서 `ContentModelNew`로 변경
- 변경된 모델 명세에 맞춰 필드명 수정 (`contentId` -> `id`, `posterImage` -> `imageUrl`, `description` -> `reason` 등)
- `OttType` 관련 파라미터 제거 및 `bookmarkCount` 추가
- `collectionContent`의 테스트 데이터를 긴 텍스트로 변경 하여 텍스트 래핑 확인 등에 용이하도록 수정
@giovannijunseokim giovannijunseokim self-assigned this Jan 22, 2026
@giovannijunseokim giovannijunseokim requested a review from a team as a code owner January 22, 2026 11:59
@giovannijunseokim giovannijunseokim added Style 🎨 UI 변경 대응, 코드 스타일 수정 등 간단한 작업 Feat ✨ 신규 기능을 추가하거나 기존 기능의 동작, 정책을 변경 labels Jan 22, 2026
@coderabbitai

coderabbitai Bot commented Jan 22, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

데이터 모델 CollectionDetailModelcreatedAt 타입을 String에서 LocalDate로 변경하고, isBookmarked, title 필드를 추가하며, userId를 private으로 변경했습니다. UI 화면에서 ContentModelContentModelNew로 마이그레이션하면서 필드명을 재구성하고 날짜 서식 지정 로직을 추가했습니다.

Changes

Cohort / File(s) 변경 요약
도메인 모델 업데이트
app/src/main/java/com/flint/domain/model/collection/CollectionDetailModel.kt
createdAt: StringcreatedAt: LocalDate로 타입 변경; LocalDate.parse() 매핑 로직 추가; isBookmarked: Boolean, title: String 필드 추가; userId를 private 생성자 파라미터로 변경; 불필요한 import 제거 및 LocalDate import 추가
UI 화면 업데이트
app/src/main/java/com/flint/presentation/collectiondetail/CollectionDetailScreen.kt
ContentModelContentModelNew 마이그레이션; 날짜 포매팅 로직 추가 (DateTimeFormatter 사용); 헤더 제목 텍스트 오버플로우 처리 (2줄 제한, 말줄임표); 필드명 변경 (contentIdid, posterImage/ottSimpleListimageUrl, descriptionreason); bookmarkCount 필드 추가; 미리보기 데이터 업데이트

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • [Feat] CollectionDetailScreen 추가 구현 #153 — CollectionDetailModel의 userId 가시성 변경 및 CollectionDetailScreen의 헤더/북마크 관련 UI 연결 부분에서 겹치는 API 변경사항이 있습니다.
  • [Feat] ExploreScreen(탐색 화면) #120 — CollectionDetailScreen과 도메인 콘텐츠 모델 마이그레이션(ContentModel → ContentModelNew) 및 createdAt/날짜 처리 부분에서 동일한 UI와 모델 변경사항이 있습니다.
  • [Feat] CollectionDetailScreen 구현 #139 — CollectionDetailModel의 생성자 매핑 로직 및 DTO-to-model 변환 부분에서 직접적으로 관련된 변경사항이 있습니다.

Suggested labels

📱 UI

Suggested reviewers

  • nahy-512

Poem

🐰 모델은 새로운 옷을 입고,
날짜는 LocalDate로 변신했네요!
ContentModelNew, 필드들도 단장하고,
UI는 더 예뻐졌어요.
당신의 컬렉션, 이제 완벽해! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed PR 제목 '[Feat] 상세 화면 셀프 QA'는 컬렉션 상세 화면의 UI/UX 개선 작업을 수행하는 PR의 주요 목적을 명확하게 반영하고 있습니다.
Description check ✅ Passed PR 설명이 관련 이슈(#162)를 명시하고, 작품 제목 표시 방식 변경, createdAt 형식 변경, 이미지 교체 등 세 가지 주요 작업 내용을 커밋 링크와 함께 제시하여 템플릿을 충분히 준수합니다.
Linked Issues check ✅ Passed PR은 issue #162 컬렉션 상세 화면 셀프 QA 요구사항을 충족합니다. 화면 설계서 기준 점검을 통해 제목 표시 방식, 날짜 형식, 배경 이미지 등을 개선하였습니다.
Out of Scope Changes check ✅ Passed 코드 변경사항은 issue #162의 셀프 QA 범위 내에서 이루어졌습니다. CollectionDetailModel과 CollectionDetailScreen의 변경은 모두 UI 표시 형식 개선과 관련된 것입니다.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In
`@app/src/main/java/com/flint/domain/model/collection/CollectionDetailModel.kt`:
- Line 28: The LocalDate.parse(collectionDetail.createdAt) call can throw
DateTimeParseException because it assumes ISO-8601; wrap the parse in
runCatching like the UserRoleType parsing and use a DateTimeFormatter matching
the server format (or a lenient/secondary formatter) so failures are handled
safely and a sensible fallback (null or default date) is returned; update the
createdAt assignment in CollectionDetailModel to use runCatching {
LocalDate.parse(collectionDetail.createdAt, yourFormatter) }.getOrElse { /*
fallback */ } and ensure the formatter constant is clearly named and reused.
🧹 Nitpick comments (1)
app/src/main/java/com/flint/presentation/collectiondetail/CollectionDetailScreen.kt (1)

114-116: DateTimeFormatter 인스턴스 재사용 고려

DateTimeFormatter.ofPattern()은 매 호출 시 새 인스턴스를 생성합니다. remember를 사용하거나 상수로 정의하면 불필요한 객체 생성을 줄일 수 있습니다.

♻️ 제안하는 개선 방안
-private const val DATE_FORMAT_TO_SHOW = "yyyy. MM. dd."
+private val DATE_FORMATTER_TO_SHOW: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy. MM. dd.")

 // CollectionDetailRoute 내부에서:
-                createdAt = collectionDetail.createdAt.format(
-                    DateTimeFormatter.ofPattern(DATE_FORMAT_TO_SHOW)
-                ),
+                createdAt = collectionDetail.createdAt.format(DATE_FORMATTER_TO_SHOW),

@giovannijunseokim giovannijunseokim added 📱 UI feat - 컴포넌트 조립, 화면 구현 and removed Style 🎨 UI 변경 대응, 코드 스타일 수정 등 간단한 작업 labels Jan 22, 2026

@nahy-512 nahy-512 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다

@nahy-512 nahy-512 merged commit b3d02ad into develop Jan 22, 2026
2 checks passed
@nahy-512 nahy-512 deleted the feat/#162-collection-detail-self-qa branch January 22, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feat ✨ 신규 기능을 추가하거나 기존 기능의 동작, 정책을 변경 📱 UI feat - 컴포넌트 조립, 화면 구현

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 컬렉션 상세 화면 셀프 QA

2 participants