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

Feat/TripPlaceAccommodation: (여행 숙소 선택 페이지) 기능 구현 1차 완료 #56

Merged
merged 9 commits into from
Mar 8, 2024

Conversation

uniS2
Copy link
Contributor

@uniS2 uniS2 commented Mar 8, 2024

Overview

related #55

작업 내용

  • Types/DataProps.ts 파일 내 AccommodationDataType Tour API '위치기반 숙소정보' Read 데이터 타입 선언
    AccommodationDataType 타입 선언

  • Next configuration 파일 내 Tour API Image URL 패턴 작성

  • 선택한 지역으로 지도 현재 위치 변경

  • Tour API Read 작업 및 데이터 내 좌표를 이용하여 숙소 마커 지도에 표시

  • 지도에 표시되는 숙소 정보, 선택한 숙소 정보 및 관련 로직 Store 구현
    => AccommodationStore storage의 setToggleAccommodation action을 통해 selectedAccommodation state에 선택한 숙소 정보 저장 중 입니다!
    AccommodationStore storage

달성도

  • 여행 일정 날짜별에 맞게 선택한 숙소 정보 업데이트할 예정입니다.
  • 2차 기능 구현 진행할 예정입니다.

레퍼런스

상단_Map
구현 지도
하단_inSelected 하단_selected
구현_inSelected 구현_selected

PR 체크리스트

  • 다음 사항을 읽고 포함하였습니다.
  1. 코드 스타일은 프로젝트 규칙을 따릅니다.
  2. 기능 구현의 경우, 코드는 문제없이 빌드 및 실행됩니다.
  3. 새로운 기능을 테스트한 경우, 기존 기능에 영향을 미치지 않습니다.
  4. 필요한 관련사항을 이슈템플릿에 추가하였습니다.

uniS2 added 9 commits March 8, 2024 04:07
1. 현재 위치 업데이트
2. 숙박 카테고리 마커 표시 기능 분리

수정방향: 지도에 표시되는 마커 전역 관리 + 선택한 정보 전역 관리로 구현할 예정
- 마커 이미지: 무료 Icon 사이트 url.png로 변경
- 숙박 카테고리 지도 에러: 종속성 배열에 map 추가
- selectedAccommodation: 선택된 숙소 정보
- setToggleAccommodation: 선택한 숙소가 selectedAccommodation에 없을 경우, 있을 경우에 따른 추가/삭제 기능
- resetSelectedAccommodation: 선택한 숙소 정보 초기화
- LocalItem: Tour API Read 데이터(위치기반 숙소정보)
- SelectItem: 선택된 숙소 정보
- 그 외 AccommodationStore 내 selectedAccommodation(선택된 숙소 정보 storage) 이용한 정보 렌더링

Related to WeonTrip-WonT#55
@uniS2 uniS2 added ✅Feat 기능 추가, 삭제, 변경 💻Style CSS 등 사용자 UI 디자인 변경 (제품 코드 수정 발생, 코드 형식, 정렬 등의 변경) 💻TypeScript 사용언어 🪪API 서버 API 통신 관련 사항 🐻Zustand 🗺️Map 지도 관련 작업 labels Mar 8, 2024
@uniS2 uniS2 self-assigned this Mar 8, 2024
@uniS2 uniS2 requested review from hyeonjuuu and sy0725 March 8, 2024 08:24
Copy link
Contributor

@hyeonjuuu hyeonjuuu left a comment

Choose a reason for hiding this comment

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

수고 많으셨습니다!!

@hyeonjuuu hyeonjuuu merged commit 347bab5 into WeonTrip-WonT:develop Mar 8, 2024
@uniS2 uniS2 linked an issue Mar 8, 2024 that may be closed by this pull request
9 tasks
@uniS2 uniS2 changed the title Feat/trip place accommodation Feat/TripPlaceAccommodation: 여행 숙소 선택 페이지 기능 구현 1차 완료 Mar 8, 2024
@uniS2 uniS2 changed the title Feat/TripPlaceAccommodation: 여행 숙소 선택 페이지 기능 구현 1차 완료 Feat/TripPlaceAccommodation: (여행 숙소 선택 페이지) 기능 구현 1차 완료 Mar 8, 2024
@uniS2 uniS2 added the ⚙Setting 환경 설정 label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪪API 서버 API 통신 관련 사항 ✅Feat 기능 추가, 삭제, 변경 🗺️Map 지도 관련 작업 ⚙Setting 환경 설정 💻Style CSS 등 사용자 UI 디자인 변경 (제품 코드 수정 발생, 코드 형식, 정렬 등의 변경) 💻TypeScript 사용언어 🐻Zustand
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[WonT - TripAccommodation] 기능 구현 (여행 숙소 선택 페이지)
2 participants