Hide phone navigation on run details

Keep pushed run detail and placeholder views consistent with the phone navigation behavior by hiding the shell bar. Add regression coverage and preserve the floating-bar motion test at its intended breakpoint.
This commit is contained in:
2026-11-12 03:17:44 +00:00
parent 6c413a4644
commit 92b3f47d92
4 changed files with 114 additions and 0 deletions
+30
View File
@@ -62,3 +62,33 @@ perf bench). The verdict line named only those paths.
- Settings-as-destination on the phone bar is new behaviour; the Pipelines gear
is still present.
- Medium widths (600 px to the rail threshold) keep the floating pill, by design.
## Land-gate fix (visit 2)
- Failure: `test/ui/adaptive/floating_tab_motion_test.dart` ("switching the shell
tabs never replays the main bar's entrance") ran the shell at 560 px, which is a
phone now and shows the `NavigationBar`, so no `GlassPill` existed (`StateError:
No element`).
- Fix (test only): that one test now sets a 640 px window, above the 600 px split
and below the rail threshold, so it still exercises the floating bar it covers.
No expectation changed; the other six tests in the file are untouched.
- Focused result: `tool/memwatch/full.sh 'test/ui/adaptive/floating_tab_motion_test.dart'`
→ PASS 7 passed, 0 failed (verdict named only that path).
- `tool/analyze.sh`: clean.
- The full gate suite was not re-run here (the land stage runs it).
## Review fix (implement visit 3): run detail hides the phone bar
- Failure: on a phone, a run detail (loaded, and the loading/failed placeholder)
still showed the `NavigationBar`, because both `ShellBar`s in
`lib/features/runs/ui/run_detail_view.dart` lacked `hideNavigation`.
- Fix: `hideNavigation: true` on the detail `ShellBar` and on the placeholder
`ShellBar`. Nothing else changed.
- Regression test: new `test/features/runs/ui/run_detail_phone_navigation_test.dart`
mounts `RunDetailView` in `AdaptiveShell` at 390×844. It asserts no
`NavigationBar` for the loaded detail and for the placeholder, and keeps a
control that the runs list still shows the bar.
- Negative check: with the two `hideNavigation` lines removed, the two detail
tests fail and the control passes; the fix was then restored.
- Focused result: `tool/memwatch/full.sh 'test/features/runs/ui/run_detail_phone_navigation_test.dart test/features/runs/ui/run_detail_widget_test.dart'`
→ PASS 5 passed, 0 failed (verdict named only those two paths).
- `tool/analyze.sh`: clean.
- Not captured here (ui-review owns captures).