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

[#13] FestivalScreen / MoreScreen 구현 #14

Merged
merged 13 commits into from
Oct 21, 2024
Merged

[#13] FestivalScreen / MoreScreen 구현 #14

merged 13 commits into from
Oct 21, 2024

Conversation

ksw4015
Copy link
Collaborator

@ksw4015 ksw4015 commented Oct 17, 2024

변경사항

  • 전국 행사조회 API가 추가되었습니다.
  • FestivalScreen 이 추가되었습니다.
  • MoreScreen이 추가되었습니다.

멘토님께

  • 이전에 작업한 로컬 브랜치 내용이라 추후 PR에서 좌표 기본값 및 PageSize 등 상수처리가 되어있지 않습니다.
  • data class의 trailing comma도 추후 추가하였습니다.

동작화면

  • 행사 탭
Screen_recording_20241017_135451.mp4
  • 더보기
Screen_recording_20241017_135528.mp4

@ksw4015 ksw4015 self-assigned this Oct 17, 2024
@ksw4015 ksw4015 added main event EventScreen (행사 탭) more MoreScreen (더보기) labels Oct 17, 2024
@ksw4015 ksw4015 requested a review from f-lab-Toru October 17, 2024 04:58
Copy link

@f-lab-Toru f-lab-Toru left a 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>
}

Choose a reason for hiding this comment

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

프로퍼티명과 파싱할 값의 이름이 동일하다면 굳이 query annotation 을 쓰지 않아도 됩니다.

Copy link
Collaborator Author

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

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 = ""

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)

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(
"경상북도 칠곡군 동명면 남원리",
"",

Choose a reason for hiding this comment

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

여기서 하드코딩된 값들은 테스트를 위한 걸까요?

Copy link
Collaborator Author

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 {

Choose a reason for hiding this comment

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

혹시 festival 이 null 이라면 화면에 어떻게 그려질까요?

Copy link
Collaborator Author

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 {

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(

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 인가요 아니면 다른 레이어인가요? 제가 봤을때는 예외처리가 이미 완료된 데이터가 사용되는게 더 나을 거 같거든요. 같이 이야기해 보시죠.

@ksw4015 ksw4015 merged commit c324b71 into main Oct 21, 2024
1 check failed
@ksw4015 ksw4015 deleted the feature/13 branch October 24, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
main event EventScreen (행사 탭) more MoreScreen (더보기)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants