Repository navigation
fix(map): 지도 검색의 다른 나라 이동과 '현 위치에서 검색' 정리 - #257
Merged
Merged
Conversation
- 입력창이 닫힌 뒤 대기 중인 타이머가 Google 자동완성을 한 번 더 보내던 것을 언마운트 때 취소(건별 과금) - 응답을 가리는 번호를 타이머가 실행될 때만 올려서, 보낸 뒤에 닫거나(선택·Enter) 짧게 지우거나 다시 입력하면 늦게 온 추천이 목록을 다시 열었음 - 취소(타이머 취소 + 번호 올림)를 cancelPending 하나로 모아 다시 입력·닫기·언마운트가 모두 거치게 하고, 번호는 예약할 때 잡음(지도 검색창 cancel과 같은 방식) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 첫 후보 좌표를 중심으로 쓰면 이름만 같은 다른 나라 장소로 지도가 넘어감(도쿄 지도 '음식점' → 용인 '음식점') - 모두검색은 첫 후보를 확정(resolve)하지 않음, 검색어에 지명이 있으면 Google이 위치 우선을 무시해 다른 도시 검색은 유지 - 쓰지 않게 된 검색 store의 fallback 제거 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Text Search 위치 우선은 영역 밖 결과도 돌려줘 재검색하면 이동 전 장소로 지도가 되돌아감 - 재검색 결과를 화면 경계로 거르고, 남는 게 없으면 결과 없음 - 재검색 위치 우선 반경을 5km 고정 대신 화면을 덮는 크기로 맞춤 - 지도 store에 화면 경계(bounds) 추가 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 기준점을 검색 요청 때 화면 대신 결과로 옮긴 지도가 멈춘 화면으로 다시 잡음(맞춤 확대·결과 1개 확대·핀/카드 선택 이동) - 멈추기 전에 사용자가 지도를 누르거나 휠을 굴리면 취소해 사용자의 이동은 기준점으로 삼지 않음 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 모두검색이 실패하면 오류 원문("Failed to fetch") 대신 '검색에 실패했어요.'를 보여 줌
- 글자 링크 '다시 시도'를 오른쪽 끝 다시 시도 아이콘 버튼(누르는 영역 44px)으로 바꿈
- 후보 클릭 실패 문구는 이번 범위에서 제외(그대로)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 추천을 못 받으면 '모든 결과보기' 아래 안내에 "Failed to fetch" 같은 원문이 나오던 것을 기본 안내("검색 추천을 불러오지 못했어요. 다시 입력해주세요.")로 바꿈
- 서버가 준 안내(429 "잠시 후 다시 검색해주세요." 등)는 그대로 보여 줌
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 안내 상자와 추천 목록이 둘 다 검색창 바로 아래라, 다시 검색하려고 누르면 안내가 추천 목록을 덮음 - 검색창 입력에 포커스가 있는 동안 안내 상자를 숨김(CSS group-has, 상태 추가 없음) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 실패하면 하단 버튼이 '다시 시도'로 남고, 누르면 같은 화면을 다시 찾음(보이던 결과는 그대로) - 결과가 0개면 버튼 자리에 '검색 결과가 없어요'(X로 닫기)를 띄우고 검색창 아래에는 띄우지 않음 - 지도를 옮기면 새 화면 검색이라 다시 '현 위치에서 검색' - 검색 store에 검색을 시작한 곳(searchMode)을 두고 안내 위치를 계산 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 위치 우선(locationBias)으로 찾은 뒤 프론트에서 화면 밖 결과를 거르던 방식을 새 API GET /places/search/area(locationRestriction)로 바꿈 - Google이 화면 안에서 결과를 채워 주므로 버려지는 결과가 없고, 프론트 필터는 지움 - 백엔드 feature/place-search-restriction이 먼저 배포돼야 함(없으면 재검색이 실패해 버튼이 '다시 시도'로 남음) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 회색 테두리 Chip 대신 같은 자리의 '현 위치에서 검색' 알약(파란 3px 테두리·흰 바탕·같은 글자)을 그대로 씀 - 알약 클래스를 SearchHereFloatingButton에서 함께 쓰도록 내보냄, 닫기 X는 버튼 아이콘과 같은 파란색 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 카테고리 칩 검색(Places JS SDK)이 오류로 실패하면 핀만 비우고 아무 안내가 없었음(결과 0개는 그대로 안내 없음) - MapDiscoverPlaces가 실패를 알리고 TripMap이 useState로 들어 버튼에 넘김, 누르면 같은 화면을 다시 찾음 - 실패 뒤 지도를 옮기면 새 화면 검색이라 다시 '현 위치에서 검색' Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



노션
변경 내용
음식점→ 용인의 '음식점' 가게). 검색어에 지명이 있으면(라스베가스) 그 도시로 넘어가는 건 그대로GET /places/search/area로 지금 화면 사각형 안만 찾음(GooglelocationRestriction). 결과가 없으면 버튼 자리에 "검색 결과가 없어요 ×", 실패하면 버튼이 "다시 시도"(카테고리 칩 재검색 실패 포함), 검색창 아래에는 띄우지 않음변경 이유
테스트
npm run lintnpm testnpm run build🤖 Generated with Claude Code