Skip to content

Comments

[fix] swipe/css를 RecommendedClubs에서 App으로 이동#819

Merged
seongwon030 merged 2 commits intodevelop-fefrom
fix/#811-remove-recommend-club-MOA-307
Nov 9, 2025
Merged

[fix] swipe/css를 RecommendedClubs에서 App으로 이동#819
seongwon030 merged 2 commits intodevelop-fefrom
fix/#811-remove-recommend-club-MOA-307

Conversation

@seongwon030
Copy link
Member

@seongwon030 seongwon030 commented Nov 9, 2025

#️⃣연관된 이슈

ex) #811

📝작업 내용

1. CSS 로딩 타이밍 이슈

  • RecommendedClubs.tsx에 import 'swiper/css'가 있을 때, 이 CSS는 RecommendedClubs 컴포넌트가 실제로 렌더링될 때만 로드됩니다.
  • 그런데 이전 PR에서 추천동아리 기능을 제거함으로써 RecommendedClubs.tsx가 제거되었습니다.
  • 원래 있던 swipe/css 또한 로드되지 않아요.

2. 메인페이지에 영향

  • MainPage의 Banner 컴포넌트에서 Swiper를 사용하는데, Swiper CSS가 로드되지 않았습니다.
  • 그래서 swipe 동작 또한 되지 않았던 겁니다.

해결

import 'swiper/css'위치를 app.tsx로 변경하여 메인페이지에서 swipe 동작이 가능하도록 변경했습니다.

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

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

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

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

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

🫡 참고사항

Summary by CodeRabbit

릴리스 노트

  • Chores
    • Swiper 라이브러리 스타일시트 임포트 관리 개선
    • 미사용 컴포넌트 임포트 제거 및 코드 정리

@vercel
Copy link

vercel bot commented Nov 9, 2025

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

Project Deployment Preview Comments Updated (UTC)
moadong Ready Ready Preview Comment Nov 9, 2025 9:56am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 9, 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

추천동아리 목록 기능을 제거하는 작업으로, RecommendedClubs 컴포넌트의 import를 ClubDetailPage에서 제거하고, swiper CSS 스타일시트 import를 RecommendedClubs.tsx에서 App.tsx로 이동합니다.

Changes

Cohort / File(s) Summary
Swiper CSS 스타일시트 이동
frontend/src/App.tsx
Swiper CSS를 App.tsx의 최상위 import 영역에 추가
추천동아리 컴포넌트 제거
frontend/src/pages/ClubDetailPage/ClubDetailPage.tsx
RecommendedClubs 컴포넌트의 import 제거 및 관련 사용 코드 주석 처리
Swiper CSS import 정리
frontend/src/pages/ClubDetailPage/components/RecommendedClubs/RecommendedClubs.tsx
RecommendedClubs.tsx에서 swiper CSS import 제거

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

  • RecommendedClubs 컴포넌트 import 제거 및 주석 처리 로직 확인
  • Swiper CSS import 이동이 전역 스타일에 미치는 영향 검토

Possibly related PRs

Suggested labels

🛠Fix, 💻 FE

Suggested reviewers

  • lepitaaar
  • oesnuj

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR 제목이 변경사항의 주요 내용을 명확하게 설명하고 있습니다. Swiper CSS를 RecommendedClubs에서 App으로 이동하는 구체적인 변경사항을 정확히 나타냅니다.
Linked Issues check ✅ Passed PR의 변경사항이 MOA-307 이슈의 요구사항을 충족합니다. RecommendedClubs 컴포넌트를 제거하고, 그에 따른 CSS 로딩 문제를 해결하여 추천동아리 기능을 완전히 제거했습니다.
Out of Scope Changes check ✅ Passed Swiper CSS 이동은 RecommendedClubs 제거로 인한 필요한 수정사항이며, 모든 변경사항이 MOA-307 이슈 범위 내에 있습니다.
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/#811-remove-recommend-club-MOA-307

📜 Recent review details

Configuration used: CodeRabbit 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 0942f1b and 2f576df.

📒 Files selected for processing (3)
  • frontend/src/App.tsx (1 hunks)
  • frontend/src/pages/ClubDetailPage/ClubDetailPage.tsx (0 hunks)
  • frontend/src/pages/ClubDetailPage/components/RecommendedClubs/RecommendedClubs.tsx (0 hunks)
💤 Files with no reviewable changes (2)
  • frontend/src/pages/ClubDetailPage/ClubDetailPage.tsx
  • frontend/src/pages/ClubDetailPage/components/RecommendedClubs/RecommendedClubs.tsx
🧰 Additional context used
📓 Path-based instructions (2)
frontend/**/*.{ts,tsx}

📄 CodeRabbit inference engine (frontend/.cursorrules)

frontend/**/*.{ts,tsx}: Replace magic numbers with named constants for clarity.
Replace complex or nested ternary operators with if/else statements or IIFEs for readability.
Assign complex boolean conditions to named variables.
Use consistent return types for similar functions and hooks.
Avoid hidden side effects; functions should only perform actions implied by their signature (Single Responsibility Principle).
Use unique, descriptive names for custom wrappers and functions to avoid ambiguity.
Define constants near related logic or ensure names link them clearly.

Files:

  • frontend/src/App.tsx
frontend/**/*.tsx

📄 CodeRabbit inference engine (frontend/.cursorrules)

frontend/**/*.tsx: Abstract complex logic/interactions into dedicated components or higher-order 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.
Break down broad state management into smaller, focused hooks or contexts.
Use component composition instead of props drilling.

Files:

  • frontend/src/App.tsx
🧠 Learnings (6)
📓 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 배열의 하드코딩은 의도적인 설계 결정입니다. 개발자가 명시적으로 하드코딩을 선택했으므로 이에 대한 리팩토링 제안을 하지 않아야 합니다.
Learnt from: seongwon030
Repo: Moadong/moadong PR: 744
File: frontend/src/pages/ClubDetailPage/components/ClubApplyButton/ClubApplyButton.tsx:47-48
Timestamp: 2025-09-21T02:23:27.796Z
Learning: ClubApplyButton 컴포넌트에서 ShareButton은 항상 렌더링되어야 하므로 정적 import를 사용하는 것이 적절함. 동적 import는 불필요함.
📚 Learning: 2025-07-19T05:09:10.702Z
Learnt from: CR
Repo: Moadong/moadong PR: 0
File: frontend/.cursorrules:0-0
Timestamp: 2025-07-19T05:09:10.702Z
Learning: Applies to frontend/**/*.tsx : Colocate simple, localized logic or use inline definitions to reduce context switching.

Applied to files:

  • frontend/src/App.tsx
📚 Learning: 2025-07-19T05:09:10.702Z
Learnt from: CR
Repo: Moadong/moadong PR: 0
File: frontend/.cursorrules:0-0
Timestamp: 2025-07-19T05:09:10.702Z
Learning: Applies to frontend/**/*.tsx : Separate significantly different conditional UI/logic into distinct components.

Applied to files:

  • frontend/src/App.tsx
📚 Learning: 2025-07-19T05:09:10.702Z
Learnt from: CR
Repo: Moadong/moadong PR: 0
File: frontend/.cursorrules:0-0
Timestamp: 2025-07-19T05:09:10.702Z
Learning: Applies to frontend/**/*.tsx : Abstract complex logic/interactions into dedicated components or higher-order components (HOCs).

Applied to files:

  • frontend/src/App.tsx
📚 Learning: 2025-07-19T05:09:10.702Z
Learnt from: CR
Repo: Moadong/moadong PR: 0
File: frontend/.cursorrules:0-0
Timestamp: 2025-07-19T05:09:10.702Z
Learning: Applies to frontend/**/*.tsx : Use component composition instead of props drilling.

Applied to files:

  • frontend/src/App.tsx
📚 Learning: 2025-07-19T05:09:10.702Z
Learnt from: CR
Repo: Moadong/moadong PR: 0
File: frontend/.cursorrules:0-0
Timestamp: 2025-07-19T05:09:10.702Z
Learning: Applies to frontend/**/*.{ts,tsx} : Replace magic numbers with named constants for clarity.

Applied to files:

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

22-22: CSS 임포트 위치가 적절합니다.

Swiper CSS를 App.tsx의 최상위 레벨로 이동한 것은 올바른 접근입니다. 이를 통해 애플리케이션 시작 시 CSS가 로드되어 MainPage의 Banner 컴포넌트를 비롯한 모든 Swiper 인스턴스에서 일관된 스타일링이 보장됩니다.

변경 후 MainPage의 Banner에서 Swiper 동작이 정상적으로 작동하는지 확인해 주세요.


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

@lepitaaar lepitaaar left a comment

Choose a reason for hiding this comment

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

와.... 진짜 상상치못한 스노우볼이였네요 수고하셨습니다

@seongwon030 seongwon030 requested a review from suhyun113 November 9, 2025 09:58
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.

진짜 예상하지 못 한 문제였는데... 빠른 해결 너무 좋습니다!!!
다음부터 좀 더 꼼꼼히 리뷰하겠습니다ㅏ

Copy link
Member

@oesnuj oesnuj left a comment

Choose a reason for hiding this comment

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

이런 곳에 초기화 코드가 있었네요...
수고하셨습니다
LGTM~~

@seongwon030 seongwon030 merged commit a80d9d7 into develop-fe Nov 9, 2025
5 checks passed
@seongwon030 seongwon030 deleted the fix/#811-remove-recommend-club-MOA-307 branch November 11, 2025 04:50
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.

4 participants