[DP-438] 마이페이지 홈 추천 글 섹션을 신규 API 스펙(GET /recommend/contents)에 맞게 변경 (m…#118
Merged
Merged
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/contents)에 맞게 변경 (mock 유지)주요 변경점
types/myPage.ts:MyPageRecommendHomePost필드 교체 (contentId→id,thumbnail→thumbnailUrl,summary→preview,date→publishedAt) 및 신규 필드 추가,MyPageRecommendContentsResponse타입 추가lib/mock/my-page-recommend-home.ts: mock 데이터 10개로 고정, 응답 구조를{ contents, isPersonalized, message }형태로 변경, 해외 출처 글은 영어title+ 한국어translatedTitle, 국내 블로그는title한국어 +translatedTitle: nullRecommendedSection.tsx/RecommendedHomePostList.tsx:isPersonalized === false시message안내 문구 표시RecommendedHomePostCard.tsx/RecommendedHomePostListItem.tsx:translatedTitle ?? title로 표시 제목 결정RecommendedHomePostList.tsx: 페이지네이션 제거 (API 고정 10개 반환 스펙 반영)SourceLogo.tsx:paddingOverrideprop 추가 — 마이페이지에서 naver_d2 로고 크기를 다른 곳에 영향 없이 조정테스트 방법
/my-page접속 → 홈 추천 글 섹션 카드 4개 정상 렌더링 확인/my-page/recommend/home) 접속 → 10개 목록, 페이지네이션 없음 확인isPersonalized: false로 변경 후 안내 문구 표시 확인AI 사용 여부
체크리스트