feat: 여행 정보 수정 기능 추가 #15
Open
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.
📝 PR 요약 (Summary)
여행 정보 수정 기능 추가 및 라우팅 구조 개선
🔗 관련 이슈 (Related Issues)
관련 이슈가 있다면 여기에 작성하세요.
Closes #16
🧩 변경 유형 (Change Type)
이 PR의 변경 사항에 해당하는 항목을 선택하세요.
🧾 주요 변경 내용 (What was changed)
구체적으로 어떤 코드/모듈이 수정되었는지 간단히 설명해주세요.
새로 추가된 파일
src/pages/EditTripPage.tsx- 여행 정보 수정 페이지src/features/trip/components/TripForm/- TripForm 컴포넌트 디렉토리로 분리TripForm.tsx- 메인 폼 컴포넌트 (생성/수정 모드 지원)TripTitleInput.tsx- 제목 입력 컴포넌트TripRegionInput.tsx- 지역 입력 컴포넌트TripPeriodSelector.tsx- 기간 선택 컴포넌트TripDatePickerModal.tsx- 날짜 선택 모달TripFolderSelect.tsx- 폴더 선택 컴포넌트TripMemberInvite.tsx- 멤버 초대 컴포넌트src/features/trip/types/trip.dto.ts- API 응답 DTO 타입 정의src/features/trip/types/trip.payload.ts- API 요청 Payload 타입 정의수정된 파일
src/app/App.tsx- 라우팅 구조 개선/trips/:tripId/edit→ 여행 정보 수정 페이지/trips/:tripId/schedule→ 일정 상세 페이지/trips/:tripId/schedule/edit→ 일정 수정 페이지src/features/trip/api/trip.api.ts- API 함수 추가getTripDetail()- 여행 상세 조회updateTrip()- 여행 정보 수정src/features/trip/types/trip.type.ts- 타입 개선startDate,endDatenullable 처리days필드 추가src/features/trip/components/TripCard.tsx- 수정/상세 보기 네비게이션 추가src/features/trip/components/TripCoverUploader.tsx- defaultImage prop 지원src/features/trip/hooks/useTripForm.ts- setForm 함수 export 추가src/shared/config/pageConfig.ts- 라우팅 경로에 따른 페이지 설정 추가src/pages/SchedulePage.tsx,ScheduleEditPage.tsx- 날짜 nullable 처리 및 라우팅 경로 업데이트삭제된 파일
src/features/trip/components/TripForm.tsx- 디렉토리로 이동src/features/trip/components/SectionField.tsx- TripForm 내부로 통합src/features/trip/types/form.ts- DTO/Payload로 분리🧪 테스트 및 검증 (Test)
테스트하거나 검증한 항목을 체크해주세요.
결과 요약:
✅ PR 체크리스트 (Checklist)
PR 제출 전 다음 항목을 확인하세요.
Ctrl + Alt + LorPrettier)💬 추가 참고사항 (Notes)
리뷰어에게 참고되거나 전달할 추가 사항이 있나요?