-
Notifications
You must be signed in to change notification settings - Fork 1
Fix/122 회원가입 비밀번호 확인 오류 및 팝업 오류 개선 #125
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
Conversation
Walkthrough회원가입 폼의 유효성 검사 및 제출 로직이 명시적으로 리팩토링되었습니다. 기존에는 버튼 비활성화와 제출이 에러 메시지 및 필드 입력 여부에 따라 자동으로 처리되었으나, 이제는 별도의 검증 함수와 제출 핸들러를 통해 모든 필드의 유효성을 확인하고, 유효할 때만 제출이 진행됩니다. 또한, 팝업 컴포넌트의 알림형 팝업에서 확인 버튼에 자동 포커스가 추가되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SignupForm
participant formAction
User->>SignupForm: 입력 및 제출 시도
SignupForm->>SignupForm: handleSubmit 호출 (onSubmit)
SignupForm->>SignupForm: validateAll()로 모든 필드 검증
alt 모든 필드 입력 및 유효
SignupForm->>formAction: formAction(form data) 호출
else 입력 누락 또는 유효성 실패
SignupForm->>SignupForm: 에러 상태 업데이트 및 제출 중단
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related issues
Suggested labels
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Graph Analysis (1)src/app/(non-header)/signup/components/SignupForm.tsx (2)
🔇 Additional comments (6)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
이제 로그인, 회원가입 기능 달인이 되셨네요,,😂
evaain706
left a comment
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.
수정수고하셨습니다! autoFocus로 해결이 가능한 문제였군요
LeeCh0129
left a comment
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.
고생하셨습니다!
📌 변경 사항 개요
회원가입 비밀번호 확인 오류 및 팝업 오류 개선
📝 상세 내용
비밀번호 확인에서 다른 번호를 입력해도 가입 되던 부분을 수정, 백엔드에서 따로 검증 부분이 없어 그대로 가입됨, 프론트에서 해결해야하는 상황
수동 검증을 통해서 비밀번호가 다를 시 submit이 안되게 변경
팝업과 submit 동시에 요청이 되어 팝업이 꺼지지 않는 현상이 있음, 팝업 버튼에 오토 포커스를 통해서 팝업 버튼 우선으로 변경하여 처리
🔗 관련 이슈
🖼️ 스크린샷(선택사항)
💡 참고 사항
Summary by CodeRabbit