Conversation
📝 WalkthroughWalkthroughModal 컴포넌트 API를 리팩토링하여 Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/components/modals/account-info-modal.tsx (1)
42-62:⚠️ Potential issue | 🟡 Minor
Modal.Body에variant="form"이 누락되었습니다.
Modal.Header와Modal.Footer에는variant="form"이 적용되어 있지만,Modal.Body에는 variant가 없습니다. 다른 form 타입 모달(예:edit-evaluation-modal.tsx)에서는 Body에도 variant를 적용하고 있어 일관성을 위해 확인이 필요합니다.의도적으로 커스텀 스타일링을 사용한 것이라면 무시해도 됩니다.
🔧 일관성을 위한 수정 제안
- <Modal.Body> + <Modal.Body variant="form">
🤖 Fix all issues with AI agents
In `@src/components/modals/end-group-study.tsx`:
- Around line 135-139: Modal.Body is missing the variant prop (Modal.Header and
Modal.Footer use variant="form"); update the Modal.Body element in
end-group-study.tsx to include variant="form" so the modal sections are
consistent (look for the Modal.Body JSX near Modal.Header and Modal.Footer and
add the variant="form" prop).
🧹 Nitpick comments (2)
src/components/ui/modal/index.tsx (2)
225-235: XIcon에 크기와 접근성 속성 추가를 권장합니다.
XIcon에 명시적인 크기와 접근성을 위한aria-hidden속성이 없습니다. 일관된 UI와 접근성을 위해 추가하는 것이 좋습니다.또한
onClick은 이미...props에 포함되어 있으므로 명시적으로 전달할 필요가 없습니다.♻️ 권장 수정 사항
function ModalCloseButton({ className, - onClick, ...props }: React.ComponentProps<typeof DialogPrimitive.Close> & { className?: string; }) { return ( <DialogClose data-slot="modal-close-button" className={cn('cursor-pointer', className)} - onClick={onClick} {...props} > - <XIcon /> + <XIcon size={24} aria-hidden="true" /> </DialogClose> ); }
131-134: variant 스타일 매핑을 상수로 추출하는 것을 고려해 보세요.
variantClass객체가ModalHeader,ModalBody,ModalFooter에 각각 정의되어 있습니다. 향후 유지보수성과 일관성을 위해 파일 상단에 공통 상수로 추출할 수 있습니다.♻️ 선택적 리팩토링 예시
const MODAL_VARIANT_STYLES = { header: { alert: 'border-border-default flex justify-center border-b py-200', form: 'border-border-default flex justify-between border-b', }, body: { alert: 'font-designer-14r text-text-default flex justify-center py-250 text-center', form: 'flex flex-col gap-400 px-400 py-300', }, footer: { alert: 'flex justify-center gap-200 border-t-0 py-250', form: 'flex justify-end gap-100', }, } as const;Also applies to: 156-160, 183-186
🌱 연관된 이슈
☘️ 작업 내용
🍀 참고사항
스크린샷 (선택)
Summary by CodeRabbit
릴리스 노트