Skip to content

✨ [Feat] 모임 만들기 모집 마감 날짜 -> 만나는 날 이전으로만 선택 가능하도록 구현#282

Merged
cloud0406 merged 4 commits intodevelopfrom
280-feature-모임-만들기-달력-모집-마감-날짜-만나는-날-이전으로만-선택하도록-구현
Jan 4, 2025

Hidden character warning

The head ref may contain hidden characters: "280-feature-\ubaa8\uc784-\ub9cc\ub4e4\uae30-\ub2ec\ub825-\ubaa8\uc9d1-\ub9c8\uac10-\ub0a0\uc9dc-\ub9cc\ub098\ub294-\ub0a0-\uc774\uc804\uc73c\ub85c\ub9cc-\uc120\ud0dd\ud558\ub3c4\ub85d-\uad6c\ud604"
Merged

✨ [Feat] 모임 만들기 모집 마감 날짜 -> 만나는 날 이전으로만 선택 가능하도록 구현#282
cloud0406 merged 4 commits intodevelopfrom
280-feature-모임-만들기-달력-모집-마감-날짜-만나는-날-이전으로만-선택하도록-구현

Conversation

@cloud0406
Copy link
Contributor

@cloud0406 cloud0406 commented Jan 4, 2025

#️⃣연관된 이슈

ex) #280,

📝작업 내용

모집 마감 날짜 -> 만나는 날 이전으로만 선택 가능하도록 구현

미리보기, 사용방법 및 결과물

모집 마감 날짜 -> 만나는 날 이전으로만 선택 가능

image

만약, 만나는 날을 20일 선택 -> 모집 마감 날짜를 20일 이전인 19일로 선택 -> 다시 만나는 날을 10일로 선택하면 여전히 모집 마감 날짜가 만나는 날 이후가 되게 됩니다.

이러한 경우는 제출시 스키마를 통해 검사합니다.

.superRefine((data, ctx) => {
    ....

    if (data.endDate && data.targetDate) {
      if (data.endDate >= data.targetDate) {
        ctx.addIssue({
          code: z.ZodIssueCode.custom,
          message: '모집 마감일은 모임 날짜보다 이전이어야 합니다',
          path: ['endDate'],
        });
      }
    }
  });
image

기타 참고사항

@cloud0406 cloud0406 added D-0 긴급한 수정사항으로 즉시 리뷰 필요 ✨ Feature 기능 개발 labels Jan 4, 2025
@cloud0406 cloud0406 self-assigned this Jan 4, 2025
@vercel
Copy link

vercel bot commented Jan 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bookco ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2025 7:47am

Copy link
Contributor

@wynter24 wynter24 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

@cloud0406 cloud0406 merged commit 93ba331 into develop Jan 4, 2025
7 of 8 checks passed
@cloud0406 cloud0406 deleted the 280-feature-모임-만들기-달력-모집-마감-날짜-만나는-날-이전으로만-선택하도록-구현 branch January 4, 2025 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

D-0 긴급한 수정사항으로 즉시 리뷰 필요 ✨ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ [Feature] 모임 만들기 달력 모집 마감 날짜 -> 만나는 날 이전으로만 선택하도록 구현

3 participants