Skip to content

[#385][FEAT] 홈화면 책 탭 카운트 API 추가 및 내 약속 upcoming 카운트 범위 수정#384

Merged
onuyyy merged 2 commits into
devfrom
feat/home-meeting-book-tab-counts
Apr 26, 2026
Merged

[#385][FEAT] 홈화면 책 탭 카운트 API 추가 및 내 약속 upcoming 카운트 범위 수정#384
onuyyy merged 2 commits into
devfrom
feat/home-meeting-book-tab-counts

Conversation

@onuyyy
Copy link
Copy Markdown
Contributor

@onuyyy onuyyy commented Apr 26, 2026

PR 요약

  • 기능 추가
  • 버그 수정

이슈 번호


주요 변경 사항

  • GET /api/book/reading/tab-counts (신규): 홈화면 읽고 있는 책 탭 카운트 조회 API 추가
    • all = 전체 (READING + PENDING + COMPLETED)
    • before = 약속 전 (READING + PENDING)
    • after = 약속 후 (COMPLETED)
    • all = before + after 항상 보장
  • MeetingService.getMyMeetingTabCounts(): upcoming 카운트 범위를 3일 이내 → 확정된 약속 전체로 변경
    • 기존: countMyUpcomingMeetings(now, now+3days) → 3일 이내만 카운트
    • 변경: countMyMeetingsByStatus(CONFIRMED) → 전체 확정 약속 카운트
    • all = upcoming + done 항상 보장
  • BookReadingTabCountsResponse: 신규 응답 DTO 추가
  • MyMeetingTabCountsResponse: upcoming 필드 설명 업데이트

참고 사항

  • 책 탭 카운트 로직
    • before (약속 전) = READING + PENDING: 아직 완독하지 않은 책
    • after (약속 후) = COMPLETED: 완독한 책
    • all = total (세 상태 합계)
  • 약속 upcoming 변경 배경
    • 기존 3일 이내 필터로 인해 all > upcoming + done 불일치 발생
    • 탭 배지 카운트와 탭 클릭 시 보이는 목록 수가 일치하지 않는 문제 해결
  • 기존 countMyUpcomingMeetings (3일 이내 필터)는 getMyMeetingList 목록 조회에서는 그대로 사용 중

@onuyyy onuyyy changed the title feat: 홈화면 책 탭 카운트 API 추가 및 내 약속 upcoming 카운트 범위 수정 [#385][FEAT] 홈화면 책 탭 카운트 API 추가 및 내 약속 upcoming 카운트 범위 수정 Apr 26, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@onuyyy onuyyy merged commit 231ad71 into dev Apr 26, 2026
1 check passed
@onuyyy onuyyy deleted the feat/home-meeting-book-tab-counts branch April 26, 2026 13:39
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