feat: 이벤트 최근 신청한 사진들 조회#188
Merged
Hidden character warning
The head ref may contain hidden characters: "187/feat/\ucd5c\uadfc_\uc2e0\uccad\ud55c_\uc0ac\uc9c4_\uc870\ud68c"
Merged
Conversation
- 이벤트 최근 신청한 사진 최대 3개까지 조회해서 이벤트 메인 화면에 보여줌
There was a problem hiding this comment.
Pull Request Overview
This PR implements a new feature to display up to three of the most recently submitted event photos on the event main page.
- Added a new API call and corresponding query to fetch recent event images.
- Updated the EventMainPage component to conditionally render these images.
- Removed duplicate banner rendering when the event is in the "신청" status.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/app/event/EventMainPage.tsx | Added a new UI section that maps over the recent event photos and displays them |
| src/api/queries/eventQueries.ts | Introduced a new query named recentPost to fetch recent event images |
| src/api/event.ts | Added the getEventRecentPost API function to retrieve recent event images from the backend |
Comments suppressed due to low confidence (1)
src/app/event/EventMainPage.tsx:98
- [nitpick] Consider revising the content of this heading to align with the overall application's tone and documentation style.
</h3>
| <p className="text-2xl">주제: {topicData?.topic}</p> | ||
| )} | ||
| </div> | ||
| {eventPeriod && eventPeriod.status === "신청" && ( |
There was a problem hiding this comment.
[nitpick] Consider handling the scenario where recentPostData is empty. For example, display a placeholder message or a fallback UI to improve user experience.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 작업 내용
✨ 작업 상세 설명
📌 관련 이슈
🔥 문제 상황 (선택)
💦 해결 방법 (선택)
💬 추후 수정해야 하는 부분 및 기타 논의 사항 (선택)
📄 REFERENCE (선택)
📢 리뷰 요구 사항 (선택)