Skip to content

Render Stock roll actions when their menu opens - #291

Merged
bliatun-code merged 1 commit into
mainfrom
codex/lazy-stock-roll-menus
Nov 26, 2026
Merged

bliatun-code merged 1 commit into
mainfrom
codex/lazy-stock-roll-menus

Conversation

@bliatun-code

Copy link
Copy Markdown
Owner

Stock product cards now create roll action buttons when their native details menu opens. The menu shows up to 100 loaded rolls at first. Show more reveals the next batch and requests more members only when the loaded rows run out. Closing the menu releases its buttons and reopening starts at the first batch.

The browser regression checks a paged Host and a complete offline group of 105 rolls. It verifies that keyboard expansion focuses the first new roll, closing removes the buttons, and reopening the offline menu does not read inventory again. The inventory workspace interaction checks selecting a roll with Enter.

Measurements

Production Chromium UI and release Rust with synthetic SQLite libraries, locally and on a paired loopback Client. Each run starts in list view after the complete inventory is loaded, then switches to cards and opens the first roll menu. The large library has 10,000 rolls of a single product. The empty library has no menu to open. Time is measured from click through the next animation frame after the expected DOM and pending desktop calls settle. Median of seven runs after two warm-ups, alternating versions. Neither action issued a desktop or Host read in this workflow (zero bytes before and after).

Library Spools Action Time in ms (before → after) Roll-menu buttons in the DOM (before → after)
Local 0 cards 23.9 → 23.1 0 → 0
Local 10,000 cards 62.7 → 22.5 10,000 → 0
Local 10,000 open 64.5 → 20.9 10,000 → 101
Paired 0 cards 23.4 → 22.4 0 → 0
Paired 10,000 cards 59.7 → 25.0 10,000 → 0
Paired 10,000 open 64.1 → 20.8 10,000 → 101

@bliatun-code
bliatun-code merged commit ec42c1c into main Nov 26, 2026
10 checks passed
@bliatun-code
bliatun-code deleted the codex/lazy-stock-roll-menus branch November 26, 2026 12:05
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