Difegue / LANraragi

Web application for archival and reading of manga/doujinshi. Lightweight and Docker-ready for NAS/servers.
https://lrr.tvc-16.science
MIT License
2.18k stars 153 forks source link

Added search option to batch operations #1054

Open alethiophile opened 1 month ago

alethiophile commented 1 month ago

This is an initial implementation of some basic filtering for batch operations, as previously discussed in e.g. https://github.com/Difegue/LANraragi/issues/893 and https://github.com/Difegue/LANraragi/issues/570.

This basically just copies the search UI from the index page to the batch page, then populates the batch archive list from the search results instead of the all-archive list. The old behavior is available behind the "Use all archives" button. The batch page's search bar has tag autocomplete as well; to facilitate this, I moved the loadTagSuggestions function from index into common. That specific function could be pulled out with very little change.

The search UI is not complete here; it lacks categories or any way to apply other search filters. I'm primarily looking for feedback on the basic concept. Personally, this version satisfies one of my big problems with the batch operation interface.