Keep settings and delivery updates together

Preserve the reviewed grouped Settings page while fixing its embedded phone safe area, and land the accompanying notification, walkthrough, terminal, and documentation updates captured by this run.
This commit is contained in:
2026-11-12 03:27:37 +00:00
88 changed files with 3633 additions and 639 deletions
+74
View File
@@ -96,3 +96,77 @@ section with error and Retry.
- Not on-device verified.
- The "Check for updates" action walks the servers sequentially when pressed. That
is a user action, not the page load, and was left unchanged.
## Re-entry after land: main moved (merge of main)
Main changed the Settings files this branch rewrote, so the merge conflicted in
`settings_keys.dart`, `settings_screen.dart` and `settings_topic_pages.dart`.
Resolution (merge staged, not committed):
- `settings_topic_pages.dart` stays deleted. Its main-side change added a
walkthrough row to the old tab layout; this page already has the row.
- `settings_keys.dart` keeps `SettingsKeys.showWalkthrough` only; main's
`SettingsKeys.walkthrough` is dropped.
- `settings_screen.dart` keeps this branch's imports; main's
`settings_walkthrough_section.dart` import is dropped.
- `settings_walkthrough_section.dart` and its test
`test/features/settings/settings_walkthrough_test.dart` (main's, for the removed
tab row) are deleted. The reopen behaviour stays covered by the Help and about
row test in `settings_screen_test.dart`.
- `pipelines_app.dart` now passes `onShowWalkthrough` to Settings, calling
`showFirstRunWalkthrough(context)`. Before this, the row was disabled in the
app because nothing supplied the handler. The settings route builder now names
its parameter `context`.
- Main's device-delivery changes (warning, connection log, `open()`) merged
cleanly and are kept.
Focused results (memwatch, from app/):
- Passing: settings_screen_test, settings_device_delivery_section_test,
settings_search_page_test, settings_layout_test, settings_library_test,
settings_server_load_test, first_run_walkthrough_test, walkthrough_gate_test.
- Failing: `test/application/settings_page_test.dart` (2 tests: the bar gear
case and the rail case) and `test/application/settings_registration_test.dart`
(1 test). The same tests fail on untouched main, and the pre-merge branch
commit passes them. Likely cause: main's Pipelines bar now includes the
terminal toggle (`pipelines_app.dart` `_shellFor`), which pushes out the
`pipelines-open-settings` gear. Not fixed here; these tests need a decision on
the gear.
- `settings_tabs_test.dart` and `settings_topic_restore_test.dart` do not exist
on this branch; they are stale names in the change list.
`tool/analyze.sh`: clean.
Not on-device verified; no UI captured in this stage.
## Re-entry after ui-review: phone bar over the page
ui-review (visit 2) captured the phone page panned under the shell's floating tab
bar. The bar's glass let the Terminal help text and its controls show through the
bar, so they could not be read.
Cause: the shell's `Scaffold` uses `extendBody`, so the page's body reads the bar's
height as its bottom padding. The page padded only its scroll end, so rows scrolled
under the bar.
Fix (`settings_screen.dart`, embedded branch): the page's viewport now ends at the
bar's top edge. It reserves the body's bottom padding (the bar's height, or the
system inset when no bar shows) and removes that padding from its subtree, so the
page's own end padding is not counted twice. The non-embedded (own Scaffold) branch
is unchanged. On a wide window the bar is in the rail, so the reserved space is zero.
New regression test: `settings_screen_test.dart`, "phone: the page scrolls to rest
above the floating tab bar". It pumps the page in a `Scaffold(extendBody: true)` with
an 80 px bottom bar at 390×844, scrolls to the end, and asserts the list viewport and
the last row (the walkthrough row) end above the bar. It was confirmed to fail on the
previous embedded layout and to pass with this fix.
Focused results (memwatch, from app/, same path list as above, plus the new test):
- 49 passed, 3 failed. The 3 failures are the known application tests from the
land stage: `settings_page_test.dart` (390 and 1200 cases) and
`settings_registration_test.dart`. They fail at a tap on `segmented.more` and a
route check before reaching this layout. Not changed here.
- `tool/analyze.sh` on the settings lib/test paths and the two application tests: clean.
Affected states to re-capture (ui-review owns this): phone light and dark, panned to
the end of the page (the walkthrough row and Terminal help text must sit above the
bar); desktop, where the bar is in the rail and nothing changes.
Not on-device verified; no UI was built or captured in this stage.