Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TNT-180] 트레이니 홈 화면 주간 기록 출력 API 연동 #98

Merged
merged 3 commits into from
Feb 13, 2025

Conversation

SeonJeongk
Copy link
Contributor

📝 작업 내용

  • Closes [TNT-180] 트레이니의 주간 기록 출력 #43

  • 주간 캘린더에서 PT 수업 또는 기록이 있는 날짜에 Indicator 표시

    • PT 수업 및 기록 있는 날짜 조회 API 연동
    • 캘린더 UI와 데이터 연동
  • 네트워크 요청 최적화 (캐싱 적용)

    • 이미 네트워크 요청을 수행한 월(YearMonth)은 다시 요청하지 않도록 캐싱 적용
    • 트레이너 홈 화면(정호님 코드)에서 적용된 캐싱 로직을 참고하여 구현
  • 캘린더 데이터 조회 범위

    • 주간 캘린더에서 한 주가 이전/다음 달과 겹치는 경우에도 데이터를 정상적으로 표시할 수 있도록 구현
    • 현재 선택된 '월(YearMonth)' 기준:
      • startDate: 이전 달 20일부터
      • endDate: 다음 달 7일까지

📸 실행 화면

TraineeWeeklyData.mp4

🙆🏻 리뷰 요청 사항

화이팅팅..

👀 레퍼런스

@github-actions github-actions bot requested a review from hoyahozz February 13, 2025 15:36
@SeonJeongk SeonJeongk changed the title [TNT-180] 홈 화면 수업 혹은 기록 있는 날짜 조회 API 연동 [TNT-180] 트레이니 홈 화면 주간 기록 출력 API 연동 Feb 13, 2025
@SeonJeongk SeonJeongk added this to the 3차 스프린트 milestone Feb 13, 2025
@SeonJeongk SeonJeongk added ✨ Feat 기능 구현 🌻 선정 김씨 집안 막내 김선정 labels Feb 13, 2025
Copy link
Member

@hoyahozz hoyahozz left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 ~~

Comment on lines 45 to 46
val startDate = visibleYearMonth.minusMonths(1).atDay(20).toString()
val endDate = visibleYearMonth.plusMonths(1).atDay(7).toString()
Copy link
Member

Choose a reason for hiding this comment

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

왜 20일과 7일인가용 ?

달 기준 7일을 더하거나 빼는 식으로 읽는 사람을 이해시키는 방법도 있을 것 같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

99df564

그러네요..! 수정했습니다🥺

@SeonJeongk SeonJeongk merged commit 5ded931 into develop Feb 13, 2025
4 checks passed
@SeonJeongk SeonJeongk deleted the feature/TNT-180 branch February 13, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feat 기능 구현 🌻 선정 김씨 집안 막내 김선정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TNT-180] 트레이니의 주간 기록 출력
2 participants