-
Notifications
You must be signed in to change notification settings - Fork 0
feat/#104: 메인화면 검색 구현 #111
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
The head ref may contain hidden characters: "feat/104-\uBA54\uC778\uD654\uBA74-\uAC80\uC0C9-\uAD6C\uD604"
Conversation
- 파티 검색 - 최근 검색 조회 - 최근 검색 모두 삭제 - 최근 검색 특정 삭제
api 연결
DandelionQZ
left a comment
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.
확인했습니다 ~ 수고하셨어요!
| const { data: userMe } = useQuery({ | ||
| queryKey: ["getUserMe"], | ||
| queryFn: getUserMe, | ||
| refetchOnMount: false, | ||
| refetchOnWindowFocus: false, | ||
| }); |
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.
이번에 채팅 기능 구현하면서 유저 정보 store 수정해뒀는데, 저희 pr 모두 반영되면, 추후에 store에서 값 참고하셔서 사용하는게 좋을거 같아요
⚙️ Related ISSUE Number
#104
📄 Work Description
검색 기능
개요
검색 기능은 사용자가 파티를 검색할 수 있는 화면으로, 검색어 입력, 최근 검색어 표시, 카테고리 필터링, 검색 결과 표시 및 무한 스크롤 기능을 제공합니다.
주요 기능
1. 검색바 (SearchBar)
2. 최근 검색어 (RecentSearchList)
3. 카테고리 필터 (MainCategory)
4. 검색 결과 리스트 (SearchResultList)
5. 무한 스크롤
변경된 파일
1.
app/search/search.tsxsearchText,searchQuery)useInfiniteQuery를 사용한 검색 결과 조회2.
components/search/SearchBar.tsx3.
components/search/RecentSearchList.tsx4.
components/search/SearchResultList.tsxonEndReached,isFetchingNextPage)5.
api/partyApi.ts(searchParties 함수)page와size파라미터를 받아 페이지네이션 지원hasNext필드가 포함되어 있어 다음 페이지 존재 여부 확인 가능q), 카테고리(category), 위치(lat,lon) 파라미터 지원6.
api/partyApi.ts(getSearchLog, deleteSearchLog, deleteAllSearchLog 함수)📷 Screenshot
💬 To Reviewers
키보드가 autofocus 를 줬더니 화면 넘기는 모션이랑 키보드랑 겹쳐서 일단 주석 처리 해뒀습니다
이 부분은 추후에 키보드를 몇 초 이후에 띄우던지 수정해야할 것 같습니다...
IOS 그림자도 수정해두었습니다
중간에 헷갈려서 #105로 커밋한 부분이 있는데 참고해서 봐주세요... 죄송합니다ㅜㅜ