Repository navigation
Home: the hub shelves are cards::Shelf - #525
Merged
Merged
Conversation
…lowlist Each hub row is a Shelf over a CardSource of the published hub; the screen keeps the hero, the dive, the linked headings, the vertical flow, the focus groups and every press and hold (a Continue Watching tile still resumes or opens on exactly the element the engine holds). The picture's focus (the card kept lifted while the dive returns to the billboard, none until the shelves are the picture) is the source's focus_index; Shelf gains dormant() so a card focused during the dive grows from rest when the shelves wake, and the Home pop/landing/geometry cases leave the conformance list except the landing case, which waits on Shelf's overscroll fix. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nding case passes The row's offset and the focused caption's settle lag are scaled by the dive again (CardSource::sweep, read by draw, place, the stops and the opener redraw alike), the cull pad is the glow's again (cull_margin(GLOW_PAD)), and every row's focused tile is painted after all the rows (Shelf::paint_resting, paint_focused) so its glow overlaps the neighbouring rows. The retained-offset dive test is back to its original name and assertions. Shelf's duplicate dormant/at_exact_rest give way to the ones on main. The landing case now stages a move the row can follow (rotate_test_shelves_right) instead of reversing a row that scrolls 332 px, which the shelf's clamp rightly lets move on screen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… and census tests bite, and the hash no longer panics The Shelf wake latch turned a restore announced after idle dormant ticks into a deliberate arrival, so the restored card grew from rest instead of arriving popped; the latch now yields to an arrival the shelf was told about. Home gains tests for the restore-after-idle case, the deliberate dive and a landing the row cannot honour (scroll inside [0, max], the pop follows the element). The conformance landing check also tests the scroll's upper bound for strip harnesses (RowStyle::max_scroll, CardHarness::scroll_max). The census test mutates a real pop spring again, the census comment says what the shelf does not hash, and the state hash falls back to a resting shelf instead of indexing. Prose: Home's feed-only-Tick-and-FocusMoved exception, and cull_margin's leading-edge-only doc. Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21
added a commit
that referenced
this pull request
Oct 20, 2026
…eeps its offset at the hero (#871) Home rested its page by the picture's focus, which keeps the billboard until the dive is half done. After BACK from the last shelf, the page's target therefore stayed at that deep shelf, and Down from the billboard drew the deep shelves for about 7 frames before travelling back to the first. The page now rests by the focus engine's focus (`HomeScreen::rest_row`). A focused billboard rests the first shelf through the Library's rule (`ui_cards::grid_rest_scroll`). At the billboard, every shelf was drawn at its first card and slid back to its offset on Down. Home's `CardSource::sweep` multiplied each shelf's scroll by the dive's phase (#525). The hook is removed (`CardSource::sweep`, `Swept`, `Shelf::drawn_scroll`, Home's `eff_scroll`), so a shelf is drawn at its real offset in every phase. No shelf was refetched. The BACK fold from the last shelf is faster as a result: the page falls with the dive. In the app-tier rig the largest step is 258.9 px/frame instead of 171.9, and the page rests in 29 frames instead of 48. The owner approved it on the TV. The app-tier Home request loop performs the BACK fold through `content::fold_to_hero`, extracted from the World pump, for `Pump` and `pump_navigation` alike. Tests: - Route tests on the World rig, red on the old code: the dive after BACK draws no deeper shelf, and a shelf walked seven cards keeps its drawn card at the billboard, reached by Up and by BACK. - Screen tests, red on the old code: the page rests by the engine's focus, and a retained offset adds no motion to the late dive. - `poster-hero-grid-dive` still grades #191 gap 3 in the simulator; its TV run is owed. 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.
Home's hub shelves were the last hand-rolled card rows. They are now
plx_ui::cards::Shelf, the same component Person, Search, Detail and the Library already use, so pop, press, caption band, sideways scroll, landing and stop registration on Home follow the one shared rule set and are covered by the shared conformance suite with no expected failures left (ci/allow/cards-conformance.txtis empty;ci/allow/cards.txtis down toprofiles.rs).What changed
home/mod.rs: each hub row is aShelffed by aHomeCardssource. The hero, the hero dive, linked headings, vertical flow and the focus groups are unchanged.TickandFocusMovedonly and keeps its own press paths, because a Continue Watching press is account-affecting. The diff has no hunk inactivate,emit_item_menuor the press arms ofstep.Shelf/CardSourcegained what Home needed, all with identity defaults so other screens are unchanged:sweep()(the dive scales a row's drawn offset and caption lag),focus_index,hover,base_y,paint_resting/paint_focused(Home paints every row's resting cards, then the focused tile last).RowStyle::max_scroll.Intended behaviour changes on Home are the shared rules only: a restored focus arrives popped, a landing that moves the focused card carries pop and scroll with it (clamped to the row's range), and the item-menu anchor is the shelf's rect. One side effect: cards more than 64 px off screen no longer register pointer stops.
SHAPEis byte-identical andSCREEN_SHAPES_PINis unchanged, so the replay fixtures stand as recorded.Verification
make check:==== check: 76 steps — all ok;cargo check --lib --no-default-featuresclean;make check-replay:3 fixtures, 6 replays, 0 failures(1-boot-home-chip-gridverdict=SAME).Not verified: nothing here ran on the television, and mid-dive frames could not be captured deterministically in the simulator. Sideways scroll on the third shelf was not compared.
🤖 Generated with Claude Code