Repository navigation
Filter paged Stock cards without loading the full inventory - #286
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.
Filter paged Stock cards
Opening More filters and changing or clearing a filter now uses the Stock card reader. SQLite applies free text and all selected roll filters before grouping and pagination, so counts and remaining weight only include matching rolls. The same database snapshot supplies the distinct material and vendor choices across the whole inventory. A Client negotiates filter support independently of ordinary cards and free-text search, retains its complete offline capture, and rejects superseded responses.
Verification
Measurements
Production Chromium UI and release Rust with synthetic SQLite libraries. Each run starts on an open Stock tab, opens More filters, selects Lost, then resets the filters. At 10,000 rolls there is one lost roll in a large product group. The paired Client uses an authenticated loopback Host and starts with a complete offline copy. Medians of seven measured runs after two warm-ups, alternating before and after. Times include the UI update to the expected visible count. Byte counts include serialized requests and responses through completion, excluding transport headers and assets.
Before this change, opening transferred the full inventory and subsequent actions used the rows already in memory. The new flow reads a bounded card page per action.