Skip to content

Comments

[fix] 소개할게요 필드 introDescription 으로 변경#976

Merged
lepitaaar merged 1 commit intodevelop-fefrom
fix/introduce-activity-change-field
Dec 26, 2025
Merged

[fix] 소개할게요 필드 introDescription 으로 변경#976
lepitaaar merged 1 commit intodevelop-fefrom
fix/introduce-activity-change-field

Conversation

@lepitaaar
Copy link
Contributor

@lepitaaar lepitaaar commented Dec 26, 2025

#️⃣연관된 이슈

#974

📝작업 내용

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

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

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

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

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

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

🫡 참고사항

Summary by CodeRabbit

변경사항

  • 리팩토링
    • 클럽 상세 페이지의 프로필 카드 컴포넌트에서 소개 정보 표시 관련 내부 구조를 개선했습니다.

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

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

coderabbitai bot commented Dec 26, 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

ClubProfileCard 컴포넌트의 prop명을 activityDescription에서 introDescription으로 변경하고, ClubDetailPage에서 전달하는 데이터 소스도 clubDetail.description.introDescription으로 업데이트했습니다.

Changes

코호트 / 파일 변경 요약
Prop 이름 변경
frontend/src/pages/ClubDetailPage/components/ClubProfileCard/ClubProfileCard.tsx
Props 인터페이스에서 activityDescription: stringintroDescription: string으로 이름 변경 및 컴포넌트 내부에서 사용 업데이트
데이터 전달 업데이트
frontend/src/pages/ClubDetailPage/ClubDetailPage.tsx
ClubProfileCard에 전달하는 prop명을 activityDescription에서 introDescription으로 변경하고 데이터 소스를 clubDetail.description.introDescription으로 업데이트

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

Possibly related PRs

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 제목이 주요 변경 사항을 정확하게 반영하고 있습니다. activityDescription을 introDescription으로 변경한 내용을 명확히 설명하고 있습니다.
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/introduce-activity-change-field

📜 Recent 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 9558738 and bd3305d.

📒 Files selected for processing (2)
  • frontend/src/pages/ClubDetailPage/ClubDetailPage.tsx
  • frontend/src/pages/ClubDetailPage/components/ClubProfileCard/ClubProfileCard.tsx
🧰 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/pages/ClubDetailPage/components/ClubProfileCard/ClubProfileCard.tsx
  • frontend/src/pages/ClubDetailPage/ClubDetailPage.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/pages/ClubDetailPage/components/ClubProfileCard/ClubProfileCard.tsx
  • frontend/src/pages/ClubDetailPage/ClubDetailPage.tsx
frontend/**/*.{ts,tsx}

📄 CodeRabbit inference engine (frontend/.cursorrules)

Use consistent return types for similar functions/hooks

Files:

  • frontend/src/pages/ClubDetailPage/components/ClubProfileCard/ClubProfileCard.tsx
  • frontend/src/pages/ClubDetailPage/ClubDetailPage.tsx
🧠 Learnings (1)
📓 Common learnings
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')는 로그인 기능 구현 후 동적으로 가져오는 방식으로 수정될 예정입니다.
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 배열의 하드코딩은 의도적인 설계 결정입니다. 개발자가 명시적으로 하드코딩을 선택했으므로 이에 대한 리팩토링 제안을 하지 않아야 합니다.
🔇 Additional comments (2)
frontend/src/pages/ClubDetailPage/ClubDetailPage.tsx (1)

45-45: 데이터 소스 변경이 올바르게 적용되었습니다.

ClubProfileCard 컴포넌트에 전달하는 prop이 introDescription으로 변경되었고, 데이터 소스도 clubDetail.description.introDescription으로 일관되게 업데이트되었습니다. 백엔드 API 응답의 DetailedDescription 타입에 introDescription 필드가 정의되어 있으며, ClubProfileCard 컴포넌트의 Props 인터페이스에서도 타입이 올바르게 정의되어 있습니다.

frontend/src/pages/ClubDetailPage/components/ClubProfileCard/ClubProfileCard.tsx (1)

17-17: 필드명 변경이 ClubProfileCard 컴포넌트 내에서 일관되게 적용되었습니다.

Props 인터페이스(17줄), 컴포넌트 매개변수(26줄), 그리고 렌더링 부분(113줄)에서 introDescription 변경이 일관되게 적용되었고, ClubDetailPage.tsx에서도 올바르게 introDescription={clubDetail.description.introDescription}으로 전달되고 있습니다.

다만 주의할 점은, 기존 activityDescription 필드가 타입 정의(DetailedDescription)와 ClubIntroContent, ClubIntroTab 등 다른 컴포넌트에서 여전히 사용 중입니다. 이는 ClubProfileCard 컴포넌트의 로컬 prop 이름 변경이므로 breaking change 자체는 아니지만, 코드베이스 전체에서 일관된 필드명 사용을 고려했을 때 추후 리팩토링이 필요할 수 있습니다.


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
Member

@seongwon030 seongwon030 left a comment

Choose a reason for hiding this comment

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

빠른 수정 좋스빈다

@lepitaaar lepitaaar merged commit 9f5691d into develop-fe Dec 26, 2025
3 checks passed
@lepitaaar lepitaaar deleted the fix/introduce-activity-change-field 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