Skip to content

Language, Legal, Consent and the menus on forms (Settings form migration 4/5) - #336

Merged
GLinnik21 merged 1 commit into
mainfrom
settings-form-4
Oct 1, 2026
Merged

GLinnik21 merged 1 commit into
mainfrom
settings-form-4

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Settings form migration 4/5 (design: docs/settings-form.md). The Language page, the Legal index, the Consent controls, and the Item, Account and More menus are now each a declared Form on a FormTable. Their parallel action/target vectors and index-based dispatch are deleted.

What changes

  • Deleted:
    • Legal's open() action list.
    • Consent's rows / row_ids / open_preview.
    • The Account menu's rows_for / action_at / drills_in / destructive.
    • The More menu's initial_selection / action_at.
    • Language's parallel action list.
    • Action::None in the item and account menus and in app/input.rs.
  • ui/form.rs gains set_or_open, set_sliding and key helpers, so the menus keep their existing slide and destructive-neighbour motion. The opening-row and destructive-row rules are unchanged.
  • Tests address rows by Id, not by numeric index:
    • Legal, Language and Consent are added to the structural nav test (every Nav row pushes exactly its destination).
    • A first-run consent test.
    • Reorder tests for the Account menu and the More menu.
    • Three new form_tests.

State shape

There is no SCREEN_SHAPES_PIN bump, and the replay fixtures are unchanged.

Verification (on the committed tree; then rebased onto main 33e8d55, resolving the #335 overlap in ui/form.rs by hand: #335's check/reseat_after_install/refresh kept, PR 4's set_or_open/set_sliding share one install_keeping. Re-gated after the rebase: make check 5306/5380/102 passed, 0 failed; replay 0 failures)

  • make check: test result: ok. 5282 passed; 0 failed, ok. 5356 passed; 0 failed, ok. 102 passed; 0 failed
  • --no-default-features check is clean; ARM make is clean.
  • make check-replay: 3 fixtures, 6 replays, 0 failures, all verdict=SAME
  • tests.test_harness: Ran 366 tests, OK
  • Simulator before/after captures (mock PMS, guest) of Language, Legal, Consent and first-run consent, and the Item, Account and More menus: 0 pixels differ by more than 1 per channel on every page. Leaf layout is unchanged.

🤖 Generated with Claude Code

…ore menus on FormTable

Language (settings.rs), the Legal index, the Consent controls, the item
menu, the account menu and the player More menu now declare their rows
once as a Form and resolve activation through FormTable by identity.
Their parallel action vectors and index dispatch (Legal open(), consent
rows/row_ids/open_preview, account rows_for/action_at/drills_in/
destructive, item menu Action::None, more_menu initial_selection/
action_at) are deleted. Keys equal the legacy indices/discriminants, so
canon and replay anchors are unchanged. FormTable gains set_or_open,
set_sliding and key helpers so the slide and destructive-neighbour
animations are kept. Tests address rows by Id; nav-item coverage is
extended to Legal, Language and Consent, and a reorder test covers the
account and More menus.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit e1094b0 into main Oct 1, 2026
5 checks passed
@GLinnik21
GLinnik21 deleted the settings-form-4 branch October 1, 2026 01:36
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