-
Notifications
You must be signed in to change notification settings - Fork 0
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
[#13] FestivalScreen / MoreScreen 구현 #14
Conversation
*change page size
# Conflicts: # app/src/main/java/kr/ksw/visitkorea/domain/usecase/mapper/ToPresentationModelMapper.kt *cat -> catrgory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘하셨는데, 한번에 너무 많은 파일을 한개의 PR 로 올리는 것보다는 나눠서 올리는게 좋을 거 같아요
@Query("areaCode") areaCode: String? = null, | ||
@Query("sigunguCode") sigunguCode: String? = null | ||
): ApiResponse<SearchFestivalDTO> | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
프로퍼티명과 파싱할 값의 이름이 동일하다면 굳이 query annotation 을 쓰지 않아도 됩니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
몰랐었던 부분인데 감사합니다!
eventEndDate: String, | ||
areaCode: String? = null, | ||
sigunguCode: String? = null | ||
): Result<List<SearchFestivalDTO>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing comma 추가하는게 좋을 거 같아요
val title: String = "", | ||
val contentId: String = "", | ||
val eventStartDate: String = "", | ||
val eventEndDate: String = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing comma - 를 추가해 주는 게 좋을 것 같아요.
TOURIST("12", R.string.tourist_spot_title), | ||
CULTURE("14", R.string.culture_center_title), | ||
LEiSURE("28", R.string.leisure_sports_title), | ||
RESTAURANT("39", R.string.restaurant_title) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
가능하다면 여기서도 trailing comma 를 추가해 주는 게 어떨까요?
Surface { | ||
FestivalCard(Festival( | ||
"경상북도 칠곡군 동명면 남원리", | ||
"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서 하드코딩된 값들은 테스트를 위한 걸까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 컴포즈의 Preview를 위한 값입니다.
} | ||
) { index -> | ||
val festival = festivals[index] | ||
festival?.run { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 festival 이 null 이라면 화면에 어떻게 그려질까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LazyGrid 에서 해당 item은 랜더링 되지 않을것 같습니다.
|
||
import kr.ksw.visitkorea.presentation.common.ContentType | ||
|
||
sealed class HomeUiEffect { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HomeUIEffect 가 더 나을 거 같기도 합니다 UI 가 줄임말이기도 하니까요.
) | ||
val data = response.toItems() | ||
val data = try { | ||
locationBasedListApi.getLocationBasedListByContentType( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try-catch 를 시용했는데, LocationBasedList 가 혹시 Retrofit 의 API 인가요 아니면 다른 레이어인가요? 제가 봤을때는 예외처리가 이미 완료된 데이터가 사용되는게 더 나을 거 같거든요. 같이 이야기해 보시죠.
변경사항
멘토님께
동작화면
Screen_recording_20241017_135451.mp4
Screen_recording_20241017_135528.mp4