[Fix] #235 - 지도 POI 검색 디버깅#236
Open
Remaked-Swain wants to merge 2 commits intodevelopfrom
Open
Conversation
|
Caution Review failedFailed to post review comments Walkthrough지도 초기 검색 기능을 위해 기존 Changes초기 검색 상태 머신 도입
Sequence DiagramsequenceDiagram
actor User
participant MapFeature
participant LocationManager
participant SearchEngine
User->>MapFeature: 지도 화면 진입
MapFeature->>MapFeature: 상태: awaitingPermission
User->>MapFeature: 위치 권한 승인
MapFeature->>MapFeature: 상태: waitingForUserLocation
MapFeature->>LocationManager: 현재 위치 요청
LocationManager->>MapFeature: 사용자 위치 반환
MapFeature->>MapFeature: 상태: readyForUserLocation
MapFeature->>MapFeature: 카메라를 사용자 위치로 이동
User->>MapFeature: 지도 로드 완료 또는<br/>카메라 움직임 종료
MapFeature->>SearchEngine: attemptInitialSearch 트리거
SearchEngine->>SearchEngine: 현재 상태에 따라<br/>검색 좌표 결정
alt 사용자 위치 있음
SearchEngine->>SearchEngine: 사용자 위치 기준 검색
else 사용자 위치 없음
SearchEngine->>SearchEngine: 기본좌표(강남역) 기준 검색
end
SearchEngine->>MapFeature: POI 부스 데이터 반환
MapFeature->>MapFeature: 상태: completed
MapFeature->>User: 지도에 POI 마커 표시
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
🌴 작업한 브랜치
fix/#235-map-initial-search-debug✅ 작업한 내용
isFirstLoad단일 플래그가 아닌MapInitialSearchState기반 상태로 재구성했습니다.notDetermined인 경우 즉시 검색하지 않고, 권한 요청 플로우를 거친 뒤 권한 결과에 따라 후속 동작으로 회귀하도록 정리했습니다.userLocation확보 전에는 기본 좌표 기준 초기 검색이 실행되지 않도록 수정했습니다.cameraIdle이벤트와 실제 검색 가능 상태를 분리해, 초기 카메라가 임시 기본좌표인 상태에서 잘못된 POI가 노출되던 문제를 해결했습니다.❗️PR Point
이번 수정의 핵심은 조건문 보강이 아니라 초기 검색 시점을 상태로 모델링한 것입니다.
isFirstLoad단일 플래그 대신, 권한 미결정, 현재 위치 대기, 기본좌표 검색 가능, 현재 위치 검색 가능, 초기 검색 완료를 명시적으로 분리해 초기 진입 로직의 동작과정을 분명히 했습니다.지도 POI 검색 기준과 주변 포토부스 목록 기준은 기획 의도에 따라 다르게 유지했습니다.
위치 권한 없을 시, 사용자는 본인의 집에 있는데 지도에는 강남역을 기준으로 POI가 나타나면 '왜 이러지?' 싶은 UX를 불러일으킬 수 있을 것 같다는 생각이 문득 들었습니다. 이 경우에는 '기본 좌표를 사용하고 있다'는 정보를 살짝 알려주는 것만으로도 해소될 수 있을 것 같은데, 아직 디자인적 결정사항이 없어서 Future Task로 두고 나중에 건의해보는게 좋을 것 같아서 이 부분 관련해서는 진행하지 않았습니다.
📸 스크린샷
생략합니당!
📟 관련 이슈
Summary by CodeRabbit
릴리스 노트
새로운 기능
개선사항