Skip to content

HUD plugins: the More fold - #1194

Merged
GLinnik21 merged 50 commits into
mainfrom
hud/pr9-more-fold
Nov 1, 2026
Merged

GLinnik21 merged 50 commits into
mainfrom
hud/pr9-more-fold

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

  • The More fold. The compiler already computed which commands a HUD package places in no reachable state (R2). Compiled::folds() now carries that list, and More's root lists a row for each, after Quality and Speed and before Options, in the compiler's order. A row is more_menu::Action::Hud(HudCommand): OK closes More first and asks the app's one performer (PlayerReq::Command), never a second path. A row is listed only when the app's own predicate for its command holds (HudCommand::enabled over this frame's model), so a movie gets no Previous or Next row. open_tracks folds as one row that opens the track menu on Subtitles. Classic folds nothing and builds the root it always did.
  • A section only a fold row opens is compiled. The rules' graph (R1-R4, the fold computation) is unchanged, but the compiler now also walks the state a folded section row reaches (explore_with_folds). Without it the page had no state to draw for Chapters or Info in a package with no opener (found by the section pin below, red first).
  • Menu room. A folded root is taller than the Quality page from its fourth row, so more_menu::need_h(folded) (344 px, plus 24 and 60 a row, never below the 600 of the tallest page) decides the placer's side, live and in the HUD menu lint, which asks it at every fold count a package can reach. New invalid case on the minimal package: exactly HUD-E1302.
  • open_more {page: speed} (item 3 of the brief) was already done by PR3 (OverlayKind::More { page: Option<MorePage> }); pinned by the_more_popover_mounts_on_the_speed_page_when_addressed_to_it and the performer test. Not touched.
  • Strings. One new key, widgets.menu.previous_episode, in all eleven catalogs. Next reuses widgets.next.episode, the track-menu row settings.audio.title ("Audio & subtitles" in each language), the sections their tab labels and the Info actions their button strings. be: Папярэдняя серыя, checked on skarnik.by (папярэдні = предыдущий) and verbum.by (feminine папярэдняя); серыя is the catalog's own word.

What was proved

Each red first (the failing assertion observed against the missing or mutated behaviour):

  • classic folds nothing and its root is unchanged (keys, labels, height equal to the unfolded menu);
  • a package with no previous/next folds both on an episode and shows neither for a movie, and no Next with no next neighbour;
  • the reference folds from_beginning and go_to_detail, labelled with the Info card's own strings; go_to_detail is absent with no page to go to;
  • a package that places no section opener reaches Chapters and Info through the fold rows on both policies, and the section opens, seats its first card, walks, and closes on BACK (modal and inline);
  • OK on a folded row dismisses More and then asks PlayerReq::Command (key and click), nothing else; the app test drives the track-menu row to the track menu on Subtitles, with the one performer;
  • the seed rides the mounter once, into the next More only;
  • fit_report (cap, app fit, hugged) over More's root with all seven folded rows, both Go to readings and every quality readout, in all eleven shipped languages, nl included;
  • the root's height formula equals the real table's for 0..=7 folded rows; the lint's E1302 case fails at five folded rows and not at four.

On the television

From a release build of this head, on the mock, muted, with the mock's identity confirmed before any key:

  • The minimal package (only open_more). On a film More's root reads Quality, Playback speed, Audio & subtitles, From Beginning, Go to Movie, Options, Stats for nerds, and opens beside its opener. On an episode with neighbours Previous Episode and Next Episode come first and Go to reads Go to Show: eight rows, the tallest root, no row scrolls.
  • OK on Audio & subtitles closes More and opens the track menu on Subtitles from the same opener. OK on From Beginning restarts the item and it plays.
  • The reference with its two section discs removed. More lists Chapters and Info. OK on Chapters opens the strip with its first card ringed, Right walks and the long name glides, BACK closes it and focus lands visibly on the bar.
  • Classic. More reads Quality, Playback speed, Options, Stats for nerds, at the place it always opened.
  • The failure read-out. Change quality opens the Quality page, and BACK shows a root of Quality, Playback speed, Options, Stats for nerds: no folded rows.

Not looked at on the panel: the folded rows in be and the other languages (fit_report is clean on the shipped measurer, in all eleven), and go_to_detail from the fold on the set (its performer is pinned in a test).

No issue tracks the HUD-plugin work; none was opened for this PR.

Review

Verdict was MERGE with five MINOR findings; all five fixed, each in its own commit.

  1. The failure read-out's More listed folded rows (fixed, red first: a_failed_playback_seeds_no_folded_rows_into_more listed Audio & subtitles and From Beginning). PlayerScreen::more_folds answers nothing while readout_owns_frame(busy), the state the page already holds; a loading playback still folds. No new flag.
  2. The section pin skipped More (fixed). New app-level test a_section_no_control_opens_is_reached_through_more_and_back_leaves_focus_on_a_drawn_control, both policies: open More, OK on the Chapters fold row, More is gone and the engine holds the strip's first card, not the gear; BACK closes the section. With no opener disc close_section's own rule (opener, else the latest section, else the scrubber) lands on the scrub bar, which the package draws and the compact state focuses; pinned (ELEM_SCRUB, GROUP_SCRUB). That already held, so the test was green when written and is a pin rather than a red; no change to close_section was needed, and More's opener is not needed as a fallback here. The package edit is one test-support helper, loaded::reference_without_openers_for_test, shared by both tiers.
  3. No positive go_to_detail test (fixed): go_to_detail_leaves_playback_for_the_playing_items_page sets a detail_rk, performs the command, and reads the Detail page for that rk on top with the player gone.
  4. Test-only overlay constructors (fixed): new_with and new_anchored removed; new_folded is the one constructor (the test-only new calls it), the two anchor tests call it with their anchor, and the doc says what it takes.
  5. Stale performer doc (fixed), with the docs audit's six items: the design's description of apply_more_action, the lint's and NEED_H's room docs, FoldedRow's label source, the room paragraph's need_h arithmetic, and the PR9 goal's key count. Each replacement checked against the code.

Checks re-run on the committed tree: make test-crate C='plx_appkit plx_screens', C=plxnative-modules, make test-hostsim, make lint, make check-nodef, the static gates and the plain per-crate cargo check --lib, all green. origin/main was not merged: this branch is stacked on PR8 and the coordinator restacks it.

🤖 Generated with Claude Code

GLinnik21 and others added 30 commits October 30, 2026 21:13
A pure move: the packer, its tests and the outlined badge it draws through
now live in chip_row.rs so the HUD renderer's facts cell can share the one
tail-first fit with the Info card. No value or pin changed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…el start

Three extensions made in place for every caller (docs/hud-plugins.md D11):
Shelf::new takes the RowStyle by value instead of &'static, so a strip of
package-sized cards can be built at runtime; RowStyle::rim paints a ring over
the focused tile for strips laid over the video plane; RowStyle::label_start
lets a label block start at the card's leading edge instead of centred. Every
shipped style keeps rim None and Centre, so no other shelf paints anything new.
Call sites change mechanically (a deref or a dropped borrow).

Also pins rect.h and text.leading's bounds in the parser, which the descriptor
table and the compiler already carried.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…er places the strip's top

The renderer's walk over a compiled state gains the arms a section needs: ground, rule, icon, image
(`info.still`), the section texts (`info.title`, `info.summary`, the two tab labels), the `facts` row and the
`actions` buttons. They live in `player_hud/sections.rs`, read the item through `info_panel::info_content`
(the one reading the hand-written card draws from too) and draw through the shared TextView, chip row and
Button, never a second renderer. HudModel is Copy and cannot hold the rows, so chapters and info read from the
frame's MetadataView. The gate that hides the compact state's ops when the transport is hidden now hides only
that state, so an open section's ops draw whatever the transport does.

The compiler's strip-top placeholder: classic's `item.start` text takes a one-pixel leading, so the box height
is the same under every measurer, and the chapters tab's gap is 42 (949 - 684 - 223); the compile test pins the
strip's first card to `chapters_panel::card_rect` under the fixture and the shipped measurer.

`info_panel` splits the card's reading and its chip row out of `InfoPanelState::draw` (`info_content`,
`FactsShape`, `info_chips`) so the renderer and the card share them. `widgets::hairline_in` is `hairline` in
a given ink. The Strip op still draws nothing: it needs the Shelf, which paints through a host-generic frame the
render walk does not have yet.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…om the real heights; the section's focus pop and selected tab

The Info section's [title, synopsis, tags] now lays out exactly where the hand-written card puts it: the
compiler records the vstack as an op group (worst-case rects unchanged for lint, Cost and the census), and the
renderer restacks it through the shared VStack from the wrapped heights, absent children collapsed. The
section's buttons pop on GROUP_SECTION and an open section's tab reads selected from the state's own bits.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ction is open; pins for the group's rect and the static package vstack

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…bel block at its own drop

A rimmed tile rang at radius * s, so the ring's corner grew with the pop while the card it frames kept
its radius; it now rings at the style's radius (a circle keeps half its width), and the draw census
records a ring's radius in its own log (capture_rings), so the frozen census hashes do not move.
RowStyle::label_drop hangs the focused label block that many px under the unscaled card and shows it
whole (no band opens for a strip with nothing under it); every shipped style leaves it None.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… held with the HUD's motion

draw / draw_state take the DrawFrame the screen already has (PlayerScreen::draw_hud passes its own); the
Strip op becomes the Shelf's RowStyle (card, pitch, corner, the CARD_FOCUS_SCALE pop, the 2.5 px rim over
the video plane, labels from the card's leading edge, the name hung where the op stands it), and the
playing item's chapters become its cards. The focused name is the Shelf's label block (it glides when it
does not fit); the time on every card and the name on an unfocused one are the source's overlay. The
screen does not switch to a chapters state yet, so no frame the app shows changes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…en strip (runs, ring rect and corner)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Painter::rring called draw_census::note_ring without the cfg its sibling
calls (rrect, ...) carry, so every build without test-support failed to
compile plx_ui (sim, armv7, clippy). The ring log exists only for the
census; gate the call the same way.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…lookup, section and strip addressing, the package's policy)

The frame state, the geometry report and the row's stops take the open sections' bits, and an open
section is looked up over the discs whatever the slot (D7). Section buttons and the Chapters strip get
element ranges of their own (the strip's cards move to the top of the id space so no card can be
mistaken for the scrubber or a tab), and the screen reads the strip's geometry, its cards, the
chapter that holds the shown position and the control that opened a section from here, so the draw
and the screen cannot describe two strips. The compile carries the package's section policy.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…age's own sections

The player page owns `hud.sections` (a `Sections` value, latest first) and the package's policy decides how a
toggle lands: classic's sections are modal (the page takes the middle of the transport, Down off its bottom puts it
away and seats the tab that opened it, BACK closes the latest), the reference's are inline (the page opens below the
row, Up/Down travel between them, BACK lands on the disc that opened it).

- `toggle_section` is a typed event: the shared performer addresses the page with `AppMsg::HudSection`, and the page
  opens or closes the section and seats its own focus through the FocusEngine. A tab's OK or click asks for the
  command instead of `OpenOverlay`.
- The Chapters strip is the real `cards::Shelf`: the screen's Tick steps it, its focus moves lift and scroll it,
  a committed press is `CardEvent::Activate` (seek to the chapter, close), and `record_stops` registers the rects it
  paints. Info's two buttons are `GROUP_SECTION`; the strip is `GROUP_STRIP`.
- A Skip or Up Next stand-in draws only with no section open (D7): the page reads the discs while one is up.
- A failure takes the frame outright and closes the sections.
- The chapter strip's element range moves to 0xF000_0000: at 0xFFFF_0000 it was the container tab strip's
  namespace, where the dispatcher gives a key to no group and the engine could not move off a card.
- The pins that asserted `OpenOverlay(Info|Chapters)` for a tab's OK assert the toggle command, and the pin tests
  run the real dispatcher with the rig performing the toggle: the modal Down-to-tabs and BACK sequences, the strip's
  Left/Right and OK, Info's buttons, the stand-ins, the failure, and the reference's inline travel and stacking.

`OverlayKind::Info` / `Chapters`, the heartbeat word and the replay shapes stay for stage 2b; nothing reaches the
overlays for these two kinds.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… in a comment, not a string

ci/check-localization.py reads an assert message in non-test code as app-owned text.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…starting close the sections, a disabled Info button still closes, the countdown waits behind a section) and the prose the change made false

FAST-FORWARD and REWIND reach the screen as Left/Right with alt set; jump_key ran before any section
check, so a film with a length began a scrub of a bar the page had taken the middle from and committed a
real seek under it. A modal page now swallows them, as the overlay's panel ignored them (red first:
CommitSeek(10 s) was asked).

An app switch or decoder park closes the open sections through the same toggle event the performer
delivers (it closed the Info card and the Chapters strip as overlays); an in-place auto-advance restart
drops the strip and re-seats the engine. A press on a disabled Info button asks nothing and still closes
the page. The Up Next countdown's bare-transport input is false while a section is open (D7). Opening
Info seats its first action only when the package places one.

Doc comments and docs/remote-keys.md that the switch made false are corrected.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…aves the ring on its disc

The pin had asserted GROUP_SECTION for a ring seated on an element no group registered.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…panel cadence

The overlay's strip admitted one step per PANEL_REPEAT_MS; the remote streams
Edge::Repeat at roughly 50 ms and a list walked at that rate reads as a blur.
The strip became part of the player page and lost the pacing, so a held
direction ran at the remote's rate. PlayerScreen carries a RepeatGate (the
type the overlay's panels pace with) that the Left/Right shortcut applies to
the strip group only: the press rearms it, a repeat inside the window is
swallowed. The gate is timing state, not written to the canon, so no replay
shape changes.

Pinned red first: a press plus four repeats inside 110 ms stepped five cards.

Also rewords the transport field doc and the run.rs bare_middle comment: the
flag is false only while the retained Info/Chapters overlay is presented,
which no live path does.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Each section gets a PopoverMotion in HudMotion, pointed at HudState::sections and
stepped at the screen's tick. A presented mask (open plus fading) drives paint; stops,
groups and keys stay on the logical mask. Everything a section paints is one faded and
raised layer; an inline package lifts the ops above it by the compiler's own geometry.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…e package's ops stand

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Two textual conflicts, both resolved by keeping both sides:
- ui/src/cards/mod.rs: the `card_row` re-export keeps this branch's `Rim` and main's `SortValue` and
  `SORT_VALUE_*` items.
- screens/src/player/mod.rs: `row_primary` keeps main's `pub` and its doc (the FocusEngine's re-seat
  lands on it) with this branch's body, which reads the discs through `eff_slot` and the open sections.

Main's BACK-dismisses-an-offer arm (#1161, #1187) sits below the section arm of the BACK ladder, so a BACK
over an open section closes the section and never retires the offer under it; a test pins that for the
modal and the inline policy. Dutch (#1160) is covered by the SHIPPED-driven tests and goldens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On main the Info card and the chapters strip drew from their own cursor, so the
focused item kept its highlight while the whole panel faded. The sections read
the page's focus, which has already gone back to the control that opened them,
so From Beginning cut from white to dark and the chapter card lost its ring and
label ink on the first frame of the fade.

The page records the section's focus as it puts it away (every path that
closes one, and the modal swap), the motion holds it until the section has
gone, and the renderer paints it: the Info button as focused with its pop kept
stepping, the strip through a new Shelf::paint_held that names the focused card
and leaves every other caller's frames alone. A fading strip with a held card is
not ticked, so its pops stay as they were. The held focus is paint only: no
stop, no key and no hit rect.

Red first against the old panels at appear 0.25, 0.5 and 0.75: the ring and the
label inks of the strip, and the glow, label ink and glyphs of the Info card.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… path

Stage 2a made Chapters and Info sections of the player page and left the old
overlay machinery behind, with no production sender. It goes now:
OverlayKind::Info and ::Chapters (and their Panel variants, Focusable arms,
canon, scrim and word), PlayerReq::{ArmInfoPress, Info, FocusTabs}, the app's
commit_info_press / apply_info_action and the run.rs arms that read them. The
overlays left are Tracks, More and Timing; their slots are renumbered 0..3.

PlayerScreen::transport is gone with the only fact that ever cleared it (the
Info/Chapters overlay being presented): the middle of the transport is withheld
by an open modal section alone (middle_up), and run.rs hands the page nothing.
The page probe line drops infolast=, which read the removed card's cursor and
had no reader.

The panels' presentation code and its tests stay for stage 3's identity proof.
Tests that exercised a removed path are ported to the section path or removed
with what they pinned: see the stage 2b handoff. The heartbeat's overlay-word
gates (app::words) stay red in this commit by design; the next one settles the
word.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the overlays gone, `overlay=info` and `overlay=chapters` are words nothing
prints, and the `info-panel` and `chapters-panel` fps scenes that selected on
them would read on the television as "scene never entered this screen". The
app::words gates caught it: `scene info-panel: overlay word "info" is not in
the table`.

A section is the player page's state, not a surface, so ` overlay=` keeps
meaning the topmost modal surface (`none` over a bare player) and the
heartbeat gains ` section=<chapters|info|chapters_info>` right after it, only
while a section is open (words::section_word, the logical set, in a fixed
order). The two scenes pin `"overlay": "none"` and a `"section"` key, which
tests/run.py's select_section applies to the heartbeats they grade, so every
parser and gate keeps its signature and every other scene reads the lines it
did. Host tests grade the word table against the real page, the manifest's
section scenes against that table, and the harness filter against synthetic
heartbeats. Only a run on the set can show the scenes enter.

The docs that name the line's grammar, the manifest comments, and the spec's
"Unverified" entry follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The second held press ends on card 3 because the press steps once and the
repeat at 150 ms is the only one admitted after it: the gate (110 ms, rearmed
by the press) re-admits at 260 ms, so the repeat at 200 ms steps nothing. The
assertion was right and its message named the 200 ms repeat as one that moved.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The routing for the strips' and the Info card's stops has been the engine's
since stage 2a (a hover parks focus through the hit map, a click arms the press
and its commit is spent by the page), but only keys were pinned. The pins drive
the page's own stops as the last presented hit map and a pointer event through
the dispatcher: a hover focuses the card or button under it and asks the app
for nothing, a click on a card seeks to its chapter and puts the strip away, a
click on a button performs its command and puts the page away. The button-up is
what the app makes of it, an Ok key on the Up edge.

They passed first time: the routing is as it was written, nothing to fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e card's did

The compile kept every fill clear of the next cell's focus pop, the Info card's
buttons included. The hand-written card ran its text to 34 px short of the
buttons' REST edge (964 px in English), so the section's synopsis column was
12.32 px narrower and the real face broke and ellipsized a long synopsis one
glyph earlier (`her...` against `her....`), found by diffing the simulator
frames of classic's Info state against main. An `actions` column now stands as
placed; a segment of controls still reserves its pop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…urface did

Three differences from the panels, each found by diffing the in-between frames
of an open and a close in the simulator against main:
- a closing section left the presented set at appear 0.02; the panel's surface
  was pruned at the spring's rest, so its last few faint frames were drawn;
- the Info buttons' pop springs outlive the card, and a button popped by the
  last opening reopened one ULP off rest (an edge pixel one level off);
- the fade began on the frame of the BACK that dismissed it; the surface's
  spring stepped ahead of that frame's keys, so the first step was the next
  frame's. The page now records the frame a section was dismissed on and its
  spring skips that frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
RowStyle::tile_radius grew every style's card corner with the focus pop. The rim
a style may carry already rings at the fixed radius (the card it frames keeps
its radius), so on the HUD's chapter strip the card ground, at 10.7 over a
ring of 10, showed past the ring's arc at every corner: 87 pixels of up to 17
levels against the hand-written strip, found by diffing simulator frames. A
rimmed style now keeps its radius; no other style carries a rim.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21 and others added 19 commits November 1, 2026 08:16
…d with

The panel stepped the focused card's pop at 300 and its scroll at 220; the Shelf
the strip moved to defaults to 320 and 170. The strip's RowStyle now carries the
panel's constants (the style already has the two fields), so a card pops at the
pace it always has. Found by diffing the first frames of an opening strip
against main in the simulator: the card was part-way up its pop ahead of the
panel's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ing edge

The strip's label went through the Shelf's default window, which reaches into the
room to the right of the card up to the panel edge. With the strip's names kept
under every card, a long focused name glided under the next card's name (found
by rendering one in the simulator). The label is now held to its tile
(TileLabel::within_tile, the Collections page's mechanism); a row that starts
its labels at the card's leading edge keeps a name that fits there instead of
centring it in the tile window, which no other row does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…'s card did

Instrumenting both builds on the strip's opening on the first card showed the
appear spring identical frame for frame, and the panel's card popping 1.0 to 1.07
with it, where the Shelf adopted the page's seat at the full 1.07 from the first
frame (a seat is adopted whole unless the move was deliberate) and stepped on the
held frame: 173 px tall against 168 at the sixth frame. A RowStyle may now ask
for its adopted seat to grow from rest (seat_grows; no other style does), the
strip's does, and the Shelf's Tick follows the section's appear spring instead of
running ahead of it while it is held.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n numbers

chapters_section and info_section drew ChaptersState and InfoPanelState as
their reference. The numbers they compared are now literals in
render/tests/panel_goldens.rs, read off the two panels at 6d4aded: every
run's geometry, ink and alpha, the focused chapter's ring, the card's ground,
glyphs and fills with their alpha, at appear 0, 0.25, 0.5, 0.75 and 1, and
the closing frames with their focused item. The tests' own comparisons are
unchanged, so what failed against the panel still fails against the golden:
nudging the strip's label drop by one pixel fails three chapters_section tests
and scaling the section's rise fails the Info appear and fade tests. The panels
are not read by these tests any more.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The HUD's Chapters and Info sections draw both; nothing in production read
the panels' presentation once the screen switched. Gone: ChaptersState with
its draw, update and focus write-back, the CH_* layout constants strip::Geometry
replaced (CH_FOCUS_RING_W stays, the strip's rim reads it), ChaptersPart and
its step_index/clamp_index/card_rect/label_ys/strip_extent, chapter_count;
InfoPanelState with its draw, InfoAction, InfoPanelPart, card_items, the
classic FactsShape constant and its genre cap. chapters_panel.rs keeps the
one read of the playing leaf's chapters; info_panel.rs keeps what the Info
section reads (info_content, info_chips, actions, FactsShape, detail_rk,
playback_now) and the card's rect and button column.

The tests that read the panels went with them. Each pin that still describes
shipped behaviour already has a section-path test or a golden behind it; the
trailer-parent pin moved to detail_rk and is_episode, the button column pin
stayed, and the compile tests compare against the panels' layout as literals.
check-placeholders follows the Info still to sections.rs, and the deleted
genre cap leaves list-caps.ini. About 30,400 non-space bytes net.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ot a toggle each

WILL and DID both reach park_playback in one drain and the first park keeps the
URL, so both saw the section open and each queued a toggle; the second toggle
reopened what the first closed, and the viewer came back to a film held under
the Info card. close_player_sections now delivers AppMsg::HudSectionsClose, which
the page answers by closing whatever it has open, so a second one finds nothing.
No other caller derives toggles from the current set. Red first:
parking_twice_in_one_drain_leaves_the_sections_closed failed against the
toggles; the page-level pin covers both policies and both sections.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
step_strip skipped the Shelf's Tick for a strip fading out on the card it was
on, because a plain tick, with the engine's focus gone, lets that card go. So
BACK a moment after a Right drew the whole fade with the cards stopped
part-way through the scroll and the pop part-way grown, where the panel's
springs kept settling. Shelf::on_held names the focused card for the tick as
paint_held already names it for the paint: the scroll goes on to that card and
the pop stays grown, the focus paint stays the held card's, and every caller
of Shelf::on is untouched. Red first: a_strip_dismissed_during_a_scroll_settles_while_it_fades
saw the scroll stand at 270.47684 from the dismissal to the end of the fade.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ismissal

An inline package gives the row no Up link, so Up off it reached answer_edge,
which parks the scrubber and hides the transport. With a section open the
transport is held up by the section, so the hide was invisible and fired when
the page closed: the whole transport vanished at the moment close_section means
it to linger. The press is swallowed while any section is open and the ring
stays on the row. Red first: the ring left the row on the second Up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
card_geometry, button_rect and N_ACTIONS were read only by compile_tests and the
renderer's section tests, hidden behind appkit's crate-wide allow(dead_code).
They are the reference the compiled card is pinned to, so they sit under
cfg(test) with their imports.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e panels

player_diagnostics_visible held the panel back while any PlayerOverlay surface was
up, Info and Chapters included, so it never painted over them or over a fading one.
They are sections now, not surfaces, so the gate saw nothing and the panel drew over
the card and the strip; the identity table could not see it because no row had Stats
on. The gate reads the page's presented sections as well (open or still fading),
under either policy, without calling a section a surface. Red first:
player_diagnostics_hide_behind_an_open_hud_section failed on the open card.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… or popovers

Applies the docs audit: the loop_floor-only scene lists in agent-reference.md and
tests/README.md stop counting info-panel and chapters-panel as overlays and point at
the runner's own list; hud-plugins.md names the compiled renderer as the only caller
of hud_tab_state and drops citations to chapters_panel.rs lines that no longer exist;
the chapters-panel floor note no longer claims a glass popover over the video; Popover's
module doc says the sections ride its appear spring without being modal panels; the
fixtures README says the player-tier scenes select a section word.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…em as the placed control would

The compiler already knew which commands a package leaves out of every state
reachable from the root (R2); it now keeps them (`Compiled::folds`), and
More's root lists a row for each after Quality and Speed and before Options,
in the compiler's order. A row is the command a placed control would carry
(`more_menu::Action::Hud`): OK closes More first and asks the app's one
performer (`PlayerReq::Command`), never a second path. A row appears only
when the app's own predicate for its command holds for the item playing, so a
movie gets no Previous or Next row. `open_tracks` folds as one row that opens
the track menu on Subtitles. Classic folds nothing and builds the root it
always did.

A section only a fold row opens (a package that lays out Chapters or Info and
places no opener) is now compiled: `explore_with_folds` adds the state a
folded section row reaches, which the rules' own graph does not count, so
the page has something to draw and the section opens, travels and closes as
from a tab.

A longer root asks the placer for more room: `more_menu::need_h(folded)` is
the root's height (never below the tallest page), and the HUD menu lint (M2)
asks it at every fold count a package can reach, so a package whose folded
root has no room above, below or beside its opener is E1302 (new invalid
case on the minimal package).

Strings: one new key, widgets.menu.previous_episode, in all eleven catalogs;
Next reuses widgets.next.episode, the track-menu row settings.audio.title,
the sections their tab labels and the Info actions their button strings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s own height

The design's R2 paragraph said the fold PR would add the rows, and the menu
section said More's tallest page is about 600 px; both are now present-tense
facts with their numbers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Change Quality on a failed playback opens More on its Quality page, and BACK
pops to the root. The folded rows were seeded from the page whatever it was
showing, so a folding package gave the read-out a route to Chapters, a seek or
Previous it never had. The seed is taken from PlayerScreen::more_folds, which
now answers nothing while readout_owns_frame(busy), the state the page
already holds; a loading playback still folds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the strip's first card, BACK

The section test delivered the section message straight to the page. The new
app-level test opens More over the reference without its two section discs,
presses the Chapters row on both policies, and reads the engine: More is gone
and focus is on the strip's first card, not the gear. BACK then closes the
section; with no opener disc close_section's own rule (opener, else the latest
section, else the scrubber) lands on the scrub bar, which the package draws,
and the test pins that. The package edit is now one test-support helper
(loaded::reference_without_openers_for_test) shared by both tiers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
new_with and new_anchored had no production caller left once the mounter went
through new_folded, and the anchor tests exercised wrappers rather than the
mount path. They are gone; the test-only new calls new_folded, the two anchor
tests call it with their anchor, and the doc that said the app mounts through
new_with now says what new_folded takes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the code does

The performer's doc called the More fold a later change; the design said
apply_more_action hands a folded row to the performer (it ignores it: the
overlay asks PlayerReq::Command); the lint and NEED_H docs said 600 decides the
side on every page; FoldedRow said this module reads no metadata; the room
paragraph said need_h is 344 plus 24 and 60 a row (it is that or 600); the PR9
goal listed three new keys (it is one).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from hud/pr8-sections to main November 1, 2026 14:32
@GLinnik21 GLinnik21 changed the title HUD plugins PR9: the More fold HUD plugins: the More fold Nov 1, 2026
@GLinnik21
GLinnik21 marked this pull request as ready for review November 1, 2026 14:52
@GLinnik21
GLinnik21 merged commit 22b02fa into main Nov 1, 2026
20 checks passed
@GLinnik21
GLinnik21 deleted the hud/pr9-more-fold branch November 1, 2026 14:52
GLinnik21 added a commit that referenced this pull request Nov 1, 2026
GLinnik21 added a commit that referenced this pull request Nov 1, 2026
GLinnik21 added a commit that referenced this pull request Nov 1, 2026
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