Skip to content

Player sub-menus 5/5: More → Quality drill-in page - #352

Merged
GLinnik21 merged 2 commits into
mainfrom
feat/player-submenus-5-quality
Oct 1, 2026
Merged

GLinnik21 merged 2 commits into
mainfrom
feat/player-submenus-5-quality

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Part 5 of 5 of the player drill-in sub-menus (follows #347; design in docs/player-submenus.md).

What changed

  • ui/page_stack.rs (new): PageStack<P, R> is the push/pop/restore stack that the Tracks menu had inline. Tracks now uses it unchanged; its canon bytes are byte-identical.
  • More: the root shows a Quality › row whose value is the current rung, followed by OPTIONS. RIGHT/OK opens a Quality page of rungs, with Auto checked when active. LEFT/BACK/title click goes back, and picking a rung still sends PlayerReq::More(SetQuality) through the existing apply_more_action path. Push and pop animate through panel_motion.
  • The playback-failure screen's "change quality" entry opens straight on the Quality page. BACK returns to the More root first, then dismisses.
  • A live rung change refreshes the page in place, keeping focus by id. If Quality stops being offered (Force Direct Play), the page pops to the root.
  • The Quality row is absent only under Force Direct Play.
  • Dev triggers plxnative-more=1 and plxnative-moreosc=<ms>, plus an fps scene more-quality-osc. The new require_log scene field makes the scene fail unless the log proves the page was actually pushed (moreosc: depth=1).
  • SCREEN_SHAPES_PIN changed (the More canon gained depth/pages/key). The three replay fixtures were re-recorded after observing REFUSED; see tests/fixtures/replay/README.md.

Tests

  • page-stack, Quality push/pop/refresh, failure-entry BACK count, and focus_key unit tests
  • RequireLogTests in tests/test_harness.py

Gates on the committed tree (fee794f22, rebased on #347):

  • cargo test --lib: test result: ok. 5389 passed; 0 failed; 7 ignored
  • --no-default-features check: clean
  • make check: rc 0 (5389 / 5466 / 102 passed, 0 failed; replay fixtures OK)
  • ARM make: rc 0

TV frame-time leg more-quality-osc at fee794f22:

  • Setup: 60 Hz panel, guest + mock, screen on, muted, 90 s.
  • The page was pushed 53 times (moreosc: depth=1).
  • overlay=more heartbeats: fps 59–61; post-warmup worst frame min/med/max 17.4 / 18.4 / 27.6 ms.
  • 31 frames ≥20 ms (max 38.1 ms). They fall into the same classes as the track-menu legs in Player sub-menus 4/5: animated panel resize and page slide (Tracks, More) #347: back-buffer waits in the first glClear, which the no-menu control has at the same rate.

🤖 Generated with Claude Code

Base automatically changed from feat/player-submenus-4-animation to main October 1, 2026 14:25
GLinnik21 and others added 2 commits October 1, 2026 17:26
…n a shared PageStack

More's root becomes a headerless Quality row (its value is the current rung) above OPTIONS;
RIGHT or OK pushes a Quality page (title band, the rungs with the checked one first in focus),
and BACK, LEFT or a title click pop it. Only BACK at the root dismisses; a rung still commits
`More(SetQuality)` and dismisses. The failure screen's quality entry opens on the page.

- `ui::page_stack::PageStack` is extracted from the track menu (page path, saved return ids,
  canon, title key) and both menus use it; the Tracks canon bytes are unchanged.
- More animates push and pop with `panel_motion` like Tracks; live refresh keeps focus by id and
  pops to the root when Quality becomes unavailable.
- The player overlay's replay canon carries More's page path: `SCREEN_SHAPES_PIN` moves and the
  three replay fixtures are re-recorded (observed REFUSED first, then SAME in both modes).
- Dev triggers `plxnative-more=1` and `plxnative-moreosc=<ms>` and the `more-quality-osc` fps scene.
- Docs: `docs/player-submenus.md`, module docs, the replay fixtures README.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…og), stale docs and pin comment

The more-quality-osc scene could pass without ever pushing the Quality page: when the row is
absent (Force Direct Play) the oscillator silently did nothing. It now logs 'moreosc: no Quality
row', and a new require_log scene field (graded by run.py's grade_required_log) fails the run
unless 'moreosc: depth=1' appears. Also corrects the previous-pin comment, the track-menu and
Quality scene notes (More has a boot trigger; the row is absent only under Force Direct Play),
the MoreMenuPart/panel_h/key() docs and two doc paragraphs the page slide made stale.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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