Repository navigation
Cards: every released grid card lands on its own spring, so a held key no longer snaps the card it left - #866
Merged
Merged
Conversation
…Spring::land #861 gave a shelf's released tile one landing rule, `Spring::land` (within LAND_REL of rest and no longer travelling, then exactly at rest), called from `CardRow::update`. Two card surfaces still settled by thresholds of their own: - `GridPop::tick` dropped the let-go at `pos < 1.003` with no velocity check, ~25x LAND_REL, so a released poster stepped ~0.9 px in width (0.44 px per edge) and ~1 luma level of shadow in one frame while the spring was still falling; - Detail's Episodes strip (`episodes::Cells`) never landed a released cell (`Spring::step` parks it one ulp above 1.0), and `draw_cell` gated the lifted treatment on `scale > 1.001`, which dropped the cell to its resting rect and treatment ~0.64 px wide and ~0.9 luma of shadow early. Both now settle through `Spring::land` with their constants and targets unchanged: `GridPop::tick` clears the let-go when it lands, `Cells::step` lands a released cell, and `draw_cell` draws at the spring's scale while `pop_factor` is above exactly 0.0 (the rule `widgets::pop_factor` documents). Red first on 3882f6e: the let-go left the shrink list at 1.002676, travelling -0.00067/frame, a 0.00268 step against the land epsilon 0.00012; the released strip cell parked at 1.0000001 and a 1.0004 cell drew 420 wide against its spring's 420.168. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Holding Right on the Library poster grid snapped the card still letting go,
3.8-5.4 px per edge (7.6-10.8 px of width, shadow luma 7-9) in one frame on
every re-press, because GridPop kept ONE let-go slot and cards/pool.rs
ShrinkKey followed one let-go: a new press replaced the card that was still
shrinking, so it jumped to rest. Rows never did this: CardRow keeps a spring
per cell and lands each by Spring::land.
GridPop now keeps a sparse list of let-gos, each { cell, key, spring }: only a
card off rest holds one (a settled grid holds none), each lands by
Spring::land within ~28 frames of its release, and nothing is capped by
count. A grid has thousands of cards, so a per-cell array as CardRow's is not
an option, and the pool must not hash or scan them all: the pool now follows
every let-go by its element (one hash per let-go in flight per tick, the
+-SEARCH window searched only for a let-go whose element moved), a fresh
let-go is moved by move_new_let_go so a keyed entry in its cell cannot
mis-route it, and the draw path (let_go_drawn) resolves each let-go by
element too. A let-go whose element left the mounted window is dropped.
Also: a card pressed back while its let-go is in flight picks the spring up
where it is instead of restarting from rest, and adopt no longer drops the
other let-gos in flight. The canon bytes of grid.write_pop are those of the
single slot for at most one let-go, so the replay anchors keep their bytes.
Tests: a held key over the grid (presses faster than a let-go lasts) moves no
released card by more than the land epsilon on any frame; a turnaround picks
each let-go up where it is; the pool follows every let-go through a landing;
the canon of one let-go is that of the single slot.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…he let-gos by cell Review of 5b16f20 (SHOULD 1-3, nits): - A press over cards that shifted since the last tick (a landing and a key in one frame) could hand the card it named the let-go of the card it left: GridPop::arm released the pop's card at the pop's OLD cell, keyless, then took the let-go of the new index, which a shift of one makes that same cell. The released card was drawn at rest for a frame and the named one grew from the other's near-full spring. The pop now carries its Card (cell + element), every let-go is born with the card it was released from, and a let-go is taken up by element, so a let-go is never without its element: move_new_let_go, key_let_gos and note_let_gos are gone. The landing rule's carry of the focused card (pool::slid, any distance) reaches the let-go through follow_let_gos' `carried`. - A draw hashed every drawn card, per site, every frame while any let-go existed. pool::let_go_cards verifies each let-go's own card once per pass (one hash per let-go in flight, none when settled); the cards are then read by cell, and only a frame that finds a let-go moved resolves every card by element, as before. - follow_let_gos moves the cells in place (no allocation on a landing tick) and searches nearest cell first within SEARCH (find_nearest_within, the helper find_nearest is now a case of); GridPop::reset keeps the let-go list's capacity across a dormant wake and forget_pop, so a press allocates only when more cards let go at once than the grid has had. mod.rs's allocation sentence says so. - Tests: the reviewer's remove-before-focus and insert-before-focus cases (red on 5b16f20: the released card drawn at 1.0 against its spring at 1.087), a draw that asks the source no more than once per let-go per pass (94 asks against 36 at rest on 5b16f20), the landing test now asserts the let-go cells after the tick (it passed with follow_let_gos a no-op), the held-key tests derive their bounds from the walk, and the canon test pins the layout from literals. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ement (unit test) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
- GridPop: the field is `let_gos`, the focus-changed tick seats the new card through `adopt` instead of a fifth copy of "take, then seat", `write` encodes a slot through one closure, and `Pop` / `LetGo` drop derives nothing used. - pool: `find_nearest_within` no longer hashes the cell it starts from twice, `let_go_drawn` loses a guard its only caller (after a `ByElement` verdict) can never reach, the module and `CAP` docs say once what GridPop's doc says. - cards/mod.rs: the Idle allocation sentence says the same thing in four lines. - detail/episodes: `Cells::step` names `held` once; comments narrate the rule, not the code it replaced. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…k rule `stands_at` is the check `find_nearest_within`, `slid`, `RowPool::follow` and `let_go_cards` each spelled out; `drawn_among` is the rule `RowPool::drawn` and `let_go_drawn` each carried a body of (the spring of the cell an element was held in, rest where a held element no longer is). The new grid tests read a card's scale through the harness's `scale`. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…shape says so
GridPop::write wrote the pop, then either one empty slot or one slot per let-go with no
length prefix, while LibraryGrid::SHAPE still declared a single `shrink` slot. With two or more
let-gos in flight (any held key on a grid) the canon no longer matched its declared shape and was
not self-delimiting: one let-go followed by a let-go-shaped continuation hashed exactly like two
let-gos.
Write the pop, then c.seq(let_gos.len()) and a (cell, spring) per let-go, and declare it
(`let_gos:[(index:u32,sp:Spring{..})]`). SCREEN_SHAPES_PIN moves for that reason alone.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… shape SCREEN_SHAPES_PIN moved (LibraryGrid declares `let_gos` where it declared `shrink`), so the committed anchors were refused on load. A build with the new GridPop::write and the old shape text replays all three SAME with every counter zero (none of the flows mounts a grid), so the bump moves the fingerprint alone. Recorded afresh on the committed tree and installed with `plxnative-rec rerecord`, anchors retained. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GridBands::write has written each open band's card (c.option(s.card, ..)) after the row and the spring since the Library redesign (#843), while LibraryGrid::SHAPE declared the slot as `(row, sp)` only, so the declared shape did not describe the bytes the canon hashes. Declare the slot as `(row:u32,sp:Spring{..},card:Option<u32>)`, in write order. The Collection and Watchlist grids name `bands` symbolically and did not change. SCREEN_SHAPES_PIN moves for that reason alone (0x0803_2f8d_c828_6d70 -> 0x6b71_df9e_04db_2b76; the pin test failed on the shape edit first). A unit test pins the bands canon from literals in the declared order. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…eclared shape SCREEN_SHAPES_PIN moved (LibraryGrid declares the card its band carries), so the committed anchors were refused on load (six replays). A build of the same tree with only the old LibraryGrid shape text restored replays all three SAME in Targets and Resolve with every counter zero and diverged=0 (none of the flows mounts a grid), so the bump moves the fingerprint alone. Recorded afresh on the committed tree and installed with `plxnative-rec rerecord`, anchors retained; the manifest diff is the state_fp line only. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GLinnik21
added a commit
that referenced
this pull request
Oct 20, 2026
#866 per-card grid let-gos) into crx-grid-reveal Both sides' behaviour is kept in every conflict: - ui/poster_grid.rs: the branch's title-handover test next to main's GridBands canon test and the `at` helper (#866). - ui/cards/grid.rs: #866's `self.pop.reset()` where the branch's side built a fresh GridPop, with the branch's band comment. - ui/cards/tests.rs: the branch's title_only/details_only Cards fields beside #866's elem_calls counter. - screens home/recommended `probe_card_pops`: main's (#864) versions; the branch's copies came from an earlier draft. - app/bridge_test_support.rs: main's sole_card_off_rest / home_focused_item / home_card next to the branch's `poster_cell`, and `card_pops` stays `pub(super)` because the Under posters shelf route test reads it. The semantic join: `Grid::rise_below` (the drawn top of the tile below a caption line) reads that tile through `drawn_rect`, which now takes the pass's `LetGoCards` and goes through `pop_in`, the one resolution the draw paints with after #866. A released card still shrinking below a caption (a let-go) is therefore drawn above its rest top in the caption's rule too, by element when the source moved since the last tick, and `card_paint` / `rise_below` / `drawn_rect` share the pass's single `let_go_cards` answer (the frame's hash budget, `grid_draw_hashes_no_drawn_card_while_cards_let_go`, is unchanged). New test `no_caption_line_is_drawn_where_a_tile_letting_go_below_it_is`: a held Down then a held Up (a press every three frames), every caption line against the live drawn top of the tile directly below it, with a check that the walk really leaves a let-go under a line. Watched red with `rise_below` reading the tile below with the let-gos left out (worst overlap 7.8 px), green on the join. Replay fixtures: main's are the base (the three anchors as #866 re-recorded them) and the README keeps both sides' paragraphs in order. The anchors are re-anchored on this merged tree in the next commit. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GLinnik21
added a commit
that referenced
this pull request
Oct 20, 2026
…rn once on the merged tree The merge of origin/main (#863, #864, #866) into crx-grid-reveal kept main's fixtures as the base. On the merged tree `make check-replay` found 6-settings-family SAME (frames=1321, diverged=0, every counter zero, Targets and Resolve) and two anchors that no longer match, with the shape unchanged (state_fp 2896094977091175041, so `rerecord` refuses): - 12-filmography-detail-return: DIVERGED in both modes, diverged=884 of 923, present/input/result/ land/effect/focus/hit diffs all 0 (a pure state-hash divergence, no visible counter). Attributed by replaying the committed anchor against the merged tree with only person.rs put back to origin/main's (filmography labels through the one caption policy, the air under a shelf as StackPage::shelf_foot instead of Sec::Gap(kind)): SAME, diverged=0, every counter 0, Targets and Resolve. The fresh recording holds the same 136 metrics (text measurement) queries as the old one. - 1-boot-home-chip-grid: diverged from frame 296, then REFUSED (replay measurement table miss) in both modes, because main's recording predates the Under posters captions this branch carries. Attributed from the measurements themselves: the metrics records of the fresh recording differ from the committed one by exactly one gained Width query (Home's focused poster caption "1992 . 1h 40m", 24 px) and three lost (the year alone and the two synthetic title names). The owner approved re-anchoring for intended UI changes (README 2026-09-29/30 entries; the standing instruction not to stall on it). Both anchors were recorded afresh on this merged, committed-source tree (tests/focusfp.sh --rec --only 1,12), passed `plxnative-rec check` (synthetic) against the unchanged alphabet, and only rec-0000.jsonl was replaced; the manifests (anchor flag included) are byte for byte the committed ones and equal the new recorder's header. README paragraph added. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GLinnik21
added a commit
that referenced
this pull request
Oct 20, 2026
…shows only once its room is there, and Home rests like the Library (#859) The owner, after #843 on the TV: the Under posters setting applied only in the Library; it should apply on Home and Recommended too ("Seasons tiles left without title", "Search does not follow new tiles rule", the account chip over a Home heading). - Settings > Libraries > Under posters is global: every poster tile reads it through one builder (screens/src/registry/captions.rs): Home and Recommended shelves, the Library grid, Collections page and Collection screen, Search poster rows and filmography, Detail's Related and collection shelves, the Watchlist. Landscape stills and headshots keep their own fixed labels (one shared still label). - A line the setting turns on is never drawn empty: each kind falls back to an identity (season title / "Specials" / "Season N", "S1 · E3", year, collection size, then a kind word); Continue Watching keeps "8m left" and the amber play mark rule; one episode address spelling. - A caption line is on screen only once the room under its card holds it, on the grid and every shelf alike (card_row.rs room_for / line_reveal_for; band_fade, band_reveal, band_reveal_for removed). The room is measured to the DRAWN top of what is below: the popped, pressed or still-shrinking tile on a grid (Grid::rise_below with #866's let-go scales) or the next shelf's lifted heading (SectionFrame::below_rise from Home, Stack, Recommended, Detail). This fixes the next row cutting the grid caption on Down (on main since #843; Collection and Watchlist too). The Person page carries its shelf air as Search does (shelf_foot); every owner keeps UNDER_LABEL_AIR under a shelf, pinned. - Home's rest rule is the Library's (grid_rest_scroll): the focused shelf's heading rests in one place, clear of the account chip; headings under the chrome fade; every Down/Up moves a full shelf. - Fixed along the way: the Library Episodes listing's label no longer covered by the next row; an untitled item is still a card (one pms::shelf_card); a season 0 tab reads "Specials". Tests on the app-tier World rig and the card suite, each watched red (surfaces x settings, band heights, Home chip/nav clearance, a setting changed under a kept Home, the held-Right glide, released posters at exact rest, no caption line where the drawn tile or a let-go tile below is: 11.9 / 8.5 / 7.8 px red, the default policy monotone, the two-shelf walk, band 0, the shelf after an empty one, the Person page, the pinned air). Gates on the committed tree 48c8751: make check ok (1840 largest, plx_screens 1641, plx_ui 1305), hostsim 969/0, check-nodef clean, check-replay 6/0 SAME on three runs. Replay anchors re-anchored for the intended changes (owner-approved): Home for the captions and #861's exact rest, then 1 and 12 once on the merged tree with attribution (Person pixel-identical outside the caption box on 4350 frames; Home's streams equal but the caption measurements). Simulator every-frame evidence for Home, Recommended, Search, Detail shelves, Library grid 112/80/0, Collection, Watchlist; reviews: code audit, combined review, the design team three rounds (0 blockers), one review of the reveal, simplify, doc-claim audit. TV (release, panel on, muted, mock): held paging and deep walks at 58-60 fps. The owner looked at it on the TV and approved it ("I like it"). 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.
On the Library poster grid, a held Right made the card you had just left snap 3.7–5.4 px per edge. The grid kept ONE let-go spring, so each press threw away the card still shrinking. A released grid card could also stay one ulp above rest. This branch puts the grid, and Detail's Episodes strip, on the landing every shelf already uses (
Spring::land, #861). Every released grid card keeps a spring of its own until it lands.What changes for a user
How
GridPopkeeps a sparse list of let-gos. Only cards still off rest hold one, each lands bySpring::landin about 28 frames, and the list is bounded by time, not capped by a count. Each let-go is born with its element, and a press back onto a card picks its spring up where it is. A shelf'sCardRowdoes the same.GridPop::resetkeeps the list's capacity across a dormant wake, so steady-state frames allocate nothing.Spring::land, in the orderCardRowuses.LibraryGrid::SHAPEnow declares it.SCREEN_SHAPES_PINis bumped.diverged=0, every counter 0. None of the three flows mounts a grid.Verification
14.97 px width step.205 lets go from 1.09: it is drawn at 1, the spring is at 1.09.follow_let_gosa no-op.asked the source 94 times against 36 at rest.git status --shortempty before and after):make check:103 steps — all ok, 29test result: ok, largestok. 1840 passed; 0 failed;make test-hostsim:ok. 938 passed; 0 failed;make check-nodef: clean;make check-replay:3 fixtures, 6 replays, 0 failures, all SAME.Not in this PR
CardSource, which is new shared machinery.K_SCALE320). Moving it ontoCardRowchanges its feel, so it waits for the owner.🤖 Generated with Claude Code