Skip to content

Conversation

@huiwoo-jo
Copy link
Contributor

@huiwoo-jo huiwoo-jo commented Apr 3, 2025

📮 관련 이슈

✍️ 구현 내용

  • 변경된 일품 식단과 가격을 반영하였습니다.
  • 오늘의 날짜를 표기합니다.
  • 한식과 일품 탭을 분리하였습니다.
  • 한식, 일품 탭에 따라 식단을 반영합니다.
  • 기존에는 오늘의 날짜가 주말인 경우 다음주 월요일로 이동하였지만, 일요일에 갱신되는 식단에 맞춰 일요일에만 다음주 월요일로 반영됩니다.
    • 토요일: 가장 가까운 지나간 주
    • 일요일: 가장 가까운 새로운 주
  • 주말 식단 운영 안내를 반영하였습니다.

📷 구현 영상

  • 구현 영상을 업로드 해주세요.
  1. 평일
default.mp4
  1. 주말
  • 식단의 주는 기기 시간을 기준으로 반영되어, 아래는 이해를 위하여 주말 판단 방식의 로직을 반전하여 만든 이미지입니다.
  • 실제 주말일 경우 날짜는 선택되어있지 않습니다.
한식 탭 일품 탭
image image

✔️ 확인 사항

  • 컨벤션에 맞는 PR 타이틀
  • 관련 이슈 연결
  • PR 관련 정보 연결 (작업자, 라벨, 마일스톤 등)
  • Github Action 통과

huiwoo-jo added 25 commits April 3, 2025 15:15
@huiwoo-jo huiwoo-jo added 🎨 DESIGN User interface design 🤗 FEATURE Develop this project ♻️ REFACTORING Code refactroing 🩵희우 labels Apr 3, 2025
@huiwoo-jo huiwoo-jo requested a review from m6z1 April 3, 2025 06:28
@huiwoo-jo huiwoo-jo self-assigned this Apr 3, 2025
Copy link
Member

@m6z1 m6z1 left a comment

Choose a reason for hiding this comment

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

뷰홀더 파일만 분리해주시구 머지 고고
고생하셨서요

@huiwoo-jo
Copy link
Contributor Author

말씀해주신 뷰 홀더 수정 후 테스트 진행중 주말 출력 부분에 문제가 있어 같이 수정하였습니다!
확인해주시면 감사하겠습니다🙇‍♂️

  • 뷰 홀더 분리
  • 주말 출력 방식 수정
  • 날짜 선택시 불필요한 fetchCafeteria() 재호출 수정
  • cafeteriaViewModel의 인자 수정

Copy link
Member

@m6z1 m6z1 left a comment

Choose a reason for hiding this comment

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

주말에 제대로 동작하는 것 확인했습니다!
코드 놓쳤던 부분 작성해뒀으니 반영 부탁드려요!
고생하셨습니다 ㅎㅎ 👍


private val _daysMenus: MutableLiveData<List<String>> = MutableLiveData()
val daysMenus: LiveData<List<String>> = _daysMenus
private val _anotherMenus: MutableLiveData<List<Array<String>>> = MutableLiveData()
Copy link
Member

Choose a reason for hiding this comment

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

anotherMenus 로 변경하게 된 계기가 있나욥 ??
다른 메뉴보다 daysMenus 가 더 명시적인 것 같아서요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

일품 메뉴 안에는 고정적으로 매일 판매하는 메뉴와 날마다 변동되는 메뉴들이 있습니다!
저는 daysMenus는 일품 전체보다는 각 요일에 한정적으로 판매하는 메뉴가 더 생각나서 anotherMenus로 변경하였습니다

@huiwoo-jo huiwoo-jo requested a review from m6z1 April 17, 2025 03:31
Copy link
Member

@m6z1 m6z1 left a comment

Choose a reason for hiding this comment

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

코멘트 반영만 부탁드려요!
고생하셨습니다 : )
반영 후 머지 고고싱


private fun setupCalendar() {
val wmc = WindowMetricsCalculator.getOrCreate().computeCurrentWindowMetrics(requireActivity())
val dayWidth = wmc.bounds.width() / 5
Copy link
Member

Choose a reason for hiding this comment

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

5가 무슨 값인지 상수화 한 번만 부탁드려욥

Comment on lines +132 to +134
TypedValue.COMPLEX_UNIT_DIP,
DATE_CELL_HEIGHT_DP,
resources.displayMetrics
Copy link
Contributor Author

Choose a reason for hiding this comment

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

기존에 셀 높이의 124f도 상수화하였습니다.

@huiwoo-jo huiwoo-jo merged commit f5d818f into develop Apr 21, 2025
1 check passed
@huiwoo-jo huiwoo-jo deleted the refactor/cafeteria-v2 branch April 21, 2025 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎨 DESIGN User interface design 🤗 FEATURE Develop this project ♻️ REFACTORING Code refactroing 🩵희우

Projects

None yet

Development

Successfully merging this pull request may close these issues.

금주의 식단 디자인 수정

3 participants