-
Notifications
You must be signed in to change notification settings - Fork 1
Fix/beta qa #167
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
Fix/beta qa #167
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary of ChangesHello @dasosann, 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은 QA 피드백을 반영하여 사용자 경험을 개선하고 기능을 추가합니다. 앨범 생성 시 날짜 선택 범위를 확장하여 당일 날짜도 선택할 수 있게 하고, 사진 상세 페이지에서 직접 사진을 삭제할 수 있는 기능을 도입합니다. 또한, 날짜 피커의 시각적 요소를 개선하고, 사진 정보 표시 로직을 리팩토링하여 컴포넌트의 역할을 명확히 분리했습니다. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
QA에서 발견된 이슈들을 수정하는 PR로 보입니다. 앨범 생성 시 날짜를 오늘까지 선택할 수 있도록 수정하고, 사진 상세 페이지에 삭제 기능을 추가하며 UI를 개선하는 변경사항들이 포함되어 있습니다. 전반적으로 좋은 리팩토링이 이루어졌지만, 몇 가지 개선점을 제안합니다. 디버깅용 console.log를 제거하고, 사진 삭제 후 사용자 경험을 개선하기 위한 후속 처리가 필요해 보입니다. 또한, date-fns를 활용하여 코드 중복을 줄이고 일관성을 높일 수 있는 부분이 있습니다.
| const todayDate = new Date(); | ||
| const yyyy = todayDate.getFullYear(); | ||
| const mm = String(todayDate.getMonth() + 1).padStart(2, '0'); // 0-11이므로 +1 | ||
| const dd = String(todayDate.getDate()).padStart(2, '0'); | ||
| const today = `${yyyy}-${mm}-${dd}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
date-fns 라이브러리가 프로젝트에 이미 사용되고 있으니, 날짜 형식을 직접 만드는 대신 format 함수를 사용하면 코드를 더 간결하고 일관성 있게 유지할 수 있습니다. DateXInput 컴포넌트에서도 date-fns를 사용하고 있습니다.
제안된 코드를 적용하려면 파일 상단에 import { format } from 'date-fns';를 추가해야 합니다.
| const todayDate = new Date(); | |
| const yyyy = todayDate.getFullYear(); | |
| const mm = String(todayDate.getMonth() + 1).padStart(2, '0'); // 0-11이므로 +1 | |
| const dd = String(todayDate.getDate()).padStart(2, '0'); | |
| const today = `${yyyy}-${mm}-${dd}`; | |
| const today = format(new Date(), 'yyyy-MM-dd'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영
| console.log( | ||
| '🗑️ FooterPhotoDetail - canDelete:', | ||
| photoDetail?.canDelete, | ||
| 'photoId:', | ||
| photoId, | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영
| try { | ||
| await mutateAsyncDelete({ albumId, photoId }); | ||
| queryClient.invalidateQueries({ queryKey: [EP.album.photos(albumId)] }); | ||
| setIsPhotoInfoOpen(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영
요약
QA 반영
구현 사항
📸 스크린샷
Need Review
Reference
📜 리뷰 규칙
Reviewer는 아래 P5 Rule을 참고하여 리뷰를 진행합니다.
P5 Rule을 통해 Reviewer는 Reviewee에게 리뷰의 의도를 보다 정확히 전달할 수 있습니다.