Skip to content

[DP-438] 마이페이지 홈 추천 글 섹션을 신규 API 스펙(GET /recommend/contents)에 맞게 변경 (m…#118

Merged
uiuuoq merged 1 commit into
developV2from
feature/DP-438-mypage-api-recommendation-home
Apr 30, 2026
Merged

[DP-438] 마이페이지 홈 추천 글 섹션을 신규 API 스펙(GET /recommend/contents)에 맞게 변경 (m…#118
uiuuoq merged 1 commit into
developV2from
feature/DP-438-mypage-api-recommendation-home

Conversation

@uiuuoq
Copy link
Copy Markdown
Collaborator

@uiuuoq uiuuoq commented Apr 30, 2026

연결된 Jira 티켓

  • DP-438

작업 내용

  • 마이페이지 홈 추천 글 섹션을 신규 API 스펙(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: null
  • RecommendedSection.tsx / RecommendedHomePostList.tsx: isPersonalized === falsemessage 안내 문구 표시
  • RecommendedHomePostCard.tsx / RecommendedHomePostListItem.tsx: translatedTitle ?? title로 표시 제목 결정
  • RecommendedHomePostList.tsx: 페이지네이션 제거 (API 고정 10개 반환 스펙 반영)
  • SourceLogo.tsx: paddingOverride prop 추가 — 마이페이지에서 naver_d2 로고 크기를 다른 곳에 영향 없이 조정

테스트 방법

  1. /my-page 접속 → 홈 추천 글 섹션 카드 4개 정상 렌더링 확인
  2. 영어 원제 글(medium, stackoverflow)은 한국어 번역 제목으로 표시되는지 확인
  3. 전체 보기(/my-page/recommend/home) 접속 → 10개 목록, 페이지네이션 없음 확인
  4. mock에서 isPersonalized: false로 변경 후 안내 문구 표시 확인

AI 사용 여부

  • Claude Code 사용

체크리스트

  • 빌드/테스트 확인
  • 리뷰어 지정
  • 라벨 지정

@uiuuoq uiuuoq added enhancement New feature or request automerge Enables auto-merge for this PR after successful CI/CD checks labels Apr 30, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
traceapp Ready Ready Preview, Comment Apr 30, 2026 0:02am

@uiuuoq uiuuoq merged commit dc44d76 into developV2 Apr 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Enables auto-merge for this PR after successful CI/CD checks enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant