Skip to content

feat: 인사이트 정적 페이지 구현#76

Merged
enebin merged 7 commits intodevfrom
feat/insight-static-page
Mar 9, 2026
Merged

feat: 인사이트 정적 페이지 구현#76
enebin merged 7 commits intodevfrom
feat/insight-static-page

Conversation

@enebin
Copy link
Member

@enebin enebin commented Mar 8, 2026

✏️ 변경 내용

인사이트 화면 구현

  • InsightViewModel 추가 및 FetchInsightUseCase를 통한 데이터 로딩
  • InsightViewController 리팩토링: 로딩/빈 상태/데이터 표시 바인딩 구성
  • 섹션 뷰 컴포넌트 추가:
    • InsightPhotoStatsView: 사진 통계
    • InsightCategoryStatsView: 카테고리 통계
    • InsightTopMenuView: 인기 메뉴
    • InsightDiaryTimeStatsView: 기록 시간 통계
    • InsightKeywordsView: 키워드
  • SceneDelegate DI 등록 및 AppFlowController 연결

Data / Domain 레이어

  • Insight 엔티티 및 InsightError 정의
  • InsightRepository 프로토콜 및 InsightRepositoryImpl 구현
  • InsightEndpoint, InsightResponseDTO 추가
  • FetchInsightUseCase 추가

버그 수정

  • InsightKeywordsView height constraint 크래시 수정
  • 인사이트 에러 처리 개선: noAccessToken이 "데이터 부족"으로 오분류되던 문제 수정
  • 일반 실패(5xx/디코딩/네트워크) 시 에러 알럿 표시 추가

✅ 체크리스트

  • 빌드 정상 동작
  • 불필요한 파일 없음

Copy link
Member Author

@enebin enebin left a comment

Choose a reason for hiding this comment

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

diff가 만아보이는데 DTO랑 네트워크 호출 + 컴포넌트땜에 커진 감이 있음.. 컴포넌트 쪽은 코멘트 써놓긴 했는데 어차피 나중에 덮어 쓸 거니까 일단 패스~

Comment on lines +197 to +199
guard let insightVM = try? container.resolve(InsightVM.self) else {
fatalError("InsightViewModel not registered")
}
Copy link
Member

Choose a reason for hiding this comment

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

이번에 고도화하면서 VM을 직접 DI에 등록하는거에 대해서 고민을 좀 해봐야 할 듯??

Copy link
Member Author

Choose a reason for hiding this comment

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

이거 맥락이 기억이 안나는데 VM을 머 따로 관리하기로 했었나..?

Copy link
Member

Choose a reason for hiding this comment

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

ViewModel도 .transient 로 해서 괜찮을 거 같긴 하네 큰 문제 생기진 않을 거 같으니까 직접 주입하는 방법으로 일단 가죠!

Copy link
Member

@kanghun1121 kanghun1121 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! 간단한 코멘트 몇 개만 확인해주심 됩니다👍

@enebin enebin requested a review from kanghun1121 March 8, 2026 13:36
Copy link
Member

@kanghun1121 kanghun1121 left a comment

Choose a reason for hiding this comment

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

굿👍

@enebin enebin merged commit b15a9dd into dev Mar 9, 2026
1 check failed
@enebin enebin deleted the feat/insight-static-page branch March 9, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants