feat/fix: 선수 이미지 추가, 피드 상세 개선, 홈 통계 고도화, 401 리프레시 수정 - #29
Merged
Merged
Conversation
…eat/landing-page
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.
📝 PR Description
선수 사진 에셋 추가 및 이미지 경로를
playerId기반으로 통일하고, FeedDetailPage에 이미지 캐러셀과 유튜브 임베드를 추가했습니다.홈 화면의 타자/투수 통계 순위를 분리 표기하고 소수점 포맷팅을 적용했으며, 랜딩 페이지 팀 탭에 드래그 스크롤을 추가했습니다.
아울러 401 refresh 로직 버그와 API 타입 변경 사항을 반영했습니다.
🔧 Changes
인증 — 401 refresh 버그 수정 (src/api/axios.ts)
accessToken제거 누락 수정window.location.href→router.navigate('/login?error=true', { replace: true })교체 (hard reload 제거)API 타입 변경 대응
article_url→url필드명 변경 (백엔드 응답 반영)PlayerStatsSummary→BatterStatsSummary/PitcherStatsSummary분리, 타자 4개 · 투수 9개 순위 필드 추가=제거 (Base64 padding 문자로 인한 쿼리스트링 파싱 오류 수정)FeedDetailPage (src/pages/FeedDetailPage.tsx)
useGetContentImages연동, 좌/우 화살표 + dot indicator)content.url이 HTTP가 아닌 경우(유튜브 ID)<iframe>임베드로 처리 (9:16 비율)HomePage (src/pages/HomePage.tsx)
player_type에 따라 타자 / 투수 순위 배지 분리 표기.toFixed(3), ERA·WHIP:.toFixed(2), 이닝: 1/3 이닝 표기 (9.1,9.2)playerId기반 선수 이미지 연동matchSummary.match?.옵셔널 체이닝 적용 (undefined 런타임 에러 방어), inning 없을 때 배지 미표시랜딩 / 선수 카드
playerName.png→playerId.jpg, 이미지 위치 정렬 (top: 20px → 0px)undefined포함 시 기본 이미지 폴백 처리playerIdprop 전달에셋
src/assets/images/players/에 선수 사진 약 500장 추가 (.jpg,playerId기준)