Skip to content

[feat] 모집예정 상태를 추가한다#983

Merged
suhyun113 merged 1 commit intodevelop-fefrom
fix/upcoming-status
Dec 28, 2025
Merged

[feat] 모집예정 상태를 추가한다#983
suhyun113 merged 1 commit intodevelop-fefrom
fix/upcoming-status

Conversation

@lepitaaar
Copy link
Contributor

@lepitaaar lepitaaar commented Dec 28, 2025

#️⃣연관된 이슈

#980

📝작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지/동영상 첨부 가능)

중점적으로 리뷰받고 싶은 부분(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

논의하고 싶은 부분(선택)

논의하고 싶은 부분이 있다면 작성해주세요.

🫡 참고사항

Summary by CodeRabbit

새로운 기능

  • 클럽의 새로운 상태인 "모집 예정"을 표시하고 스타일링할 수 있도록 지원이 추가되었습니다.

✏️ Tip: You can customize this high-level summary in your review settings.

@lepitaaar lepitaaar self-assigned this Dec 28, 2025
@lepitaaar lepitaaar added 💻 FE Frontend 🛠Fix 기능이 의도한 대로 동작하지 않는 버그를 수정 labels Dec 28, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 28, 2025

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: Invalid regex pattern for base branch. Received: "**" at "reviews.auto_review.base_branches[0]"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

'모집예정' 상태 지원 추가를 위해 두 파일의 매핑 상수를 확장했습니다. ClubStateBox에 STATE_TEXT 항목을 추가하고 clubTags에 STATUS_COLORS 항목을 추가하여 새로운 상태에 대한 표시 텍스트와 색상을 제공합니다.

Changes

Cohort / File(s) 변경 요약
상태 텍스트 및 색상 매핑
frontend/src/components/ClubStateBox/ClubStateBox.tsx, frontend/src/styles/clubTags.ts
UPCOMING 상태에 대한 표시 텍스트('모집예정')와 색상(colors.accent[1][900]) 매핑 추가. 기존 로직 및 폴백 동작은 유지됨

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related issues

  • [fix] 모집예정 상태 추가 #980: 이 변경은 '모집예정'/UPCOMING 상태에 대한 표시 텍스트와 색상 매핑을 제공하여 '알 수 없음' 폴백을 제거함으로써 동일한 문제를 해결합니다.

Possibly related PRs

Suggested labels

✨ Feature

Suggested reviewers

  • seongwon030
  • oesnuj

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR 제목은 '모집예정 상태를 추가한다'로 변경 사항의 핵심을 명확하게 요약하고 있으며, 코드 변경 내용과 완벽하게 일치합니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/upcoming-status

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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 9f5691d and 49c6961.

📒 Files selected for processing (2)
  • frontend/src/components/ClubStateBox/ClubStateBox.tsx
  • frontend/src/styles/clubTags.ts
🧰 Additional context used
📓 Path-based instructions (3)
frontend/**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (frontend/.cursorrules)

frontend/**/*.{ts,tsx,js,jsx}: Replace magic numbers with named constants for clarity
Replace complex/nested ternaries with if/else or IIFEs for readability
Assign complex boolean conditions to named variables for explicit meaning
Avoid hidden side effects; functions should only perform actions implied by their signature (Single Responsibility Principle)
Use unique and descriptive names for custom wrappers/functions to avoid ambiguity
Define constants near related logic or ensure names link them clearly to avoid silent failures
Break down broad state management into smaller, focused hooks/contexts to reduce coupling

Files:

  • frontend/src/styles/clubTags.ts
  • frontend/src/components/ClubStateBox/ClubStateBox.tsx
frontend/**/*.{ts,tsx}

📄 CodeRabbit inference engine (frontend/.cursorrules)

Use consistent return types for similar functions/hooks

Files:

  • frontend/src/styles/clubTags.ts
  • frontend/src/components/ClubStateBox/ClubStateBox.tsx
frontend/**/*.{tsx,jsx}

📄 CodeRabbit inference engine (frontend/.cursorrules)

frontend/**/*.{tsx,jsx}: Abstract complex logic/interactions into dedicated components/HOCs
Separate significantly different conditional UI/logic into distinct components
Colocate simple, localized logic or use inline definitions to reduce context switching
Choose field-level or form-level cohesion based on form requirements when using form libraries like react-hook-form
Use Component Composition instead of Props Drilling to reduce coupling

Files:

  • frontend/src/components/ClubStateBox/ClubStateBox.tsx
🧠 Learnings (3)
📚 Learning: 2025-07-19T05:05:10.196Z
Learnt from: seongwon030
Repo: Moadong/moadong PR: 548
File: frontend/src/pages/ClubDetailPage/ClubDetailPage.tsx:17-57
Timestamp: 2025-07-19T05:05:10.196Z
Learning: ClubDetailPage.tsx에서 notJoinedClubNames 배열의 하드코딩은 의도적인 설계 결정입니다. 개발자가 명시적으로 하드코딩을 선택했으므로 이에 대한 리팩토링 제안을 하지 않아야 합니다.

Applied to files:

  • frontend/src/styles/clubTags.ts
  • frontend/src/components/ClubStateBox/ClubStateBox.tsx
📚 Learning: 2025-11-25T14:08:23.253Z
Learnt from: CR
Repo: Moadong/moadong PR: 0
File: frontend/.cursorrules:0-0
Timestamp: 2025-11-25T14:08:23.253Z
Learning: Applies to frontend/**/*.{ts,tsx,js,jsx} : Replace magic numbers with named constants for clarity

Applied to files:

  • frontend/src/styles/clubTags.ts
📚 Learning: 2025-03-19T05:18:07.818Z
Learnt from: seongwon030
Repo: Moadong/moadong PR: 195
File: frontend/src/pages/AdminPage/AdminPage.tsx:7-7
Timestamp: 2025-03-19T05:18:07.818Z
Learning: AdminPage.tsx에서 현재 하드코딩된 클럽 ID('67d2e3b9b15c136c6acbf20b')는 로그인 기능 구현 후 동적으로 가져오는 방식으로 수정될 예정입니다.

Applied to files:

  • frontend/src/components/ClubStateBox/ClubStateBox.tsx
🔇 Additional comments (1)
frontend/src/components/ClubStateBox/ClubStateBox.tsx (1)

8-8: UPCOMING 상태 추가가 올바르게 구현되었습니다.

상태 텍스트 매핑(STATE_TEXT)과 색상 매핑(STATUS_COLORS)이 모두 올바르게 추가되었으며, ClubCard와 ClubProfileCard 컴포넌트가 recruitmentStatus 속성을 통해 제대로 전달하고 있습니다. 다만 백엔드 API에서 UPCOMING 상태를 실제로 지원하는지는 별도로 확인이 필요합니다.

모집중: colors.accent[1][900],
모집마감: colors.gray[500],
상시모집: colors.accent[2][900],
모집예정: colors.accent[1][900],
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

'모집예정'과 '모집중' 색상이 동일합니다.

현재 '모집예정'과 '모집중' 상태가 모두 colors.accent[1][900] 색상을 사용하고 있습니다. 두 상태의 의미가 명확히 다르므로(모집예정 vs 현재 모집중), 사용자가 구분하기 어려울 수 있습니다.

이것이 의도된 디자인인지 확인해주세요. 만약 아니라면, '모집예정' 상태에 고유한 색상을 부여하는 것을 고려해보세요. 예를 들어:

  • colors.accent[2][900] (현재 '상시모집'과 같은 색상)
  • 또는 다른 accent 색상 변형
🤖 Prompt for AI Agents
In frontend/src/styles/clubTags.ts around line 21, the '모집예정' tag is using the
same color as '모집중' (colors.accent[1][900]), making the two distinct states
indistinguishable; change '모집예정' to a unique color (for example
colors.accent[2][900] or another accent variant) so each state has a distinct,
semantically appropriate color and update any related exports/constants
accordingly.

Copy link
Collaborator

@suhyun113 suhyun113 left a comment

Choose a reason for hiding this comment

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

알수없음 상태 빠르게 임의로 수정해주신것 좋습니다ㅏ
색상은 나중에 논의해보면 좋을 것 같아요~

@suhyun113 suhyun113 merged commit 7516776 into develop-fe Dec 28, 2025
3 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Dec 30, 2025
@lepitaaar lepitaaar deleted the fix/upcoming-status branch January 4, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💻 FE Frontend 🛠Fix 기능이 의도한 대로 동작하지 않는 버그를 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments