Skip to content

feat(session): 세션 목록 페이지네이션 + 히스토리 "더 보기"#69

Merged
i3months merged 1 commit into
devfrom
feature/session-pagination
Jun 3, 2026
Merged

feat(session): 세션 목록 페이지네이션 + 히스토리 "더 보기"#69
i3months merged 1 commit into
devfrom
feature/session-pagination

Conversation

@i3months

@i3months i3months commented Jun 3, 2026

Copy link
Copy Markdown
Member

GET /api/sessions 가 전체 세션을 List 로 반환하던 것을 페이지네이션으로.

Core:

  • InterviewSessionRepository.findByUser_IdAndDeletedFalse(userId, Pageable)
  • SessionService.list → listPaged(userId, Pageable): Page
  • SessionController.list → PageResponse (@PageableDefault size=20, id DESC) (common/response/PageResponse 재사용). openapi 재생성.

Front:

  • historyApi.listSessions(page, size) → ?page=&size= → PageResponseSessionResponse
  • useSessions → useInfiniteQuery (getNextPageParam: last면 종료)
  • SessionHistoryList: pages 평탄화 + "더 보기" 버튼(hasNextPage 시)

검증: backend compile + OpenApiSpec BUILD SUCCESSFUL(응답 PageResponse), 프론트 build 통과, lint 클린. GET 목록 소비처는 history 뿐(POST 생성 무관). DB 변경 없음.

변경 사항

GET /api/sessions 가 전체 세션을 List 로 반환하던 것을 페이지네이션으로.

Core:
- InterviewSessionRepository.findByUser_IdAndDeletedFalse(userId, Pageable)
- SessionService.list → listPaged(userId, Pageable): Page<SessionResult>
- SessionController.list → PageResponse<SessionResponse> (@PageableDefault size=20, id DESC)
  (common/response/PageResponse 재사용). openapi 재생성.

Front:
- historyApi.listSessions(page, size) → ?page=&size= → PageResponseSessionResponse
- useSessions → useInfiniteQuery (getNextPageParam: last면 종료)
- SessionHistoryList: pages 평탄화 + "더 보기" 버튼(hasNextPage 시)

검증: backend compile + OpenApiSpec BUILD SUCCESSFUL(응답 PageResponse), 프론트 build 통과, lint 클린.
GET 목록 소비처는 history 뿐(POST 생성 무관). DB 변경 없음.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
stackup Ready Ready Preview, Comment Jun 3, 2026 1:56am

@i3months i3months merged commit 3cf80a9 into dev Jun 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant