Skip to content

미션 제출 로직 수정#522

Closed
HA-SEUNG-JEONG wants to merge 1 commit into
developfrom
fix/mission
Closed

미션 제출 로직 수정#522
HA-SEUNG-JEONG wants to merge 1 commit into
developfrom
fix/mission

Conversation

@HA-SEUNG-JEONG

@HA-SEUNG-JEONG HA-SEUNG-JEONG commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

🌱 연관된 이슈

☘️ 작업 내용

  • 당일 마감인 미션이 제출 종료로 안내되는 문제 수정

🍀 참고사항

스크린샷 (선택)

Summary by CodeRabbit

릴리스 노트

  • 버그 수정
    • 과제 마감 정보 텍스트 정렬 개선
    • 과제 미제출 상태 메시지 표시 로직 개선 - 제출 기간 중에는 "미제출" 메시지, 제출 기간 종료 후에는 "기간 종료" 메시지를 명확히 구분하여 표시

@HA-SEUNG-JEONG HA-SEUNG-JEONG self-assigned this Apr 5, 2026
@vercel

vercel Bot commented Apr 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
study-platform-client-dev Error Error Apr 5, 2026 1:08am

@coderabbitai

coderabbitai Bot commented Apr 5, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

두 개의 카드 컴포넌트를 수정했습니다. 미션 카드에서는 마감 정보 텍스트에 text-left 스타일을 추가했으며, 과제 현황 카드에서는 제출 기간 종료 상태를 구분하여 표시하는 로직을 개선했습니다.

Changes

Cohort / File(s) Summary
미션 카드 스타일링
src/components/card/mission-card.tsx
마감 정보 텍스트 요소의 classNametext-left 클래스 추가하여 텍스트 정렬 개선
과제 현황 카드 UI 로직
src/components/card/my-homework-status-card.tsx
isSubmissionEnded 상태 플래그 추가 후, 제출 미완료 메시지 렌더링 로직을 개선하여 제출 기간 진행 중과 종료된 경우를 명확하게 구분 표시

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Poem

🐰 텍스트 정렬이 바뀌고

제출 기간 상태가 더 명확해졌네요

과제 카드는 이제 더욱 똑똑하게

언제 끝났는지 쏙 알려주고

UI가 반짝반짝 ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR 제목은 미션 제출 로직 수정이라는 주요 변경 사항을 명확하게 반영하고 있으며, 실제 파일 변경 내용과 일치합니다.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/mission

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/components/card/my-homework-status-card.tsx (1)

37-50: ⚠️ Potential issue | 🟠 Major

종료 상태 판별이 좁아 일부 미제출 사용자에게 안내 문구가 사라집니다.

isSubmissionEndedENDED로만 판별하면, 미션이 EVALUATION_COMPLETED인 경우에도 NOT_SUBMITTED 사용자에게 종료 안내가 비어 보일 수 있습니다. 종료 상태 범위를 확장해 주세요.

🔧 제안 수정안
-  const isSubmissionOpen = mission?.status === 'IN_PROGRESS';
-  const isSubmissionEnded = mission?.status === 'ENDED';
+  const isSubmissionOpen = mission?.status === 'IN_PROGRESS';
+  const isSubmissionEnded =
+    mission?.status === 'ENDED' ||
+    mission?.status === 'EVALUATION_COMPLETED';
+  const submissionStatusMessage = isSubmissionOpen
+    ? '아직 과제를 제출하지 않았습니다.'
+    : isSubmissionEnded
+      ? '제출 기간이 종료되었습니다.'
+      : '';

@@
-          <span className="text-text-subtlest font-designer-14r">
-            {isSubmissionOpen && '아직 과제를 제출하지 않았습니다.'}
-          </span>
-          <span className="text-text-subtlest font-designer-14r">
-            {isSubmissionEnded && '제출 기간이 종료되었습니다.'}
-          </span>
+          <span className="text-text-subtlest font-designer-14r">
+            {submissionStatusMessage}
+          </span>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/card/my-homework-status-card.tsx` around lines 37 - 50, The
current end-state check (isSubmissionEnded) only treats mission?.status ===
'ENDED' as finished, which hides the "submission ended" message for
NOT_SUBMITTED users when the mission is in EVALUATION_COMPLETED; update the
isSubmissionEnded boolean to include additional terminal statuses (e.g.,
mission?.status === 'ENDED' || mission?.status === 'EVALUATION_COMPLETED') so
the conditional rendering that uses isSubmissionEnded (and the surrounding logic
with isSubmissionOpen and myHomework.homeworkStatus === 'NOT_SUBMITTED') will
correctly show the "제출 기간이 종료되었습니다." message for those cases.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@src/components/card/my-homework-status-card.tsx`:
- Around line 37-50: The current end-state check (isSubmissionEnded) only treats
mission?.status === 'ENDED' as finished, which hides the "submission ended"
message for NOT_SUBMITTED users when the mission is in EVALUATION_COMPLETED;
update the isSubmissionEnded boolean to include additional terminal statuses
(e.g., mission?.status === 'ENDED' || mission?.status ===
'EVALUATION_COMPLETED') so the conditional rendering that uses isSubmissionEnded
(and the surrounding logic with isSubmissionOpen and myHomework.homeworkStatus
=== 'NOT_SUBMITTED') will correctly show the "제출 기간이 종료되었습니다." message for those
cases.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9148425f-b632-4e5b-8211-6c2c9e8a62d9

📥 Commits

Reviewing files that changed from the base of the PR and between 11e05c2 and c7fde2e.

📒 Files selected for processing (2)
  • src/components/card/mission-card.tsx
  • src/components/card/my-homework-status-card.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant