Conversation
Summary of ChangesHello @minngyuseong, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 사용자가 특정 여행 경비 세부 정보를 볼 수 있도록 여행 상세 페이지 구현을 도입합니다. 또한, 일반 여행 개요와 동적 ID를 사용하는 개별 여행 항목에 대한 상세 보기를 모두 지원하도록 여행 페이지의 라우팅을 리팩토링합니다. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
이 PR은 여행 상세 페이지를 구현하고 관련 라우팅을 설정합니다. 새로운 TravelDetailPage 컴포넌트는 더미 데이터를 사용하여 지출 내역을 보여주는 데이터 테이블을 포함하고 있습니다. 전반적으로 페이지의 기본 구조는 잘 잡혀있으나, UI에 표시되는 텍스트의 잠재적인 중복 문제를 해결하는 것이 좋겠습니다. 렌더링 성능 최적화는 현재 더미 데이터 사용으로 인해 우선순위가 낮지만, 향후 API 연동 시 고려해볼 수 있습니다. 자세한 내용은 코드 리뷰 주석을 참고해주세요.
dfedcf6 to
ec0074d
Compare
- 여행지 Title - 지출 내역 불러오기 BottomSheet 반영
ec0074d to
da1b66e
Compare
Kjiw0n
left a comment
There was a problem hiding this comment.
수고하셨습니다 👍 👍 여행 페이지까지 빠르게 작업해주셨네요
코멘트 확인 부탁드려요!!
There was a problem hiding this comment.
어떤 id인지 명시를 해주면 좋을 것 같아요. 파일 명 그대로 param키로 들어가는 것 같아요.
백엔드에서는 각 여행 폴더 id를 travelId로 주고있어요!
| <div className="flex flex-col px-30 pt-8"> | ||
| <div className="mb-10 flex items-end gap-4"> | ||
| <div className="flex flex-col gap-4"> | ||
| <h2 className="heading2-bold text-label-normal">뉴욕 보스턴</h2> |
| transition={{ type: 'spring', damping: 25, stiffness: 200 }} | ||
| className={cn( | ||
| `bg-background-normal fixed right-[12vh] bottom-0 left-[18vh] z-50 h-[80vh] rounded-t-2xl ${className}`, | ||
| `bg-background-normal scrollbar fixed right-[12vh] bottom-0 left-[18vh] z-50 h-[80vh] overflow-y-auto rounded-t-2xl px-2 ${className}`, |
There was a problem hiding this comment.
혹시 BottomSheet 자체에 스크롤을 넣기보다 children에서 스크롤이 필요한 UI에 넣은 건 어떨까요??
현재의 경우 DataTable 이요!
There was a problem hiding this comment.
혹시 파일 명과 default 컴포넌트 명이 다른 이유가 무엇인가요??
| <TableCell | ||
| colSpan={table.getVisibleLeafColumns().length} | ||
| className="h-24 text-center" | ||
| className="h-[50vh] text-center" |
| baseCountryAmount={folder.baseCountryAmount} | ||
| imageUrl={folder.imageUrl} | ||
| /> | ||
| <Link to={'/travel/' + index} key={index}> |
There was a problem hiding this comment.
-
index 대신 mock에
travelId추가하고 매핑하면 어떨까요? 추후에 API 연동해도 코드 변경 없도록! -
<Link>의 to에 route 경로명으로 써주시면 좋을 것 같습니다. (params도 사용하면 좋아요!)공식문서 예시 링크

| <FolderCard | ||
| key={index} |
There was a problem hiding this comment.
- 상위 태그에서 key 받고있으니
FolderCard에서는 제거해주세요!



관련 이슈
closes #396
작업 내용
여행 상세 페이지를 만들었어요.
지출내역 추가하기 버튼을 누르면 BottomSheet가 올라와서 가계부에서 지출내역을 선택할 수 있는 UI만들었어요.
스크린샷
💬 공유사항 to 리뷰어
BottomSheet에서 스크롤될때 TableHead가 고정돼야하는데, 전체적으로 z값을 정리할 필요가 있어서 다른 PR에서 z값 전부 통일하고 sticky 설정할게요.
필수 체크사항