feat(balanse): HOT 인기 급상승 드롭다운 추가 · trending API 통합 응답 대응 - #156
Conversation
develop의 HotTrendingBar를 main으로 백포트한다. - hotTrendingBar: 밸런스 목록 상단 HOT 드롭다운 (접힘 1위 / 펼침 1~5위) - trendingVoteApi: hotissue/trending 통합 API 대응 (days 파라미터 · 단건 응답 -> votes[] 배열) - mainPage/homeVoteCard: 변경된 응답 형태에 맞춰 votes[0] 사용 - hotTrendingBar에도 useReportedContent 적용해 main의 신고 숨김 규약 유지 - SCR-BALANSE-001 화면 명세 동기화 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
개요
develop에만 있던 HotTrendingBar(밸런스 목록 상단 HOT 인기 급상승 드롭다운)를
main으로 백포트합니다.변경 사항
balanse/hotTrendingBar.tsxbalanse/balansePage.tsx<HotTrendingBar />렌더api/pages/valanse/trendingVoteApi.tsmain/mainPage.tsxres?.votes[0]사용main/homeVoteCard.tsxTrendingVoteResponse→TrendingVoteItem타입 교체docs/screens/SCR-BALANSE-001_balanse.mdmain의trendingVoteApi는 구 API 형태(GET /votes/trending→ 투표 1건 객체)를 기대하고 있었습니다.HotTrendingBar는
votes[]배열이 필요하므로, 컴포넌트만 옮길 수 없어 API 레이어까지 함께 백포트했습니다.이에 따라 기존 소비처인
mainPage/homeVoteCard도 함께 수정했습니다.로컬 검증 결과 백엔드는 이미 통합 응답을 반환하고 있어, 홈의 "뜨고 있는 밸런스" 카드는 이 PR 이후 정상 동작합니다.
main 고유 규약 보존
main에는 develop에 없는 신고 콘텐츠 숨김(useReportedContent)이 모든 투표 목록에 적용돼 있습니다.develop 원본을 그대로 옮기면 HOT 랭킹만 이 규약을 우회하므로, HotTrendingBar에도 동일하게 적용했습니다.
mainPage의 기존useReportedContent로직도 그대로 유지했습니다.검증
tsc --noEmit통과eslint통과 (변경 파일 전체)/balanse— HOT 바 접힘 상태HOT | 살까 말까 테스트 2렌더 확인/poll/{voteId}링크 정상 동작 확인🤖 Generated with Claude Code