Conversation
[fix] 지원서 입력폼에서 단답형 입력 필드가 부모 너비를 초과하여 레이아웃 깨짐
[fix] 지원서 미등록 시 alert 반복 버그 수정 및 외부 링크/지원서 분기 처리
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Warning
|
| Cohort / File(s) | Change Summary |
|---|---|
ClubApplyButton 리팩토링 및 모집 상태 비동기 처리frontend/src/pages/ClubDetailPage/components/ClubApplyButton/ClubApplyButton.tsx |
isRecruiting prop 제거, 내부적으로 club detail을 fetch하여 모집 기간을 파싱 및 비교, 지원서 존재 여부 확인, 외부 지원 URL 처리 등 비동기 로직 도입. 버튼 클릭 시 모집 마감 여부에 따라 알림 또는 지원 경로 분기 처리. 기존 이벤트 트래킹 위치 변경. |
ClubDetailFooter/ClubDetailHeader prop 구조 변경frontend/src/pages/ClubDetailPage/components/ClubDetailFooter/ClubDetailFooter.tsx, frontend/src/pages/ClubDetailPage/components/ClubDetailHeader/ClubDetailHeader.tsx |
ClubDetailFooter에서 recruitmentForm, presidentPhoneNumber prop 제거, recruitmentPeriod만 사용. ClubApplyButton에 더 이상 isRecruiting prop 전달하지 않음. ClubDetailHeader에서는 모집 기간 관련 유틸 및 prop 사용 제거, ClubApplyButton prop 관련 로직 삭제. |
동아리 상세 타입 확장frontend/src/types/club.ts |
ClubDetail 인터페이스에 externalApplicationUrl?: string 속성 추가. |
스타일 개선 - 입력/텍스트영역/폼 설명frontend/src/components/common/CustomTextArea/CustomTextArea.styles.ts, frontend/src/components/common/InputField/InputField.styles.ts, frontend/src/pages/ApplicationFormPage/ApplicationFormPage.styles.ts |
입력 필드, 텍스트영역의 min-width → max-width: 100%로 변경, 패딩 및 반응형 스타일 개선. 폼 설명 영역의 패딩, 배경색, border-radius 추가 및 모바일 패딩 조정. |
Sequence Diagram(s)
sequenceDiagram
participant User
participant ClubApplyButton
participant useGetClubDetail
participant getApplication
participant Browser
User->>ClubApplyButton: Click Apply Button
ClubApplyButton->>useGetClubDetail: Fetch club detail
useGetClubDetail-->>ClubApplyButton: Return club detail (with recruitment period, externalApplicationUrl)
ClubApplyButton->>ClubApplyButton: Parse recruitment period, check if recruiting
alt Not Recruiting
ClubApplyButton->>User: alert("모집 마감")
else Recruiting
ClubApplyButton->>getApplication: Fetch user's application
alt Application exists
getApplication-->>ClubApplyButton: Success
ClubApplyButton->>Browser: Navigate to application page
else Application not found
alt externalApplicationUrl exists
ClubApplyButton->>Browser: Open external URL in new tab
else
ClubApplyButton->>User: alert("모집 정보를 확인해 주세요")
end
end
end
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
- #592: ClubApplyButton의 클릭 핸들러 내비게이션 로직 변경 관련 PR로, 본 PR과 동일 컴포넌트의 동작을 다룹니다.
- #536: ClubApplyButton의 모집 상태 처리 및 지원 내비게이션 관련 초기 기능 PR로, 본 PR과 직접적인 코드 레벨 연관성이 있습니다.
- #605: ClubApplyButton의 isRecruiting prop 제거 및 내부 모집 상태 비동기 처리 리팩토링 PR로, 본 PR과 동일한 컴포넌트 및 로직을 다룹니다.
Suggested labels
🛠Fix
Suggested reviewers
- seongwon030
- lepitaaar
✨ Finishing Touches
- 📝 Generate Docstrings
🧪 Generate unit tests
- Create PR with unit tests
- Post copyable unit tests in a comment
- Commit unit tests in branch
develop-fe
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.
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Explain this complex logic.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai explain this code block.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and explain its main purpose.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Support
Need help? Create a ticket on our support page for assistance with any issues or questions.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai generate docstringsto generate docstrings for this PR.@coderabbitai generate sequence diagramto generate a sequence diagram of the changes in this PR.@coderabbitai generate unit teststo generate unit tests for this PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
📝작업 내용 (v1.0.9)
모집 기간만으로 /application/:id로 진입하던 로직을 개선
모아동 지원서 미등록 시 무한 alert 반복되는 UX 버그 수정
지원서 설명 배경색 추가
동아리 지원 흐름을 아래 순서로 재구성:
모집 기간 여부 확인 (마감 시 alert)
모아동 지원서 존재 시 → 내부 지원서 페이지로 이동
외부 지원 링크 존재 시 → 새 창에서 외부 링크 이동
아무 것도 없으면 안내 메시지 출력
논의하고 싶은 부분(선택)
🫡 참고사항
Summary by CodeRabbit
신규 기능
버그 수정
스타일
리팩터