[UNI-221] feat : 지도 메인페이지 UX 개선 및 길찾기 사용자 로직 변경#127
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
jpark0506
left a comment
There was a problem hiding this comment.
LGTM~ UI가 많이 바뀌었을텐데, 사용성 잘 개선된 것 같습니다~ 고생하셨습니다!
|
|
||
| /** 출발 도착 설정시, 출발 도착지가 한 눈에 보이도록 지도 조정 */ | ||
| useEffect(() => { | ||
| if (origin && destination) { | ||
| const newBound = new google.maps.LatLngBounds(); | ||
| newBound.extend(origin); | ||
| newBound.extend(destination) | ||
| map?.fitBounds(newBound) | ||
| } | ||
|
|
||
| }, [origin, destination]); |
| },) | ||
|
|
||
| const handleBack = () => { | ||
| navigate(-1); |
There was a problem hiding this comment.
unversity가 저장되어 있는 상태에서 바로 접근이 가능한 페이지라,
| navigate(-1); | |
| navigate("/map"); |
으로 넘어가는 방식도 괜찮을 것 같습니다!
#️⃣ 작업 내용
주요 기능
상단 Input Top Sheet 2가지 생성
시트를 보여주는 시나리오는 총 3가지가 존재합니다.
2번과 3번을 구분하기 위해, 기존에 있던 useSearchBuilding에서 2가지 모드를 3가지
BUILDING, ORIGIN, DESTINATION으로 재정의하고 검색 모드가BUILDING인지 아닌지로 구분하였습니다.그리고 모드가 바뀜에 따라 TopSheet간의 전환이 자연스럽게 진행하도록 애니메이션을 적용하였습니다.
사용자 건물 선택 로직 (시나리오 변경)
직접 UX를 설계하는 과정이 필요하여 제 나름대로 설계를 하고 Flow 차트를 그려봤습니다.
3가지의 주요 컴포넌트 간의 관계도 입니다.
동적 지도 이동
애니메이션 적용
버그 수정,
동작 화면
상단 검색 전환
2025-02-13.5.28.08.mp4
길 찾기 유저 로직 변화
2025-02-13.5.33.52.mp4
출발 도착 선택 시, 지도 동적 이동
2025-02-13.5.34.22.mp4
CTA, 플로팅 버튼 애니메이션
2025-02-13.5.34.46.mp4