Skip to content

Conversation

@HopeFullee
Copy link
Member

@HopeFullee HopeFullee commented Jan 1, 2026

📝 변경 사항

[삽질]

  • z.coerce로 date를 받아 min date 를 충족하는지 판단 하려함. 하지만, 기존 form의 startTime 필드는 string 값을 기록하고 있음.
    이러한 이유로 string과 date간의 타입 충돌이 발생했고 결론적으로 coerce 계산을 버리고 기존 startTime의 schema 대로 string을 입력받은 후 refined 를 활용해 입력 받은 string을 직접 new Date(value) 로 변환해서 유효한 시간인지 검사함.

[수확]

  • Zod 유효성 검사에서 z.coerce new Date 객체를 호출해서 특정 시간을 기준으로 유효성 검사를 할 수 있다는 것을 알게됨. (갸꿀)
    • 꿀인줄 알았으나, z.coerce.date() 를 활용하는 순간 form의 default value 또한 Date의 타입을 가저야함.
    • 만약, place holder 메세지가 없고 처음부터 디폴트 date가 선택 되어있는 일반적인 date picker 였다면 string -> date의 타입 변환 과정을 생략해도 되기 때문에 개꿀이 맞음. 단지 우리 디자인에선 못 써먹음 ㅠ.

🔗 관련 이슈

Closes #


🧪 테스트 방법

  • 수동 테스트 검증(로컬 환경)
  • 유닛 테스트 검증
  • 통합 테스트 검증

📸 스크린샷 (선택)


📋 체크리스트

  • 관련 문서를 업데이트했습니다 (필요한 경우)
  • 테스트를 추가/수정했습니다 (필요한 경우)
  • Breaking change가 있다면 명시했습니다

💬 추가 코멘트


CodeRabbit Review는 자동으로 실행되지 않습니다.

Review를 실행하려면 comment에 아래와 같이 작성해주세요

@coderabbitai review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 1, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@HopeFullee HopeFullee added the Ready For Review! 리뷰 받을 준비가 되었습니다. label Jan 1, 2026
@github-actions
Copy link

github-actions bot commented Jan 1, 2026

📊 Coverage Report

Status Build Log Updated (UTC)
✅ Ready View Build 2026-01-01 18:23:12

📉 #313main에 병합하면 coverage가 0.01% 감소합니다.

Coverage 요약

@@             Coverage Diff             @@
##             main     #313       +/-   ##
===========================================
- Coverage   39.57%   39.56%    -0.01%     
===========================================
  Files         214      214         0     
  Lines        9562     9565        +3     
  Branches      411      411         0     
===========================================
  Hits         3784     3784         0     
+ Misses       5778     5781        +3     

영향받은 파일

이 PR로 영향받은 파일이 없습니다

수정된 모든 파일이 현재 coverage를 유지했습니다.

@github-actions
Copy link

github-actions bot commented Jan 1, 2026

🎭 Playwright Report

E2E Test가 성공적으로 완료되었습니다.

Test 요약 내용을 확인해주세요.

Status Build Log Updated (UTC)
✅ Ready View Build 2026-01-01 18:24:06

📊 Test Summary

  • ✅ Passed: 3
  • ❌ Failed: 0
  • ⏱️ Duration: 27.2s

📜 Test Details

✅ Passed Tests (3)
  • profile.test.ts (3)
    • [chromium] 존재하지 않는 프로필 페이지로 접속 시 404 redirect 되는 지 테스트
    • [firefox] 존재하지 않는 프로필 페이지로 접속 시 404 redirect 되는 지 테스트
    • [webkit] 존재하지 않는 프로필 페이지로 접속 시 404 redirect 되는 지 테스트

@github-actions
Copy link

github-actions bot commented Jan 1, 2026

🎨 Storybook Report

변경 사항이 없습니다

모든 Story가 이전 빌드와 동일합니다.

Status Storybook Build Log Updated (UTC)
✅ Unchanged View Storybook View Build 2026-01-01 18:23:32

@github-actions
Copy link

github-actions bot commented Jan 1, 2026

🚀 PR Preview Report

Build가 성공적으로 완료되었습니다.

Preview에서 변경사항을 확인하세요.

Status Preview Build Log Updated (UTC)
✅ Ready Visit Preview View Logs 2026-01-01 18:24:06

@HopeFullee HopeFullee closed this Jan 1, 2026
@HopeFullee HopeFullee reopened this Jan 1, 2026
Copy link
Member

@claudia99503 claudia99503 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coerce가 input 등 form 요소에 입력한 특정 value를 내가 원하는 type으로 변환시켜서 상태 관리하고 싶을 때 사용하는 거..? 이게 맞나요

@claudia99503 claudia99503 merged commit c81e363 into main Jan 2, 2026
8 checks passed
@claudia99503 claudia99503 deleted the somang-fix/create-group branch January 2, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready For Review! 리뷰 받을 준비가 되었습니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants