Skip to content

Add pagination for search based fetchers #13490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

paudelritij
Copy link
Contributor

@paudelritij paudelritij commented Jul 7, 2025

Closes #5507

This PR introduce pagination for search based fetcher

To Do

  • Define unified dialog for both paged based and non-paged based fetcher
  • Renaming of classes (related Import entries) with suffix Web
  • Define pagination for paged based fetcher
  • Redefine caching mechanism for user-selected entries.
  • Cache previous pages and call the fetcher only for the next page.
  • Test case to ensure the expected behaviour
  • Improve the PR description
  • Enhance UI with pagination indicators (e.g., "Prev 1, 2, 3 ... 7, 8, Next") (optional)

Steps to test

Mandatory checks

  • I own the copyright of the code submitted and I license it under the MIT license
  • Change in CHANGELOG.md described in a way that is understandable for the average user (if change is visible to the user)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (if change is visible to the user)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@jabref-machine
Copy link
Collaborator

Your code currently does not meet JabRef's code guidelines. We use Checkstyle to identify issues. You can see which checks are failing by locating the box "Some checks were not successful" on the pull request page. To see the test output, locate "Tests / Checkstyle (pull_request)" and click on it.

In case of issues with the import order, double check that you activated Auto Import. You can trigger fixing imports by pressing Ctrl+Alt+O to trigger Optimize Imports.

Please carefully follow the setup guide for the codestyle. Afterwards, please run checkstyle locally and fix the issues, commit, and push.

- Clone and create web* (WebImportEntriesDialog and WebImportEntriesDialogViewModel for web implementation)
- Cache prev pages in case of page based fetcher
- Enhance the background fetching mechanism for page-based search entries
- Fix 'Import Entries' button functionality
- Fix display of total and selected items counters
- Fix selection buttons behavior (unselectAll, selectAllNewEntries, selectAllEntries)
- generalized fetching of entries for all page-search-based fetcher
- improved pageNumberLabel UI
- update JabRef_en.properties
Copy link

trag-bot bot commented Jul 20, 2025

@trag-bot didn't find any issues in the code! ✅✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI: Paging support for fetchers
3 participants