[FEAT] 공연 : 공연 목록 및 상세 조회 기능 구현#28
Open
boogiewooki02 wants to merge 3 commits into
Open
Conversation
dldusgh318
approved these changes
May 26, 2026
| </button> | ||
| ) : ( | ||
| <Link | ||
| href="/login?redirect=/performances" |
Owner
There was a problem hiding this comment.
공연 상세 페이지에서 “로그인하고 예매하기”를 누르면 redirect=/performances로 이동하도록 되어 있습니다.
사용자 입장에서는 로그인 후 원래 보던 공연 상세 페이지로 돌아오는 흐름이 더 자연스러울 것 같습니다.
현재 상세 페이지의 performanceId를 기준으로 redirect=/performances/{performanceId} 형태로 넘기거나, 현재 pathname을 redirect 값으로 사용하는 방식을 검토해주시면 좋을 것 같습니다.
| private final PerformanceService performanceService = mock(PerformanceService.class); | ||
| private MockMvc mockMvc; | ||
|
|
||
| @BeforeEach |
Owner
There was a problem hiding this comment.
중요한 부분은 아니나, 추후 테스트코드를 작성할 때는 @BeforeAll을 이용하여 리소스 낭비를 줄이는 방식으로 해도 좋을 거 같습니다!
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.
• ##‼️ 관련 이슈
close #20
🔎 개요
공연 목록 및 상세 조회 기능을 구현했습니다.
사용자가 공연 목록에서 공연 시간, 장소, 잔여 좌석을 확인하고, 상세 화면에서
공연 설명과 예매 예정 영역을 확인할 수 있도록 했습니다.
📝 작업 내용
GET /api/performancesGET /api/performances/{performanceId}포함
totalSeats - reservedSeats기준으로 계산/performances공연 목록 화면을 하드코딩 데이터에서 백엔드 API 조회 방식으로 변경
/performances/[performanceId]공연 상세 화면 추가👀 변경 사항
NEXT_PUBLIC_API_BASE_URL기준의 백엔드 API를 호출합니다.
http://localhost:8080입니다.JWT_SECRET값은 최소 32자 이상이어야 합니다.JWT_SECRET=local-development-jwt-secret-key-32-bytes-minimum영역으로만 구현했습니다.
매진상태로 표시됩니다.✅ 테스트
PerformanceControllerTestPerformanceRepositoryTestPerformanceServiceTestPerformanceCard.test.tsxPerformanceDetailPanel.test.tsxPerformanceReservationPanel.test.tsx검증 결과:
pnpm test통과pnpm lint통과pnpm build통과mvn test는 로컬 환경에mvn명령어가 없어 실행하지 못했습니다.📸 스크린샷 (Optional)