Skip to content

Reuse active Stock filters on return and local retry - #289

Merged
bliatun-code merged 1 commit into
mainfrom
codex/refresh-filtered-stock
Nov 26, 2026
Merged

bliatun-code merged 1 commit into
mainfrom
codex/refresh-filtered-stock

Conversation

@bliatun-code

@bliatun-code bliatun-code commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Returning from another inventory tab now requests the current search and filters on the first card page when Stock has retained a page for the current library. Retrying a local load does the same. A new library starts with its usual initial read. An explicit paired retry still captures the complete offline inventory.

The browser regression changes a matching roll while the user is on Locations, then checks that returning requests precisely one searched and filtered page and displays the new value. A standalone retry after an interrupted printer read also displays the changed value with a single searched page. The suite also covers offline reads, older Hosts, and delayed results during A–B–A.

Measurements

Synthetic SQLite libraries, release Rust, production UI in Chromium and a paired loopback Host with a complete offline copy. Both variants have the Lost filter selected and the advanced filters open. Return is measured from Locations. Retry uses the Refresh button after a simulated printer-read failure has cleared. Time runs from click to a frame showing the expected count after a fresh filtered response or complete inventory capture, with pending desktop calls complete. Bytes include serialized requests and responses, excluding headers and assets. Median of seven measured runs after two warm-ups, alternating variants.

Library Spools Action Card reads Time in ms (before → after) Desktop bytes Client–Host bytes
Local 0 return 2 → 1 41.3 → 39.3 2,577 → 2,140 —
Local 0 refresh 2 → 1 26.5 → 26.5 2,443 → 2,006 —
Local 10,000 return 2 → 1 74.1 → 41.3 6,330 → 3,100 —
Local 10,000 refresh 2 → 1 70.4 → 37.4 6,196 → 2,966 —
Paired 0 return 2 → 1 73.3 → 73.9 2,260 → 1,784 7,013 → 5,931
Paired 0 refresh 0 → 0 70.4 → 57.5 1,447 → 1,447 4,686 → 4,686
Paired 10,000 return 2 → 1 106.5 → 71.9 6,013 → 2,744 10,766 → 6,891
Paired 10,000 refresh 0 → 0 185.6 → 187.8 9,131,439 → 9,131,439 10,047,934 → 10,047,934

@bliatun-code
bliatun-code merged commit da9327f into main Nov 26, 2026
10 checks passed
@bliatun-code
bliatun-code deleted the codex/refresh-filtered-stock branch November 26, 2026 10:36
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