You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: CreateMeetingForm 타입을 optional 에서 nullable 로 변경
react-hook-form의 field.onChange(undefined) 호출 시 이전 값으로
롤백되는 문제를 해결하기 위해 undefined 대신 null을 사용하도록
타입을 변경하고 defaultValues를 설정
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: 모임 생성 퍼널 Step 컴포넌트 toggle 버그 수정
- undefined 대신 null을 사용하여 필드 초기화가 정상 동작하도록 수정
- Footer 컴포넌트에서 useController 대신 useWatch 사용
- RegionChip에 toggle 로직 추가
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: 모임 생성 폼을 zod 기반 validation으로 리팩토링 (#65)
* feat: CreateMeetingForm zod 스키마 추가
모임 생성 폼의 validation을 zod 기반으로 관리하기 위한 스키마 정의
- peopleCount, scheduledDate, timeSlot, region 필드 정의
- 기존 validateDateInput 유틸 함수 재사용
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: 모임 생성 폼을 zod 기반 validation으로 리팩토링
- useCreateMeetingForm에 zodResolver 적용 및 submit 로직 통합
- Step 컴포넌트에서 rules 객체 제거
- page.tsx에서 submit 로직 제거하여 간소화
- CreateMeetingForm 인터페이스를 스키마 타입으로 대체
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: DATE_ERROR_MESSAGES 중복 제거 및 formState 활용
- DATE_ERROR_MESSAGES를 유틸로 추출하여 공유
- DateStep에서 fieldState.error 사용으로 변경
- DateStepFooter에서 formState.errors 기반으로 버튼 활성화 판단
- 스키마에서 10자리 미만일 때는 validation 건너뛰도록 수정 (이전 동작 유지)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* style: useCreateMeetingForm 조건문 포맷팅 정리
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: useWatch 사용 패턴 개선
- DateStep: 두 개의 useWatch를 배열 형태로 축약
- PeopleStep: useWatch + compute 조합으로 isValid 계산
- RegionStep: useWatch + compute 조합으로 isValid 계산
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: DateStep isValid 검증 로직 개선
- isValidDateFormat을 사용하여 날짜 포맷 검증 복구
- useWatch + compute 조합으로 isValid 계산 통합
- formState.errors 의존성 제거
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments