-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat] 로그인, 회원가입 페이지 중복확인, 에러 ui, 약관동의 모달 추가 #227
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
refresh, 로그인 toast
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
🎭 Playwright Report✨ E2E Test가 성공적으로 완료되었습니다. Test 요약 내용을 확인해주세요.
📊 Test Summary
📜 Test Details✅ Passed Tests (9)
|
🎨 Storybook Report✨ Story가 변경되었습니다 Chromatic에서 비주얼 변경사항을 확인하세요.
|
📊 Coverage Report
📉 #227을 main에 병합하면 coverage가 Coverage 요약@@ Coverage Diff @@
## main #227 +/- ##
===========================================
- Coverage 33.40% 31.58% -1.82%
===========================================
Files 158 162 +4
Lines 6759 7164 +405
Branches 250 254 +4
===========================================
+ Hits 2258 2263 +5
+ Misses 4501 4901 +400 영향받은 파일✅ 이 PR로 영향받은 파일이 없습니다 수정된 모든 파일이 현재 coverage를 유지했습니다. |
🚀 PR Preview Report✨ Build가 성공적으로 완료되었습니다. Preview에서 변경사항을 확인하세요.
|
Chiman2937
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.
수고하셨습니다~
📝 변경 사항
src/components/pages/signup/signup-form/index.tsx
useModal기반 모달 오픈 흐름을 추가src/components/shared/form-input/index.tsx
FormInput에 중복 확인 버튼(Availability Button) UI를 추가src/hooks/use-auth/use-auth-availabilityCheck/index.ts
useAvailabilityCheck) 추가idle / checking / available / unavailable / error상태 모델링src/hooks/use-auth/use-auth-login/index.ts
router.push('/')) 대신, 쿼리스트링path값을 기반으로 로그인 이전 페이지로 복귀하도록 변경router.replace(nextPath)적용src/components/pages/login/login-toast-effect/index.tsx
error쿼리 존재 시 토스트로 “로그인이 필요한 서비스입니다.” 안내useRef로 마지막 에러를 저장하여 중복 토스트 방지src/app/login/page.tsx / src/components/pages/login/index.ts
LoginToastEffect를 연결하고, 로그인 관련 페이지 export 정리src/hooks/use-auth/use-auth-refresh/index.ts
useRefresh훅 추가 및 exportsrc/app/login/_temp/login-temp-actions.tsx
useRefresh를 연결하여 refresh 동작 확인 가능src/components/pages/signup/signup-agreement-modal/index.tsx
ModalContent,ModalTitle기반으로 약관 동의 내용을 모달로 노출할 수 있도록 구성src/lib/schema/auth.ts
confirmPassword필드: 최소 1자(필수) 메시지 추가termsAgreement: z.literal(true)및 refine로 약관 동의 필수 검증 및 메시지 추가public/icons/dynamic/icon-check.svg / public/icons/sprite.svg / src/components/icon/index.tsx
🔗 관련 이슈
#160
🧪 테스트 방법
📸 스크린샷 (선택)
📋 체크리스트
💬 추가 코멘트
제 pr이 너무 늦어지는거 같아서 일단 중간부분까지만 먼저 올립니다.
나머지 부분은 form-input 구조 변경 후에 같이 올릴게요.
지금 코드가 엄청 더러운데, 구조 변경 하면 변경되는 부분이 많아서 그냥 냅두고 기능 확인만 했습니다.
CodeRabbit Review는 자동으로 실행되지 않습니다.
Review를 실행하려면 comment에 아래와 같이 작성해주세요