Skip to content

feat: 빈 상태에서 음식 사진 유무에 따라 분기 표시#73

Merged
enebin merged 1 commit intodevfrom
feat/empty-state-food-photos
Feb 28, 2026
Merged

feat: 빈 상태에서 음식 사진 유무에 따라 분기 표시#73
enebin merged 1 commit intodevfrom
feat/empty-state-food-photos

Conversation

@enebin
Copy link
Member

@enebin enebin commented Feb 28, 2026

✏️ 변경 내용

위클리 캘린더에서 선택한 날짜에 음식 기록이 없을 때, 사진 라이브러리에 해당 날짜의 음식 사진이 있는지 미리 조회하여 빈 상태를 두 가지로 분기합니다.

  • 음식 사진이 있는 경우: "오늘의 음식 사진을 추가해보세요" (탭 → 이미지 피커)
  • 음식 사진이 없는 경우: "기록 가능한 음식 사진이 없어요" (탭 비활성화, emptyMeal 아이콘)

변경 파일

  • WeeklyCalendarViewModel - DateContenthasFoodPhotos 필드 추가, empty 상태일 때 사진 존재 여부 조회
  • BottomContentView - State.empty(hasPhotos:)로 변경, 사진 유무에 따라 탭 바인딩 분기
  • EmptyFoodRecordView - Style enum 추가 (.addable / .unavailable)
  • WeeklyCalendarViewController - empty 상태에 hasFoodPhotos 전달

✅ 체크리스트

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

@enebin enebin self-assigned this Feb 28, 2026
@enebin enebin merged commit 15e5fb3 into dev Feb 28, 2026
1 check failed
@enebin enebin deleted the feat/empty-state-food-photos branch February 28, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant