[DP-442] 마이페이지 추천 유튜브 mock → 신규 API 스펙 구조로 변경#119
Merged
uiuuoq merged 1 commit intoApr 30, 2026
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
연결된 Jira 티켓
작업 내용
GET /recommend/youtube)에 맞게 변경 (mock 유지)주요 변경점
types/myPage.ts:MyPageRecommendVideo필드 교체 (thumbnail→thumbnailUrl,uploadedAt→publishedAt,views제거,videoId: string | null → string),contentId·translatedTitle·tags·isScrapped·isLiked추가,MyPageRecommendYoutubeResponse타입 추가lib/mock/my-page-recommend-video.ts: 10개 고정,{ videos, isPersonalized, message }구조 반환, duration ISO 8601 형식 적용, 영어 원제 +translatedTitle혼합RecommendedVideoCard.tsx/RecommendedVideoListItem.tsx:parseDuration(ISO 8601 → 표시용) 추가,translatedTitle ?? title표시,views제거, 항상<a>렌더링 (서버에서videoId: null필터링 보장)RecommendedVideoListItem.tsx: 태그 목록 UI 추가 (제목 → 태그 → 채널명 · 날짜 순)RecommendedVideoList.tsx: 페이지네이션 제거,isPersonalized안내 문구 처리,key={video.contentId}RecommendedSection.tsx: videos 상태 타입 교체,isPersonalized처리,key={video.contentId}SourceLogo.tsx:paddingOverrideprop 추가 (naver_d2 로고 크기 마이페이지 한정 조정)테스트 방법
/my-page접속 → 추천 유튜브 카드 4개 정상 렌더링 확인10:24형식으로 표시되는지 확인/my-page/recommend/video) 접속 → 10개 목록, 페이지네이션 없음 확인isPersonalized: false로 변경 후 안내 문구 표시 확인AI 사용 여부
체크리스트