Skip to content

feat(graph): optional auto-load of further history - #113

Open
patrick-cst1 wants to merge 1 commit into
the0807:mainfrom
patrick-cst1:fix/issue-61-auto-load-history
Open

patrick-cst1 wants to merge 1 commit into
the0807:mainfrom
patrick-cst1:fix/issue-61-auto-load-history

Conversation

@patrick-cst1

Copy link
Copy Markdown

Summary

  • Adds gitGraphPlus.autoLoadHistory (default false). When enabled, scrolling near the bottom loads the next chunk automatically (same request as the "Load more commits" button); duplicate in-flight requests are guarded. Disabled behaviour is unchanged.

Related Issue

Closes #61

Changes

  • Setting + readAutoLoadHistory(), setAutoLoadHistory message, store flag, App handler; isNearBottom() helper; CommitGraph triggers the shared loadMore().
  • Tests: config reader, App message handling, auto-load helper, CommitGraph scroll trigger/in-flight guard.

Type of Change

  • New feature
  • Test addition or update

Testing

  • New tests fail on unmodified main and pass with the change; svelte-check 0 errors.- npx tsc --noEmit clean.
  • Full suite on Windows: 260 pre-existing failures (POSIX-only integration helper + env), 0 new failures vs main; focused tests pass.
  • The repo's integration suite only runs on Linux (its helper uses POSIX quoting), CI covers those.

Caveats

  • No polling and no new listeners: it hooks the existing scroll handler.

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.

[FEATURE] Automatically load / extend history

1 participant