Skip to content

Onboarding follows the Settings design; first-run lifecycles become explicit state - #1434

Merged
GLinnik21 merged 11 commits into
mainfrom
claude/blissful-rubin-8ids3q
Nov 17, 2026
Merged

GLinnik21 merged 11 commits into
mainfrom
claude/blissful-rubin-8ids3q

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

1. Route pages share one design-system anatomy (the owner's ask: onboarding pages should follow the Settings design, from one code path rather than per-screen opt-ins).

  • RouteLayout::screen() is the only route layout and every route sets one title, route_screen::TITLE_SIZE (48 bold, -.02em, crumb hanging above the guide). TitleStyle, settings_page() and page_titled() are gone. Sign-in, first-run consent, Favorite libraries, Filmography, the Contribute page and the Privacy documents now take the same title as the Settings pages (they were 72).
  • route_screen::COPY_SIZE (26) is the only narrative copy size. draw_narrative, Header and FollowCopy take no size; first-run consent's disclosure was 28 and is now 26. RouteLayout::copy_view / copy_text_frame serve a screen that measures or draws its own paragraph (consent's disclosure, Filmography's preview).
  • TableView::page() / FormTable::page(band) are the route page table (board measures, full rows, reading-ink headers). The board setter is test-only and family::settings_table is deleted; every route page builds its table with page(). First-run consent and Favorite libraries previously drew the pre-board table.
  • document() / narrative_top() lost an argument that no longer changed anything.

2. Implicit state machines in the first-run flow (a read-only audit of the flow; findings 1, 2, 3 and 5 fixed here):

  • Favorite libraries has one Exit field (Editing / Committing / Left). It replaces self_answered, which only the auto-answer set. Start and BACK set nothing, so a second exit inside the route fade (BACK after Start, Start or the auto-answer after BACK) replaced the first in the newest-wins navigation request. Every input and the auto-answer now act only while Editing.
  • First run leaves after the store has taken its answer. The Browse store publishes each editor commit's outcome (PinCommit { seq, recorded } on the directory snapshot). The screen asks for Home on the first frame that shows its own commit, and the log says whether the commit was recorded or refused. It used to say "recorded" regardless.
  • ConsentAsk (NotAsked / Presented / Done) lives in ConsentMachine and is written only by maybe_ask_consent. Before, "asked" was not a state anywhere. The dev override bypassed it and, on the picker path (asked every frame), presented the question again on the frame after each answer, forever: the picker was unreachable in a simulator recording. The override is now honoured once per process, and a question lost unanswered is asked again.
  • band, has_band, dirty and entry_pins in the editor were dead (the band was true on every mount). They are removed together with the docs that described them.

3. Replay anchor re-recorded. v13-owned-input-content opens Filmography, whose title moved from 72 to 48. CI refused it in both modes (replay: REFUSED — replay measurement table miss) with the shape unchanged (same state_fp). It was recorded afresh, the way Settings v2 re-recorded its anchor:

  • tests/focusfp.sh --rec --only 12, then plxnative-rec import, with anchor: true restored. The manifest differs only in the initial-state hash and the mock's port.
  • tests/replay_fixtures.py over all five recordings: SAME in Targets and Resolve on three consecutive runs, 1,172 frames graded, every difference counter zero.
  • The pinned digests in tests/test_harness.py and the frame count in tests/test_replay_fixtures.py follow the new recording. docs/ui-replay-v13-anchor.md and the replay README record it.

main was merged in. There are no Makefile, Cargo, workflow or module-layout changes, so no build-bench table. No ledger lines were added. No issue exists for this work.

Verification

  • CI: all 13 checks green on fa2218e1f, including the macOS replay job and the armv7 cross-build.

  • Regressions first:

    • first_run_leaves_after_the_store_has_taken_its_answer and once_first_run_is_leaving_no_second_exit_follows failed on the old screen (Home in the same step as the commit; BACK after Start sent OnboardBack).
    • The hostsim rig test the_dev_consent_override_presents_the_question_once_over_the_picker drives the production follow_auth_landing with the override's trigger armed. It sees two presentations when maybe_ask_consent does not store its next state.
  • Local test suites (make test-crate):

    suite result
    plx_ui 1636 passed
    plx_screens 2188 passed (text-fit tests included)
    plx_appkit 955 passed
    plx_data 1643 passed

    The harness suite also passes (746 tests).

  • Local make check: the python half is ok. The cargo half fails 39 tests that cannot pass as root, an identical set before and after the merge. CI runs them as an ordinary user, and they pass there.

  • Reviews: pr-reviewer on the combined diff found one MINOR (the consent wiring was untested end to end; the rig test above answers it). doc-claim-auditor found two sentences still saying first-run consent reads at BODY; both are corrected.

  • Simulator (frame-dump, virtual 60 fps, mock PMS): the whole first-run path was recorded: QR sign-in, both consent questions, Who's watching, Favorite libraries, Home. Full-resolution frames of consent, sign-in and Favorite libraries were checked.

  • Not verified: nothing has been run on the TV yet (text rasterization, frame rate). Filmography, Contribute and the Privacy documents were not looked at in the simulator after their title change.


Generated by Claude Code

First-run consent and Favorite libraries (in first run, in Settings and over
the Library) drew the pre-board table: 24 px section breaks, untracked caps
headers in the tertiary ink. Settings v2 had moved every Settings page to the
board measures, full rows and reading-ink headers, each page setting the three
by hand (and three of them leaving the header ink out).

The look is now one helper, `family::settings_table`, which every Settings page
and both onboarding tables call. Under posters' details picker, Language and
Diagnostics gain the reading-ink header the rest of the family already had.

Tests: `first_run_consent_draws_the_settings_table` and
`every_mounting_draws_the_settings_table` fail on the old code (first run: board
measures) and pass with the helper.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFeyH8m7cF3gdyJzHk4
The first-run consent questions and Favorite libraries (first run, Settings and
the Library editor) kept the 72 hero title that Settings v2 left them "until
their stage", so the Favorite libraries page also read as a different design
from its Settings siblings. Both now set their title as a Settings page does
(48 bold, crumb above it).

Consent's measured reading layout is the same search with the page title; the
disclosure stays a fixed paragraph, not a sentence that follows focus, because
it is what the answer agrees to. Favorite libraries' rows carry no sentence of
their own, so its page copy is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFeyH8m7cF3gdyJzHk4
The Settings look was a set of per-screen opt-ins: a page chose the 48 title
(`RouteLayout::settings_page` / `page_titled`) or kept the 72 hero, passed its
own copy size, and re-applied the board table measures by hand on every
rebuild (`family::settings_table`). Onboarding pages followed Settings only
where a screen remembered to, and the first-run disclosure was 28 against
Settings' 26.

The design system now has one route anatomy and no switches:

- `RouteLayout::screen()` is the only layout. Every route sets the one title
  (`route_screen::TITLE_SIZE`, 48 bold, -.02em, crumb above the guide);
  `TitleStyle`, `settings_page` and `page_titled` are gone. Sign-in, first-run
  consent, Favorite libraries, Filmography, the Contribute page and the Privacy
  documents take it with the Settings pages.
- `route_screen::COPY_SIZE` (26) is the only narrative copy size:
  `draw_narrative`, `Header` and `FollowCopy` no longer take one, and consent's
  disclosure reads it. `RouteLayout::copy_text_frame` places a paragraph a screen
  draws itself where the copy stands.
- `TableView::page()` / `FormTable::page(band)` are the route page table (board
  measures, full rows, reading-ink headers). The board setter is test-only, and
  every route page builds its table with `page()`.

Tests that pinned the hero geometry (a crumb pushing the title down, a 72 title
widening the Filmography column, a 28 disclosure) now pin the one anatomy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFeyH8m7cF3gdyJzHk4
Review follow-up to the shared route anatomy:

- `RouteLayout::copy_view` is the route copy paragraph (`COPY_SIZE`, 26/34, at
  most twelve lines) that `draw_narrative` draws. Filmography measured its own
  LABEL copy from `narrative_copy_frame`, which no longer accounts for the
  copy's cap drop, so its preview hung about 7 px closer to the copy than one
  LG; it now measures `copy_view` in `copy_text_frame`, and so do its tests.
- `document()` and `narrative_top()` lose `has_crumb`: a crumb hangs above the
  guide and moves neither, so the argument changed nothing. Their docs describe
  that anatomy instead of the old crumb-pushes-title one.
- `screen_for_title`'s widening branch is exercised again by a synthetic word
  wider than the preferred measure (no shipped title needs it at 48).
- The first-run consent fit test grades the page table first run builds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFeyH8m7cF3gdyJzHk4
…onsent

The implicit-state audit of the first-run flow (2026-11-17) found three
lifecycles held in loose flags:

- Favorite libraries remembered only that the auto-answer had left
  (`self_answered`); Start and BACK set nothing, so a second exit inside the
  route fade (BACK after Start, Start or the auto-answer after BACK) replaced
  the first in the newest-wins navigation request. It is now one `Exit` field
  (Editing / Committing / Left) that every input and the auto-answer check.
- First run asked for Home in the same step it sent `ApplyPins`, and logged
  "recorded" whether or not the store produced a record. The Browse store now
  publishes each commit's outcome (`PinCommit { seq, recorded }` on the
  directory), and the screen leaves on the first frame that shows its own
  commit, saying whether it was recorded.
- "Consent was asked" was no state: the dev override bypassed it and, on the
  picker path (asked every frame), re-presented the question on the frame after
  each answer. `ConsentAsk` (NotAsked / Presented / Done) is now the Bridge's
  one field for it, written only by `maybe_ask_consent`; the override is
  honoured once per process, and a question lost unanswered is put again.

`band`, `has_band`, `dirty` and `entry_pins` in the editor were dead (the band
was true on every mount) and are gone with the docs that described them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFeyH8m7cF3gdyJzHk4
…-8ids3q

# Conflicts:
#	rust-modules/src/app/bridge.rs
Review follow-ups:

- A hostsim rig test arms the dev consent override's own trigger in the private
  runtime root, drives the production `follow_auth_landing` over the picker,
  takes the question away and asserts it was presented exactly once. With
  `maybe_ask_consent` not storing its next state the test sees it twice.
- consent.rs's module doc and docs/DESIGN.md still said first-run consent reads
  at BODY; the disclosure is the route's COPY_SIZE (26) like every route.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFeyH8m7cF3gdyJzHk4
The macOS simulator job failed: `v13-owned-input-content` was refused in both
modes with `replay: REFUSED — replay measurement table miss`. Its flow opens
Filmography, whose title this branch moves from the 72 hero to the 48 route
title, a size the recording never measured. The shape did not move (state_fp
unchanged), so this is a fresh capture of the same flow, as Settings v2 did for
its anchor:

- `tests/focusfp.sh --rec --only 12` with the CI's debug hostsim simulator; the
  old fixture removed, `plxnative-rec import`, `anchor: true` restored. The
  manifest differs only in the initial-state hash and the mock's port.
- `tests/replay_fixtures.py` over all five recordings: v13 SAME in Targets and
  Resolve on three consecutive runs (1,172 frames graded, every difference
  counter zero), the eight historical refusals as expected.
- The pinned digests in tests/test_harness.py follow the new bytes; the README
  and docs/ui-replay-v13-anchor.md record the re-recording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFeyH8m7cF3gdyJzHk4
`tests/test_replay_fixtures.py` pinned the current anchor's frame count at the
old recording's 1,216; the re-recording (docs/ui-replay-v13-anchor.md) has 1,172.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFeyH8m7cF3gdyJzHk4
@GLinnik21
GLinnik21 merged commit 7553766 into main Nov 17, 2026
13 checks passed
@GLinnik21
GLinnik21 deleted the claude/blissful-rubin-8ids3q branch November 17, 2026 18:04
GLinnik21 added a commit that referenced this pull request Nov 17, 2026
Main's #1434 added FormTable::page, which builds Self { .. } without the
names field this branch added to FormTable; it starts empty exactly as
FormTable::new does.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GLinnik21 added a commit that referenced this pull request Nov 17, 2026
Main's #1434 dropped the has_crumb argument (the document starts where the route title does).

Co-Authored-By: Claude Sonnet 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.

2 participants