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

[#15] 검색화면 (SearchScreen) 구현 #16

Merged
merged 7 commits into from
Oct 24, 2024
Merged

[#15] 검색화면 (SearchScreen) 구현 #16

merged 7 commits into from
Oct 24, 2024

Conversation

ksw4015
Copy link
Collaborator

@ksw4015 ksw4015 commented Oct 21, 2024

변경사항

  • SearchKeywordApi(키워드 검색 서비스)와 Repository, PagingSource가 추가되었습니다.
  • GetListByKeywordUseCase가 추가되었습니다.
  • SearchScreen이 추가되었습니다.

멘토님께

  • ViewModel에서 Actions와 State를 분리하여 구현하였습니다.

동작화면

Screen_recording_20241021_200645.mp4

@ksw4015 ksw4015 added enhancement New feature or request main search search screen develop labels Oct 21, 2024
@ksw4015 ksw4015 requested a review from f-lab-Toru October 21, 2024 11:08
@ksw4015 ksw4015 self-assigned this Oct 21, 2024
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.

아마 몰아서 하실 거 같은데,
하드코딩된 스트링이나 dimension 들은 클래스나 파일에 모아서 관리하도록 하고요
전체적으로 최근의 안드로이드 개발방법론을 따라가고 있는 것 같습니다.

데모 화면을 봤는데 나쁘지는 않은 거 같고요, 나중에는 shimmer loading 효과를 넣어도 좋을 거 같아요.

@Query("pageNo") pageNo: Int,
@Query("keyword") keyword: String,
@Query("contentTypeId") contentTypeId: String? = null
): ApiResponse<LocationBasedDTO>

Choose a reason for hiding this comment

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

방금 든 생각인데, @QueryMap 을 사용하면 여러 개의 쿼리를 맵 하나에 넣어서 좀더 간편하게 할 수 있을 거 같아요.
https://futurestud.io/tutorials/retrofit-2-add-multiple-query-parameter-with-querymap

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@QueryMap을 쓰기에는 좀 애매하다고 생각했었는데, 한 번 적용해 보도록 하겠습니다.

@ksw4015 ksw4015 merged commit 68f0c1b into main Oct 24, 2024
1 check failed
@ksw4015 ksw4015 deleted the feature/15 branch October 29, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request main search search screen develop
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants