Repository navigation
Add Infinite Scroll plugin - #811
Open
RyanAtNight wants to merge 3 commits into
Open
RyanAtNight wants to merge 3 commits into
RyanAtNight wants to merge 3 commits into
Conversation
Replaces page buttons with infinite scrolling in every list and view. Source: https://github.com/RyanAtNight/StashInfiniteScroll Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the page translated by the browser, scrolling a list could show "Something went wrong" (removeChild ... not a child of this node) when a batch finished loading. The loading row and result count no longer leave bare text nodes for React to remove. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Adds Infinite Scroll, a UI-only plugin that replaces page buttons with infinite scrolling in every list (scenes, images, galleries, performers, studios, tags, groups, markers) in Grid, List, Wall and Tagger views, including the lists on performer, studio, tag, group and gallery pages.
plugins/InfiniteScroll/(InfiniteScroll.yml,infiniteScroll.js,infiniteScroll.css,README.md)InfiniteScroll, version 1.1.1. No dependencies, no backend task.How it works
It adds a read policy to Apollo's cache for the
find*fields, so reading any loaded page of a tracked list returns every loaded page, merged and de-duplicated. Stash's own list components then render them, which keeps selection, bulk edit, the play queue, the lightbox, random sort and the tagger working. It also patchesPagination/PaginationIndex(page buttons follow the page in view, the count shows the total), the list renderers (loading markers, position tracking, return-to-place on back) and the card components (off-screen Grid cards become same-size placeholders). If something it patches is missing, that part switches itself off and Stash's normal pagination is used.Testing
?p=links including past-the-end, Select all, sorting, lightbox, placeholders, 576px width, every setting).build_site.shformat.validator/plugin.schema.json.LLM disclosure
Written with LLM assistance (Claude). I reviewed the code, tested it by hand in my own Stash, and take full responsibility for it, including license compliance.
🤖 Generated with Claude Code