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

[FE] feat: 상품 검색 자동완성 쿼리 추가 #447

Merged
merged 9 commits into from
Aug 15, 2023

Conversation

Leejin-Yang
Copy link
Collaborator

@Leejin-Yang Leejin-Yang commented Aug 14, 2023

Issue

✨ 구현한 기능

  • 상품 검색 자동완성 쿼리 추가
  • 상품 검색 결과 API url 수정
  • 검색 응답 데이터 category 속성 categoryType으로 이름 수정

📢 논의하고 싶은 내용

x

🎸 기타

x

⏰ 일정

  • 추정 시간 : 1시간
  • 걸린 시간 : 1시간

@github-actions
Copy link

github-actions bot commented Aug 14, 2023

Unit Test Results

2 tests   2 ✔️  4s ⏱️
1 suites  0 💤
1 files    0

Results for commit 6c33188.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@xodms0309 xodms0309 left a comment

Choose a reason for hiding this comment

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

수고하셨어요 리뷰 확인해주세요~


return data;
};

const useInfiniteSearchedProductsQuery = (query: string) => {
const useInfiniteProductSearchResultsQuery = (query: string) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

위 아래 다른 파일인 것 같은데 왜 hook 이름이 같죠..?

Copy link
Collaborator

Choose a reason for hiding this comment

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

그리고 이거 자동완성 해주는 hook이면 이름에 autocomplete 이런거 들어가면 좋을 것 같아요..아니면 results랑 똑같이 네이밍을 해서 useInfiniteProductSearchResultQuery, useInifniteProductSearchQuery 이런식으로..? 이름이 너무 헷갈려요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

네이밍 어렵더라구요..
결과 => Result
검색중 =>Searching으로 했는데 좀 더 생각해볼게요!

Comment on lines 38 to 43
export interface SearchingProductResponse {
page: Page;
products: SearchingProduct[];
}

export interface ProductSearchResultResponse {
Copy link
Collaborator

Choose a reason for hiding this comment

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

이것도 SearchingProduct랑 ProductSearchResult라서 더 헷갈리는거 같아요. Searching이 자동완성인가요..?

Copy link
Collaborator

@hae-on hae-on left a comment

Choose a reason for hiding this comment

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

저도 자동 완성이면 자동 완성과 관련한 단어가 있는게 더 좋아 보입니다!
useInfiniteProductSearchResultsQuery.ts
useInfiniteSearchingProductsQuery.ts
이 2개가 조금 헷갈립니다!
이름만 봤을 때 어떤게 자동 완성인지 모르겠어요 🥲

@Leejin-Yang
Copy link
Collaborator Author

@hae-on @xodms0309

피드백 반영했습니다!
SearchingProducts => ProductSearchAutocomplete로 수정했어요 😊 b4e0f6a

Copy link
Collaborator

@xodms0309 xodms0309 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~

@Leejin-Yang Leejin-Yang merged commit 4cc056d into develop Aug 15, 2023
3 checks passed
@Leejin-Yang Leejin-Yang deleted the feat/issue-441 branch August 15, 2023 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FE] 검색 자동 완성 API 추가
3 participants