Repository navigation
[mypage] 원서 접수 기간 판별식의 isTimeBefore 인자 순서 수정 - #588
Merged
Merged
Conversation
vercel
Bot
temporarily deployed
to
Preview – hellogsm-client-26-admin
November 18, 2026 09:22
Inactive
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
There was a problem hiding this comment.
Overview
마이페이지의 원서 접수 기간 판별식에서 isTimeBefore 인자 순서를 수정해, 접수 기간 중/마감 후 조건이 반대로 적용되던 문제를 바로잡습니다.
Intent
isTimeBefore의 비교 방향에 맞게 currentTime과 접수 마감일 인자를 교체하여, 접수 기간 동안에는 원서 작성 UI가 정상 노출되도록 하는 것이 목적입니다.
Risk
변경 범위는 한 줄의 날짜 비교 로직으로 제한적이지만, 실제 서버 시간 기반 조건과 UI 노출에 영향을 줍니다. isTimeBefore의 의미와 mypage, guide, register 간 비교식 일관성, 시간대·서버 시간 처리 여부를 중점적으로 확인해야 합니다.
2 inline comment(s)
vercel
Bot
temporarily deployed
to
Preview – hellogsm-client-26-admin
November 18, 2026 10:38
Inactive
yeondon125
approved these changes
Nov 19, 2026
This branch was successfully deployed
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.
개요
마이페이지의 원서 접수 기간 판별식에서
isTimeBefore의 인자가 뒤바뀌어, 접수 기간 중에는 "원서 작성하기" 버튼과 "원서를 아직 작성하지 않았습니다." 문구가 숨겨지고 마감 후에는 노출되던 문제를 수정하였습니다.isTimeBefore({ baseTime, compareTime })는compareTime < baseTime을 반환하므로, 기존 코드는 "현재가 마감 전인가"가 아니라 "마감이 현재보다 이전인가"를 검사하고 있었습니다. 2025-06-18 커밋36d7ec5e에서 비교식을 util 함수로 바꾸는 과정에서 인자 순서가 뒤바뀐 것으로 확인되었습니다.작업내용
apps/client/src/app/mypage/page.tsx의isTimeBefore호출 인자를baseTime: oneseoSubmissionEnd,compareTime: currentTime순서로 수정하였습니다.guide/page.tsx,register/page.tsx의 접수 기간 판별식과 동일한 형태가 되었습니다.관련 이슈
리뷰 요청사항
e2e/mypage.spec.ts의 접수 기간 안/밖 케이스는 추가하지 않았습니다.getDate()가 서버 컴포넌트에서 실제 API로 호출되어 Playwright의page.route로 응답을 고정할 수 없고, 결과가 실제 서버의 전형 일정에 따라 달라지기 때문입니다.mypage,guide,register에서 공유하고tsx --test단위 테스트로 검증하는 방안을 후속 작업으로 고려하고 있습니다. 의견 부탁드립니다.