Skip to content

Reuse Stock filter choices during pagination - #290

Merged
bliatun-code merged 1 commit into
mainfrom
codex/reuse-stock-filter-options
Nov 26, 2026
Merged

bliatun-code merged 1 commit into
mainfrom
codex/reuse-stock-filter-options

Conversation

@bliatun-code

Copy link
Copy Markdown
Owner

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.

Library Spools Action Time in ms (before → after) Desktop bytes Client–Host bytes
Local 100 expand 25.0 → 14.5 3,707 → 1,433 —
Local 100 next 13.1 → 13.3 3,679 → 1,405 —
Paired 100 expand 21.2 → 22.1 3,746 → 1,472 4,400 → 2,126
Paired 100 next 12.3 → 11.5 3,718 → 1,444 4,389 → 2,115
Local 10,000 expand 30.5 → 31.8 3,709 → 1,435 —
Local 10,000 next 45.4 → 45.1 5,430 → 3,156 —
Paired 10,000 expand 27.4 → 29.1 3,748 → 1,474 4,402 → 2,128
Paired 10,000 next 44.9 → 44.0 5,469 → 3,195 6,140 → 3,866

@bliatun-code
bliatun-code merged commit 1739bcb into main Nov 26, 2026
10 checks passed
@bliatun-code
bliatun-code deleted the codex/reuse-stock-filter-options branch November 26, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant