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

상품검색 페이지 #105

Merged
merged 6 commits into from
Dec 20, 2019
Merged

상품검색 페이지 #105

merged 6 commits into from
Dec 20, 2019

Conversation

kgpyo
Copy link
Contributor

@kgpyo kgpyo commented Dec 17, 2019

PR에 대한 요약

  • 상품을 검색할 수 있는 페이지입니다.

PR에 대한 동기와 상황에 대한 설명 부탁드립니다.

-일래스틱 서치 검색(#55)을 이용하여 사용자가 키워드를 입력할 때 한영타가 바뀌거나 한두글자 정도의 오탈자를 보정하여 검색할 수 있게 제공합니다. #45

이번 코드는 어떻게 테스트 되었나요?

  • X

결과물 스크린샷 (선택) :

4

어떤 변화인가요?

  • Bug fix (큰 변화없이 이슈를 고칩니다.)
  • New feature (큰 변화없이 기능을 추가합니다.)
  • Breaking change (기능을 추가하거나, 수정함으로서 기존의 기능에 영향을 줄 수 있습니다.)

체크리스트:

  • 본 프로젝트의 코드 스타일을 따랐습니다.
  • 이번 변화에 대한 결과로, 본 프로젝트의 문서를 수정해야 합니다.
  • 이에 따라 본 프로젝트의 문서를 적절히 갱신하였습니다.

본 PR은 다음 이슈에 해당하는 내용입니다.

Closes #55 #46 #45

- 키워드 검색을 위한 컴포넌트 추가
- 오탈자 보정이나, 연관검색어 제공을 위해서 별도의 검색페이지를
만들어서 검색하는 페이지 추가(라우터)
- 한글을 입력해야하는데 영타로 작성한 경우 검색어 제안을 위해서
inko 라이브러리 설치
- 한글자인 경우에는 아직 입력중이라 생각되기 때문에 변환된 글자가
두 글자를 넘어서는 경우에만 추천할 수 있도록 변경
- 사용자가 입력한 검색어를 실제 검색결과에 반영하기 위해서 context
- 검색결과 초기화는 별도의 버튼을 이용하기 때문에 여기서는 처리하지
않는다.
@kgpyo kgpyo added feature New feature or request task 유저 스토리에 포함되어 있는 세부 테스크들 epic:상품검색 epic labels Dec 17, 2019
@kgpyo kgpyo requested review from sukjae and Johnie-Yeo December 17, 2019 12:49
Copy link
Collaborator

@Johnie-Yeo Johnie-Yeo left a comment

Choose a reason for hiding this comment

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

고생하셨습니다.

}
if (isKoreanOnly(keyword)) {
recommendKeyword = new Inko().ko2en(keyword);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

이 부분에 대해서는 추가적으로 개선작업이 반드시 필요할 것으로 생각됩니다.
한글과 영어가 섞이는 과정은 꽤 많을 것으로 예상됩니다.
ex) 갤럭시S10 -> roffjrtlㄴ7

Copy link
Contributor Author

@kgpyo kgpyo Dec 18, 2019

Choose a reason for hiding this comment

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

혼동을 피하는 메소드로 변경하겠습니다.
해당 메소드는 영어만 사용되지 않으면 변환됩니다.

영어 섞이는 경우는 다른 방법으로 고려해보겠습니다.

params: { keyword }
})
return response.data;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

api 호출은 custom Hooks 등의 방법으로 외부로 분리하여야 할 것 같네요. uri는 또 별도의 파일로 관리가 필요하겠고요.

Copy link
Collaborator

@sukjae sukjae left a comment

Choose a reason for hiding this comment

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

LGTM.
고생 많으셨습니다!

@kgpyo kgpyo merged commit c9e944e into client-web/master Dec 20, 2019
@kgpyo kgpyo deleted the client-web/search branch December 20, 2019 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic:상품검색 epic feature New feature or request task 유저 스토리에 포함되어 있는 세부 테스크들
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants