refactor(forms): centralize validation with zod mini - #82
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 사항
safeParse결과의 정제된 값을 사용하도록 바꿔 중복 trim과 조건문을 제거했습니다.maxLength가 하나의 상수를 공유하도록 통합했습니다.test:forms명령을 추가했습니다.입력 정책
a..b)을 허용합니다.Frontend fundamentals
safeParse→ 오류 표시 → 정제된 값 소비 순서를 유지하며, 회귀 테스트는tests/forms에 기능별로 분리했습니다.검증
pnpm run test:formspnpm run test:feedbackpnpm run test:todopnpm run test:timetablepnpm run lintpnpm run build:localpnpm run build:gh-pages수동 확인
chrome://extensions탭을 자동 조작할 수 없어 수행하지 못했습니다. PR 빌드 산출물은 생성됐습니다.