Repository navigation
Settings: ask for a poster of a kind the Under posters preview lacks - #1287
Merged
Merged
Conversation
The Under posters picture drew a kind's tile from the Browse store's cache only, and the store caches only libraries the user has opened, so a show library never opened left the TV SHOW tile an empty placeholder. The Under posters page and the Settings root (while its Under posters row has focus) now ask the store for the shelves of the library of any kind with no poster, as `LibraryWork::Hubs`, which reads them into the section's own cache without switching the user's library. The ask is repeated with a `StoreWork::Browse` pump each tick until the poster arrives (one read is in flight at a time, a landed read is committed by the next ask, and nothing lands unpumped), for at most ten seconds. Verified in the macOS simulator against mock_pms: both tiles empty before, both show posters after. Not verified on the TV. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…lished Review of the previous commit found three problems, all fixed here: - The ask was bounded by an accumulated tick delta, which the dt gate (ci/check-deps.sh) forbids in a screen and which could run out before a slow server answered, leaving a landed read staged and the tile empty. The page now stops per kind when the poster is there or when the store has published that library's shelves (`DirectoryView::kind_shelves_ published`, new, read from the section's hubs state), so there is no timer at all. - The Settings root and the pushed Under posters page both ticked, so the Browse store was pumped twice a frame while the page was open. The root now asks only while it is the page on top. - The root's half had no test; it has one now, and so does the new view accessor. Also notes the Settings pages as a second sender of `LibraryWork::Hubs` in the section_hubs module doc and in screens/src/CLAUDE.md. Co-Authored-By: Claude Sonnet 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.
Summary
Settings > Under posters drew its two preview tiles (MOVIE, TV SHOW) only from what the Browse store had already cached, and the store caches only libraries the user has opened. A show library never opened left the TV SHOW tile an empty placeholder.
The Under posters page, and the Settings root while its Under posters row has focus (and it is the page on top), now ask the store for the shelves of the library of any kind that has no poster:
LibraryWork::Hubs { may_publish: true }plus aStoreWork::Browsepump, per tick. This reads the shelves into the section's own cache and does not switch the library the user is on. The ask stops per kind when the poster is there or when the store has published that library's shelves (newDirectoryView::kind_shelves_published), so there is no timer. Any poster of the kind is fine; which one is not specified.Why a plain one-shot ask was not enough (found in the simulator): the store reads one library's shelves at a time, a landed read is staged until the next
Hubsask commits it, and nothing lands unless the store is pumped.Verification
tests/mock_pms.py(a movie and a show library), booted onplxnative-settings=under-posters: both tiles empty before, both show posters after, and the event log shows both libraries' shelves landing. Mock posters are solid colours. Simulator evidence only, not TV-verified.make checkall 127 steps ok,make check-nodefok.pr-reviewerran once: three MINOR findings (root and page both pumping the store, a timer that could run out before a slow server answered, no root test), all fixed in the second commit.Gates
make checkandmake check-nodefgreen. No change toci/allow/**,Makefile,Cargo.*or the module layout.🤖 Generated with Claude Code