Skip to content

✨ (#487) 프로젝트 파일 조회 방식을 커서 페이지네이션에서 전체 조회로 변경#491

Merged
hyemomo merged 4 commits intodevelopfrom
bug/487-file-pagination
Mar 25, 2026
Merged

✨ (#487) 프로젝트 파일 조회 방식을 커서 페이지네이션에서 전체 조회로 변경#491
hyemomo merged 4 commits intodevelopfrom
bug/487-file-pagination

Conversation

@hyemomo
Copy link
Copy Markdown
Collaborator

@hyemomo hyemomo commented Mar 25, 2026

PR

🔍 한 줄 요약

  • 프로젝트 파일 조회 방식을 커서 페이지네이션에서 전체 조회로 변경했습니다.

✨ 작업 내용

  • 프로젝트 파일 API 응답 구조 변경에 따라 조회 방식을 수정했습니다.
  • useInfiniteQuery → useQuery로 변경
  • 필드명 변경 반영 : fileId → id

데스크탑
image

모바일
image

❗ 참고 사항(선택)

  • X

#️⃣ 연관 이슈

@hyemomo hyemomo requested a review from daaoooy March 25, 2026 12:07
@github-actions
Copy link
Copy Markdown

미리보기 배포 완료

배포 URL: https://team1-fe-wtyr-bwjuwnkku-kimhyemins-projects.vercel.app
브랜치: bug/487-file-pagination
커밋: 9b75573

@daaoooy daaoooy added the refactor 리팩터링 작업 label Mar 25, 2026
Copy link
Copy Markdown
Contributor

@daaoooy daaoooy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

올려주신 내용 확인했습니다!

수정해서 올려주신 파일에는 api 쪽, 타입 쪽 파일 변경된 것이 안 보여서요! fileApi 내 fetchFiles와 file type 폴더의 ProjectFilesResponse도 수정이 필요하지 않을까 합니다! 혹시 파일 목록 조회 응답 형식이 혹시 어떻게 되나요? 프로젝트 id 필드, 개수 등은 응답에 없나요? ProjectFile[] 로 받도록 해두신 것 같아 여쭤봅니다!

@hyemomo
Copy link
Copy Markdown
Collaborator Author

hyemomo commented Mar 25, 2026

다연님 파일 목록 데이터는 현재 이런 형식으로 오고 있습니다. @daaoooy
api쪽랑 타입을 수정을 안했네요!
백엔드 쪽에서 타입 한번 확인해주실거라 수정해서 다시 올리도록 하겠습니다!

[
  {
    id: "4c05559d-9f9e-46cf-a3c3-8d9429ea9695",
    filename: "[붙임] 2026년 청년 취업준비 쿠폰 지원사업 참여자 모집 공고.pdf",
    contentType: "application/pdf",
    type: "PDF",
    completedAt: "2026-03-25T11:54:37.267114",
    sizeBytes: 552252
  },
  {
    id: "8912b9dd-f7da-44da-8894-f6bc6441ebe1",
    filename: "데일리 - 시간o.pdf",
    contentType: "application/pdf",
    type: "PDF",
    completedAt: "2026-03-05T09:15:17.782978",
    sizeBytes: 49599
  }
]

@github-actions
Copy link
Copy Markdown

미리보기 배포 완료

배포 URL: https://team1-fe-wtyr-3qlnd0f19-kimhyemins-projects.vercel.app
브랜치: bug/487-file-pagination
커밋: 3c5ca11

@hyemomo
Copy link
Copy Markdown
Collaborator Author

hyemomo commented Mar 25, 2026

@daaoooy 다연님 변경된 API 응답 필드 반영해서 관련 코드 수정했습니다! 확인 부탁드립니다!

@github-actions
Copy link
Copy Markdown

미리보기 배포 완료

배포 URL: https://team1-fe-wtyr-qztr1b5c0-kimhyemins-projects.vercel.app
브랜치: bug/487-file-pagination
커밋: 45aff19

Copy link
Copy Markdown
Contributor

@daaoooy daaoooy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

변경해주신 부분 확인했습니다! 승인할게요~!

params: { cursor, limit },
});
// 프로젝트 파일 목록 조회
fetchFiles: async (projectId: string) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니당 ~~

@hyemomo hyemomo merged commit 9e12b0d into develop Mar 25, 2026
5 checks passed
@daaoooy daaoooy mentioned this pull request Mar 25, 2026
5 tasks
@daaoooy daaoooy deleted the bug/487-file-pagination branch March 25, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor 리팩터링 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

♻️ 파일 목록 조회 API 방식 변경 (무한 스크롤 → 페이지네이션)

2 participants