Repository navigation
Library: a push to the other kind's library aims the store before the page image is taken - #570
Merged
Merged
Conversation
… page image is taken Opening a Library of the other kind than the one last shown (Shows visited, back Home, press Movies), everything cached, froze the destination as an image on the frame it mounts, but the Library only learned which library to show a frame later (store select from its first tick, Enter a frame after that). The image was an empty page with a still spinner, held through the whole dip-in, then the full grid appeared in one frame. Shipped since #178. nav_tab now aims the store at the pressed kind a dip-out ahead (Bridge::aim_library), only when the Library is not already on top and the store is not already on a library of that kind, so the reader's last pick of that kind stays. The target is one function, DirectoryView::kind_address, shared with the page's own select. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What the reader saw
Open a Library of the other kind than the one last shown (TV Shows visited, back Home, press Movies) with everything cached: an empty page with a frozen spinner for about 10 frames (longer on the TV while poster uploads are queued), then the whole grid in one frame. A same-kind revisit is fine. Shipped since #178 (held-image page transitions).
Root cause
The page transition freezes the destination as one image on the frame it mounts. The Library only learned which library to show after that frame: the store select came from its first Tick and
LibraryCmd::Entera frame after that. If the store still pointed at the other kind, the image was ground, chrome and a spinner, held through the dip-in and until the page is quiescent.Per-frame (host, real
bridge::frame,nav_tab,PageDip,LibraryScreen,PageImage::plan)Other kind, both warm, before:
After: the floor frame captures section 1 with 120 tiles at full page fade, so the image carries the grid for the whole dip and the handover has nothing to pop. Same kind, warm was already this.
Fix
nav_tabaims the store at the pressed kind a dip-out ahead (Bridge::aim_library), only when the Library is not already on top and the store is not already on a library of that kind (the reader's last pick of that kind stays; an unconditional select brokeretired_library_entry_seeds_its_previous_section_card_and_viewport). The target is a single function,DirectoryView::kind_address, which the page's own first-Tick select now uses too, so the bridge and the page cannot disagree; the page's later select is the same command on a store already there.Tests:
a_warm_library_push_captures_the_pressed_library_with_its_tiles(red on main:the floor image shows section 2 with 0 tiles (loading=true, fade 1.00) for 10 frames, then section 1 with 120 tiles in one frame) andaiming_a_library_moves_the_store_only_across_kinds(cross-kind moves, same kind selects nothing).LibraryScreen::probe_contentiscfg(any(test, feature = "test-support")).Not fixed here
ScreenEvent::Mount, so its capture is at alpha 0 (by reading only).Both are a page-image / quiescence design question (
transition.rs,dispatch.rs,xfade.rs), undecided, left alone.Site film
The film changes where the storyboard enters a library of another kind than the store's current one: tiles under the dip instead of a spinner.
Gates (committed tree)
make check:==== check: 78 steps — all okcargo +nightly check --lib --no-default-features: cleanmake check-replay:3 fixtures, 6 replays, 0 failuresplxnative-moduleslib (hostsim):702 passed; 0 failed;plx_screenslib:1188 passed; 0 failedNo pixels have been seen on the TV or the simulator yet.
🤖 Generated with Claude Code