✨ Keep search/library filters and sort on back navigation + Uniformize library and search cards across domains - #103
Merged
Conversation
Sync query/status/favorites/sort/order (and type, for the media library) into the URL via replaceState, and let each detail page's "← retour" link fall back to a real history.back() when it knows the tab has in-app navigation history — so both the back button and the browser's native back restore the previous filtered/sorted view instead of resetting it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Add a watched status label for movies (mirroring Book/Game/Music) and a reading-progress bar for books, since currentPage/pageCount were already tracked but never surfaced. Unify search result cards behind a single top-right +/check affordance (hover to add, always-visible check when already followed), replacing Video's missing add action and Book/Game/Music's bottom button, and match Video's hover-lift style across all four domains.
replaceState from $app/navigation only patches the raw history entry
— it doesn't update SvelteKit's own router state, so page.url (and
the filters read back from it) stayed stale once the browser actually
navigated back to that entry, causing the just-restored filters to
immediately reset. Swap to goto(url, { replaceState: true, noScroll,
keepFocus }), which is what actually keeps page.url in sync.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
https://feedback.loomkeep.app/admin/roadmap?roadmap=roadmap_01kznp6asefetr9sv2gdpa25d2&post=post_01kzvxsm42fk1r4m88wc3h8xyd
https://feedback.loomkeep.app/admin/roadmap?roadmap=roadmap_01kznp6asefetr9sv2gdpa25d2&post=post_01kzv8r4qte00tngj78nkm9dxs
https://feedback.loomkeep.app/admin/roadmap?roadmap=roadmap_01kznp6asefetr9sv2gdpa25d2&post=post_01kzvyeqq0fk1r4m9rcx4rvfmv