From b26e8b51dae6229c62c06390a3b9237d7fcc35d3 Mon Sep 17 00:00:00 2001
From: Jeong Ha Seung <88266129+HA-SEUNG-JEONG@users.noreply.github.com>
Date: Tue, 7 Apr 2026 17:34:17 +0900
Subject: [PATCH 11/13] =?UTF-8?q?refactor=20:=20=EB=82=A0=EC=A7=9C=20?=
=?UTF-8?q?=EC=84=A0=ED=83=9D=20=EA=B4=80=EB=A0=A8=20=EB=A1=9C=EC=A7=81=20?=
=?UTF-8?q?=EB=A6=AC=ED=8C=A9=ED=86=A0=EB=A7=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/time.ts | 68 +++++++++++++++++++++--------------------------
1 file changed, 31 insertions(+), 37 deletions(-)
diff --git a/src/utils/time.ts b/src/utils/time.ts
index 41bf67d9a..30300441d 100644
--- a/src/utils/time.ts
+++ b/src/utils/time.ts
@@ -121,6 +121,12 @@ export interface CreateDisabledDateMatcherForMissionOptions {
editingMissionId?: number;
}
+const toDateOnly = (date: Date | string): Date => {
+ const d = new Date(date);
+ d.setHours(0, 0, 0, 0);
+ return d;
+};
+
export const createDisabledDateMatcherForMission = (
options: CreateDisabledDateMatcherForMissionOptions,
) => {
@@ -128,53 +134,41 @@ export const createDisabledDateMatcherForMission = (
options;
return (date: Date) => {
- const normalizedDate = new Date(date);
- normalizedDate.setHours(0, 0, 0, 0);
+ const candidateDate = toDateOnly(date);
+ const today = toDateOnly(getKoreaDate());
- const today = getKoreaDate();
- today.setHours(0, 0, 0, 0);
-
- if (normalizedDate <= today) {
- return true;
- }
+ const isPastDate = candidateDate < today;
+ if (isPastDate) return true;
+ // 스터디 개설일 다음날부터 선택 가능
if (studyStartDate) {
- const startDate = new Date(studyStartDate);
- startDate.setHours(0, 0, 0, 0);
- // 스터디 개설일 다음날부터 선택 가능
- const minDate = addDays(startDate, 1);
- if (normalizedDate < minDate) {
- return true;
- }
+ const studyPeriodStart = addDays(toDateOnly(studyStartDate), 1);
+ const isBeforeStudyPeriod = candidateDate < studyPeriodStart;
+ if (isBeforeStudyPeriod) return true;
}
if (studyEndDate) {
- const endDate = new Date(studyEndDate);
- endDate.setHours(0, 0, 0, 0);
- if (normalizedDate > endDate) {
- return true;
- }
+ const isAfterStudyPeriod = candidateDate > toDateOnly(studyEndDate);
+ if (isAfterStudyPeriod) return true;
}
if (existingMissions) {
- const targetTime = normalizedDate.getTime();
+ const candidateTime = candidateDate.getTime();
for (const mission of existingMissions) {
- if (editingMissionId && mission.missionId === editingMissionId)
- continue;
-
- if (mission.startDate && mission.endDate) {
- const missionStart = new Date(mission.startDate);
- missionStart.setHours(0, 0, 0, 0);
- const missionEnd = new Date(mission.endDate);
- missionEnd.setHours(0, 0, 0, 0);
-
- if (
- targetTime >= missionStart.getTime() &&
- targetTime <= missionEnd.getTime()
- ) {
- return true;
- }
- }
+ if (mission.missionId === editingMissionId) continue;
+ if (!mission.startDate || !mission.endDate) continue;
+
+ const existingmissionStartDate = toDateOnly(
+ mission.startDate,
+ ).getTime();
+
+ const existingmissionEndDate = toDateOnly(mission.endDate).getTime();
+
+ if (
+ candidateTime >= existingmissionStartDate &&
+ candidateTime <= existingmissionEndDate
+ )
+ return true;
}
}
From 9b11f6155a77fb0b546a4863a5429cc0894a4034 Mon Sep 17 00:00:00 2001
From: Jeong Ha Seung <88266129+HA-SEUNG-JEONG@users.noreply.github.com>
Date: Tue, 7 Apr 2026 17:38:41 +0900
Subject: [PATCH 12/13] =?UTF-8?q?fix=20:=20=ED=8F=B4=EB=B0=B1=20=EC=B2=98?=
=?UTF-8?q?=EB=A6=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/contents/homework-detail-content.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/contents/homework-detail-content.tsx b/src/components/contents/homework-detail-content.tsx
index 75953599f..a53676ccb 100644
--- a/src/components/contents/homework-detail-content.tsx
+++ b/src/components/contents/homework-detail-content.tsx
@@ -463,7 +463,7 @@ function LeaderEvaluationSection({
평가 코멘트
- {evaluation.comment}
+ {evaluation.comment?.trim() ? evaluation.comment : '-'}
From 79a141434cdd6b49d0e82e5479ccbb06e9c8d64e Mon Sep 17 00:00:00 2001
From: Jeong Ha Seung <88266129+HA-SEUNG-JEONG@users.noreply.github.com>
Date: Tue, 7 Apr 2026 21:29:04 +0900
Subject: [PATCH 13/13] =?UTF-8?q?fix=20:=20=ED=83=80=EC=9E=85=20=EC=95=88?=
=?UTF-8?q?=EC=A0=95=EC=84=B1=20=EC=B6=94=EA=B0=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/section/mission-section.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/section/mission-section.tsx b/src/components/section/mission-section.tsx
index 5bf44c548..f9a40607b 100644
--- a/src/components/section/mission-section.tsx
+++ b/src/components/section/mission-section.tsx
@@ -175,7 +175,7 @@ export default function MissionSection({