Repository navigation
Reuse Stock filter choices during pagination - #290
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.
Additional Stock card pages and additional rolls in an expanded product reuse the material and vendor options already loaded by the open filter panel. The database can skip its distinct-options query, and the choices stay available in the UI. The page retains its logical filter configuration when the wire request omits options.
Continuation pages check the Host URL, library ID and target generation. A changed inventory or catalog revision restarts pagination at offset zero with fresh options. The browser regression expands a card, requests another product page, then changes the catalog revision and checks that the old vendor is replaced. Existing coverage also exercises offline filtering, older Hosts, and A–B–A.
Measurements
Release Rust and production Chromium UI, using synthetic SQLite libraries and an authenticated loopback Host with a complete offline capture. Each library contains 97 product groups with distinct vendors and a four-roll group on the first page. The 100-roll library is the smallest that supports both actions with a 96-group page and a three-roll preview. The 10,000-roll library has its additional rolls in the final group. With the filter panel open, time runs from click until the extra roll or product is rendered with pending requests complete. Both variants issue one card read. The probe checks whether the request asked for the options and whether the response included them. Bytes include serialized requests and responses, excluding transport headers and assets. Medians of seven measured runs after two warm-ups, alternating variants.