Repository navigation
The track menu and source list on forms (Settings form migration 5/5) - #339
Merged
Merged
Conversation
GLinnik21
force-pushed
the
settings-form-4
branch
2 times, most recently
from
October 1, 2026 01:11
0ffda05 to
1b58afc
Compare
The track menu (Audio and Subtitles tabs) and the source list move onto ui::form Form/FormTable. Notes and separators are inert slots: a layout index, no id, key or action, never focusable. Deleted: TrackMenuState targets / audio_targets and AudioRowTarget / RowTarget::Note, source_list's SrcAction and sections(), the onboarding editor's acts vector, alt_sources' action_at and the Library menu's MenuRow rows. Every table-backed menu now resolves focus and activation by identity (TrackRow, SrcTarget, AltId, the Library menu's interned identity string). Form gains contains / slots / map (a shared builder serves a surface with its own identities). family::table_focus is deleted; docs/settings-form.md records the migration as complete. Adds a track-menu reorder test. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GLinnik21
force-pushed
the
settings-form-5
branch
from
October 1, 2026 02:15
2d6d024 to
bbcc54e
Compare
This was referenced Oct 1, 2026
GLinnik21
added a commit
that referenced
this pull request
Oct 1, 2026
…the track-menu form (#345) The Subtitles tab's Color row becomes a Style row that pushes a page stack on #339's `TrackRow` form: Style -> Size / Position / Color pickers, each a drill-in showing its current value, with a title band (click pops), a saved return id and scroll per page, and `FormTable::refresh_with` so a live refresh keeps focus by id. - Size and Position persist optimistically (`route::select_subtitle_size/position` publish the live atomic, then a persist-only storage write; never republished); Settings' pickers use the same path and a retry on the checked row is only a no-op when the stored value matches too. - Style follows Timing's availability; image and ASS subtitles dim Size and Position with their own notes while Color stays live. - `SubSig` rebuilds a sub-page in place and pops to root only when its availability changes. - The player overlay's replay canon carries the tab, page path and saved return ids: `SCREEN_SHAPES_PIN` moves and the three replay fixtures are re-recorded. - `PLAYER_MENU_MIN_W` / `TableView::min_panel_w` give Tracks and More a 440 floor. - Five new strings in en/es/be with fit tests. Co-authored-by: Claude Sonnet 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.
Settings form migration 5/5, the last one (design:
docs/settings-form.md, now marked complete). The track menu and the source list are now declared forms. With this, no menu dispatches through a vector kept alongside its rows.Rebased onto main after #336 (4/5) merged, resolving the overlap with #335 by hand:
ui/track_menu.rskeeps #335's measure-awarepanel_h/fit_notesthroughform.table;Form::mapcarries #335'sskipped; newBindingliterals carrydisabled. Re-gated after the rebase:make check5309/5383/102 passed, 0 failed; replay 0 failures; harness 366 OK. Sim: rebased vs main track menus are pixel-identical in the popover (audio differs only in the playing video behind the glass).What changes
TrackRowis the row identity, and notes and separators are inert slots. Deleted:TrackMenuState.targets/.audio_targets,AudioRowTarget,RowTarget::Note,table_sections,lock_style_rows,insert_row_atandsel_for_targets.SrcTargetis the row identity. Deleted:SrcAction,source_list::sections()/sel,OnboardScreen.acts, andAltSourcesScreen'saction_at/section_forand its separate table.FormTable<String, Action, Infallible>, keeping its identity interner so keys stay stable across a reorder.LibraryMenu.rowsandMenuDraft.rows/sectionsare deleted.family::table_focus: deleted; it had no caller left.Form: gainscontains,slotsandmap, each with tests.form_testsfor the new helpers.State shape
Canon is unchanged and there is no
SCREEN_SHAPES_PINbump. The replay fixtures are unchanged.Verification (on the committed tree)
make check:test result: ok. 5287 passed; 0 failed,ok. 5361 passed; 0 failed,ok. 102 passed; 0 failed--no-default-featurescheck is clean;RELEASE=1 makeis clean.make check-replay:3 fixtures, 6 replays, 0 failurestests.test_harness:Ran 366 tests, OK--extra-media, 2 audio and 2 subtitle streams, guest):🤖 Generated with Claude Code