Repository navigation
feat(search): search all content types with category detail pages - #1353
Merged
Merged
Conversation
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.
What
Restructures search to match the kmrs web UI (
/search+/search/:category):Series · 23), honoring the active library scope and thesearchIgnoreFilters/ stored browse options. (Collections and Read Lists apply library scope server-side only; client-local pin prepending and offline list queries stay unscoped, matching the Lists page.)SearchCategoryDetailViewthat keeps the query and scope, supports layout/sort/filter/presets and series/book batch selection, and re-queries in place when editing its search field. Popping back preserves the overview without reloading.SearchViewModelthat reuses the four existing browse view models concurrently (12-item preview window) with GRDB upserts online and exact local match counts offline (countBrowseSeries/countBrowseBooks).hasLoaded, so leaving the surface mid-search reloads on return instead of caching partial/empty results.syncAutomaticBooks: false) so a search never stalls all four categories behind unrelated book-page syncs..taskand only bumprefreshTriggeron post-mount scope changes.repo-conventionsfor the new search boundaries and localizessearch.viewAllplus the updatedsearch.empty.hintin all 10 supported languages.Why
Previously, search only queried whichever of Series or Books was selected in
browseContent, so Collections and Read Lists were unreachable from search despite the empty-state hint mentioning them. An all-category overview with drill-down category pages makes every content type discoverable in one search and matches the kmrs web UI.Validation
make formatmake build(iOS, macOS, and tvOS all build successfully)make localizeand./misc/translate.py list(No missing translations found.)1→ Series · 4 + Books · 4;batch→ Series · 23 + Books · 10) and empty/no-results states.Testpinned scope vs. All Libraries).