[DP-418] 마이페이지 스크랩 목록 API 스펙 반영 (mock 구조 전환)#111
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 티켓
작업 내용
MyPageScrap타입을 백엔드 API 스펙에 맞게 수정 (id제거,summary: string | null)MyPageScrapResponse응답 타입 추가fetchMyScraps를 params 기반으로 변경하고MyPageScrapResponse반환하도록 수정ScrappedPostsList에서 client-side 필터링/정렬/페이지네이션 제거 → mock params 전달 방식으로 전환ScrappedPostsSectionpreview 반환 타입 대응 및key={scrap.contentId}교체주요 변경점
types/myPage.ts:id제거,summary: string | null,MyPageScrapResponse추가lib/mock/my-page-scraps.ts:fetchMyScraps(params?)→ 검색/정렬/페이지네이션 mock 내부 처리ScrappedPostsList.tsx:useReducer로 fetch 상태 관리, race condition 방지, 검색/정렬 변경 시 page 초기화ScrappedPostsSection.tsx:res.content추출,keycontentId 교체테스트 방법
/my-page/scraps진입 후 스크랩 목록 정상 렌더링 확인/my-page메인에서 preview 카드 4개 정상 렌더링 확인AI 사용 여부
체크리스트