Skip to content

fix(view): 무한 스크롤을 위한 FakeIDEAdapter 개선#1008

Merged
SingTheCode merged 2 commits into
mainfrom
bugfix/#1007_update-fake-adapter-to-vscode-adapter
Oct 25, 2025
Merged

fix(view): 무한 스크롤을 위한 FakeIDEAdapter 개선#1008
SingTheCode merged 2 commits into
mainfrom
bugfix/#1007_update-fake-adapter-to-vscode-adapter

Conversation

@SingTheCode
Copy link
Copy Markdown
Contributor

@SingTheCode SingTheCode commented Oct 20, 2025

🎯 목적

📋 주요 변경사항

  • 페이로드 구조 동기화: FakeIDEAdapter가 반환하는 데이터에 isLastPage, nextCommitId, isLoadMore 필드를 추가하여 실제 어댑터와 구조를 일치시켰습니다.
  • 페이지네이션 구현: FakeIDEAdapter에 페이지 상태를 관리하는 로직을 추가하여, 실제 API처럼 데이터를 나누어 제공하도록 수정했습니다.
  • 상태 유지: FakeIDEAdapter를 싱글톤으로 등록하여 페이지 상태가 요청 간에 유지되도록 보장합니다.

📊 영향 범위

  • packages/view/src/ide/FakeIDEAdapter.ts
  • packages/view/src/index.tsx

✅ 체크리스트

  • 테스트 통과
  • 기존 기능 영향도 확인

🔗 관련 이슈

박재현(Singco) and others added 2 commits October 20, 2025 16:53
- Change FakeIDEAdapter to return AnalyzedDataPayload structure instead of ClusterNode[] array
- Add missing fields: isLastPage, nextCommitId, isLoadMore, isPRSuccess
- Ensure consistency between development and production environments

Fixes #1007

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add pagination logic to FakeIDEAdapter to simulate real data fetching for infinite scrolling.

- Implement page tracking using currentPage and PAGE_SIZE to slice and return partial data.

- Ensure FakeIDEAdapter is a singleton to maintain pagination state across requests.

- Update message handling to support 'load more' functionality based on lastCommitId.

Related to #1007
@SingTheCode SingTheCode self-assigned this Oct 20, 2025
@SingTheCode SingTheCode requested review from a team as code owners October 20, 2025 10:42
@SingTheCode SingTheCode added the bug Something isn't working label Oct 20, 2025
Copy link
Copy Markdown
Contributor

@nxnaxx nxnaxx left a comment

Choose a reason for hiding this comment

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

개발 모드 에러 발생해서 어떻게 해야하나 했는데,
빠른 수정 감사합니다!👍🏻👍🏻

Copy link
Copy Markdown
Contributor

@chae-dahee chae-dahee left a comment

Choose a reason for hiding this comment

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

ㅜㅜ제가 놓친 부분 더블체크 해주셔서 정말 감사합니다!! 👍

@SingTheCode SingTheCode merged commit 3c9e22a into main Oct 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix]: FakeIDEAdapter 페이로드 구조가 VSCodeIDEAdapter와 불일치

3 participants