Skip to content

Conversation

@youdaeng2
Copy link
Member

@youdaeng2 youdaeng2 commented Aug 2, 2025

📦 Pull Request

📝 요약(Summary)

  • AddWineModal, EditWineModal에 이미지 확장자 유효성 검사 추가
  • .png, .jpg, .jpeg, .webp만 허용
  • 허용되지 않는 확장자 업로드 시:
    • 미리보기 이미지 제거
    • 에러 메시지 표시 (지원하지 않는 이미지 형식입니다.)
    • form 제출 방지 처리
  • react-hook-formsetError()로 수동 유효성 설정 처리

추가로 마이프로필 이미지 확장자 에러를 알렛에서 토스트로 변경하였습니다

💬 공유사항 to 리뷰어

테스트 방법

  1. 와인 등록 또는 수정 모달에서 이미지 업로드 시도
  2. .heic, .svg, .pdf 등 허용되지 않은 확장자 선택
  3. 미리보기 이미지가 나타나지 않고 에러 메시지 출력되는지 확인
  4. 해당 상태에서 제출 버튼 클릭 시 등록/수정이 진행되지 않는지 확인
  5. .png, .jpg 등 정상 확장자는 정상적으로 업로드 및 등록되는지 확인

-->

🗂️ 관련 이슈

📸 스크린샷

✅ 체크리스트

  • 빌드 및 테스트 통과
  • ESLint/Prettier 검사 통과

@vercel
Copy link

vercel bot commented Aug 2, 2025

@youdaeng2 is attempting to deploy a commit to the 626-ju's projects Team on Vercel.

A member of the Team first needs to authorize it.

@626-ju 626-ju merged commit 1e7c7b4 into codeit-part3-7:dev Aug 2, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants