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

Refactor : 식단 화면 QA 적용 및 수정 #201

Merged
merged 17 commits into from
Mar 26, 2024
Merged

Conversation

huiwoo-jo
Copy link
Contributor

📮 관련 이슈

✍️ 구현 내용

  • adapter명에서 stu를 제거하여 명확한 변수명으로 수정하였습니다.
  • 식단 화면의 날짜 선택을 5일로 고정하여 슬라이드가 불가능하도록 수정하였습니다.
  • 오늘의 날짜로 시작하던 기존 방식에서 해당 주의 월요일로 시작하도록 변경하였습니다.
    오늘의 날짜가 주말일 경우 다음 주 월요일로 시작합니다.
  • 아이콘간의 간격을 수정하였습니다.
  • 한식, 일품, Chip의 글자 크기와 CardView의 크기를 수정하였습니다.
  • 한식, 일품 CardView의 그림자 효과를 제거하고 테두리로 변경하였습니다.

📷 구현 영상

  • image

✔️ 확인 사항

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

@huiwoo-jo huiwoo-jo added 🎨 DESIGN User interface design ♻️ REFACTORING Code refactroing 🩵희우 labels Mar 26, 2024
@huiwoo-jo huiwoo-jo requested review from hoyahozz and m6z1 March 26, 2024 02:39
@huiwoo-jo huiwoo-jo self-assigned this Mar 26, 2024
Copy link
Collaborator

@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.

굿굿 코멘트만 확인 부탁드려요

override fun initAfterBinding() {
val nearestMonday = findNearestMonday(LocalDate.now())
Copy link
Collaborator

Choose a reason for hiding this comment

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

nearestMonday 가 무슨 뜻인가요 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

가장 가까운 월요일입니다!
평일일 경우에는 그 주의 월요일, 주말일 경우에는 다음주 월요일을 찾기 위하여 만들었습니다

@@ -16,6 +19,7 @@ import org.koin.androidx.viewmodel.ext.android.viewModel
import java.time.DayOfWeek
import java.time.LocalDate
import java.time.YearMonth
import java.time.temporal.TemporalAdjusters
Copy link
Collaborator

Choose a reason for hiding this comment

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

어떤 의존성인가요 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

시간을 조정하기 위한 호출입니다
가장 가까운 월요일을 찾기 위하여 사용합니다

_menus.postValue(cafeteriaList.find { it.date == selectedDate }?.menus ?: emptyMenu)
_selectedDate.value = selectedDate
_menus.postValue(
cafeteriaList.find { it.date == selectedDate.toString() }?.menus ?: emptyMenu
Copy link
Collaborator

Choose a reason for hiding this comment

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

selectedDate를 toString 으로 타입을 변경해야 하는데 selectedDate 자체를 LocalDate 타입으로 변경하신 이유가 궁금해요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

날짜의 변동을 확인하는 CafeteriaInterfacenotifyDateChanged을 위하여 LocalDate를 사용해야합니다. String에서 LocalDate로 변경이 불가능하여 LocalDate 타입으로 수정하였습니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

이전에 확인하지 못한 오류라 같이 수정하였습니다

app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
@huiwoo-jo huiwoo-jo merged commit 2ceecc6 into develop Mar 26, 2024
1 check passed
@huiwoo-jo huiwoo-jo deleted the refactor/cafeteria branch March 26, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 DESIGN User interface design ♻️ REFACTORING Code refactroing 🩵희우
Projects
None yet
Development

Successfully merging this pull request may close these issues.

식단 코드 리팩토링 / 리디자인
2 participants