feat: infinite scroll, configurable commit count, and performance improvements#109
Open
Sagargupta16 wants to merge 1 commit into
Open
Conversation
- Replace "Load More" button with IntersectionObserver-based infinite scroll that auto-loads commits as user scrolls (NirmalScaria#93) - Add configurable commits-per-page setting in extension popup with options for 10/20/30/50/100, default changed from 10 to 30 (NirmalScaria#92) - Reduce duplicate GraphQL query code in fetchCommits.js with shared query builder function - Use configurable page size throughout: sortCommits, fetchFurther, fetchCommits, fetchFilteredCommits, and showCommits - Add chrome.storage.sync for persisting user preferences - Add "storage" permission to manifest.json Closes NirmalScaria#93, Closes NirmalScaria#92, Addresses NirmalScaria#41
3e47c96 to
654d13c
Compare
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.
Summary
This PR addresses three related enhancement requests by improving the commit loading experience:
chrome.storage.sync.Changes
manifest.jsonstoragepermission, addedgetCommitsPerPage.jsto content scriptsjs/getCommitsPerPage.jsjs/popup.jshtml/popup.htmljs/fetchCommits.jsbuildBranchQuery(), uses configurable page sizejs/fetchFilteredCommits.jsjs/sortCommits.jsjs/fetchFurther.jsjs/showCommits.jsaddNextPageButton(), configurable page sizeHow to test
chrome://extensions> Load unpacked)Screenshots
Settings in popup:
The dropdown appears below the existing demo image with options 10/20/30/50/100.
Closes #93, Closes #92, Addresses #41