Repository navigation
Simplify the player sub-menu code: one popover focus-stop implementation, shared geometry and language helpers - #357
Merged
Conversation
…ion, shared geometry and language helpers TrackMenuPart and MoreMenuPart carried character-identical groups/group_of/neighbour/place/seat and Part::draw. They now call popover_* helpers over a PopoverPanel trait in page_stack.rs and keep only their own reconcile. Also: PLAYER_MENU_BOTTOM replaces five SCR_H - 316.0 literals, the is_title_key wrappers go (page_stack::is_title_key is called directly), sub_layout shares one display_lang and derives is_image_sub_codec from image_codec_badge, the redundant other_tab_warmed flag is derived from background_owner, and begin_slide drops an expect. No behaviour change: same stops in the same order, same canon bytes, no constant touched. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 1, 2026
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.
This is a behaviour-identical cleanup of the player drill-in sub-menus (#335, #345, #346, #347, #352). It comes from a
simplifyreview pass (reuse, simplification, efficiency, altitude).What changed
ui/page_stack.rs:TrackMenuPartandMoreMenuParthad character-identicalgroups/group_of/neighbour/place/seat/draw. They now sharepopover_*helpers over aPopoverPaneltrait, and each part keeps only its ownreconcile. Stops register in the same order.theme::layout::PLAYER_MENU_BOTTOMreplaces five literalSCR_H - 316.0. The value is the same.is_title_keywrappers removed: the callers usepage_stack::is_title_keydirectly.metadata/sub_layout.rs:display_langhelper replaces the unknown-language rule that was written twice.is_image_sub_codecis now derived fromimage_codec_badge, so the two lists can't drift.track_menu.rs: theother_tab_warmedflag is gone. It was true exactly whenbackground_ownerwasSome, so the code reads that instead.panel_motion.rs:begin_slideloses anexpectand a duplicated reset branch.No canon or state-hash bytes,
SCREEN_SHAPES_PIN, replay fixtures,FEED_*constants or motion timings change. The content delta is +239 non-whitespace bytes: the removed copies are offset by the shared helpers and their docs.Gates (committed tree
c2b45f226)cargo test --lib:test result: ok. 5389 passed; 0 failed; 7 ignored--no-default-featurescheck: cleanmake: rc 0make check: rc 0 (5389/5466/102passed, 0 failed)🤖 Generated with Claude Code