Make the Android stage detail pane an opaque raised sheet
The pane's Scaffold already painted an opaque colour, but it was the app background role, identical to the peeks it slides over, so it read as "no background" and its rows ran together with the covered pane's compact identity. Paint the whole pane one theme container role: StageDetailPane gains paneContainerColor() = colorScheme.surfaceContainer and applies it to the Scaffold container, the TopAppBar and the visit PrimaryScrollableTabRow, and StageSection passes it to the shared SectionHeader, which gains an opaque containerColor parameter defaulting to the previous background. The pane now fully covers the area it occupies, including under a sticky section header, and sits a tuneful step above the app background it covers. Move the shared cards one step up so a card stays a card on the new sheet: CodeBlock and the artifacts ArtifactRow use surfaceContainerHigh and the full-size artifact dialog uses surfaceContainerHighest. No geometry, inset or dependency changes; all colours come from the existing theme. Verified with gradle :app:assembleDebug and :app:testDebugUnitTest (137 tests, 0 failures) and by capturing the pane open over the graph and the Timeline at both window widths on emulator-5554. android/README.md records the change and evidence.
This commit is contained in:
@@ -1377,3 +1377,64 @@ only the title/type and the collapsed section, which the pure
|
||||
terminal node opened from a run graph likewise collapses its single
|
||||
`Incoming routes` definition-and-only section. The wide layout was exercised
|
||||
headless on the fold AVD, not on physical hardware.
|
||||
|
||||
## The stage pane is an opaque container (16 Oct 2026)
|
||||
|
||||
The stage detail pane already painted an opaque `Scaffold`, but that was the app
|
||||
`background` role, identical to the peek strips it slides over, so it read as
|
||||
"no background" and its rows ran together with the covered pane's compact
|
||||
identity. The pane is now a raised sheet.
|
||||
|
||||
- `StageDetailPane` gives the pane the theme's `surfaceContainer` role through a
|
||||
single `paneContainerColor()` used by all of the pane's own surfaces: the
|
||||
`Scaffold` container, the `TopAppBar`, the visit `PrimaryScrollableTabRow` and
|
||||
every section header (`StageSection` passes it to the shared `SectionHeader`,
|
||||
which gained a `containerColor` parameter defaulting to the previous
|
||||
`background`). The pane therefore fully covers the area it occupies — including
|
||||
under a section header — as one tone, and sits a clear step above the
|
||||
`background` peeks and above the content it covers on a narrow window. The
|
||||
covered pane's peek is unchanged and still expected.
|
||||
- `CodeBlock` and the artifacts `ArtifactRow` moved from `surfaceContainer` to
|
||||
`surfaceContainerHigh` (the full-size artifact dialog to
|
||||
`surfaceContainerHighest`), so a card stays a visible card on both the app
|
||||
background and a pane's `surfaceContainer` sheet. No geometry, insets or
|
||||
dependencies changed; all colour roles come from the existing theme.
|
||||
|
||||
Evidence on `emulator-5554` (fold AVD; narrow `wm size 1080x1920`, wide
|
||||
`wm size reset` = 2076x2152 / 390dpi ≈ 852dp; **never** the attached Pixel)
|
||||
against the live server, driven with `adb shell input` and `uiautomator dump`,
|
||||
using `android/scripts/capture_png.sh -s emulator-5554` (every image validated):
|
||||
|
||||
- **`gradle :app:assembleDebug`** → `BUILD SUCCESSFUL`; `app/build/outputs/apk/debug/app-debug.apk`
|
||||
is 18,012,281 bytes.
|
||||
- **`gradle :app:testDebugUnitTest`** → `BUILD SUCCESSFUL`; the 18 test-result XMLs
|
||||
aggregate to **137 tests, 0 failures, 0 errors, 0 skipped**.
|
||||
- `pane-opaque-wide-over-graph.png` / `pane-opaque-wide-over-timeline.png`: on the
|
||||
wide window the `implementer` pane opened over run 69's Graph tab and over its
|
||||
Timeline tab is a solid `surfaceContainer` sheet starting at the fixed peek
|
||||
budget, clearly lighter than the `Runs`/run peeks to its left.
|
||||
- `pane-opaque-narrow-over-graph.png` / `pane-opaque-narrow-over-timeline.png`:
|
||||
on the narrow window the same pane opened over the run graph and the Timeline
|
||||
fills the window as one opaque sheet with no bleed-through.
|
||||
- `pane-opaque-narrow-over-running-graph.png`: the pane opened over run 70's
|
||||
**running** graph (visit tabs, `Status running`) is equally opaque and readable
|
||||
while the run polled.
|
||||
- `pane-opaque-wide-definition-expanded.png` /
|
||||
`pane-opaque-narrow-definition-expanded.png`: with a section expanded, the
|
||||
`Prompt`/`Transcript` code cards are clearly a step lighter than the pane, so
|
||||
the container change did not flatten the card hierarchy.
|
||||
- **APK publish.** The debug APK was copied to
|
||||
`~/.local/share/pipelines/data/artifacts/71/1/pipelines-debug-wip-cfd5887.apk`
|
||||
(`cfd5887` = `git rev-parse --short HEAD`; the working tree is uncommitted WIP on
|
||||
top of it), sha256
|
||||
`67f5223bd8f1c5ce8939ea786b62a222cdb5e59763d8bf3fd636ba5d52b6985e`. `curl -I
|
||||
http://10.0.0.249:8080/artifacts/71/1/pipelines-debug-wip-cfd5887.apk` returned
|
||||
`HTTP/1.1 200 OK`, `Content-Type: application/vnd.android.package-archive`,
|
||||
`Content-Length: 18012281`; a streamed `GET | shasum -a 256` returned the same
|
||||
hash. At 17.2 MiB it exceeds the server's 8 MiB per-file inventory cap, so it is
|
||||
served by direct URL only.
|
||||
|
||||
Not verified: the two app appearances are dark-only (`PipelinesTheme` defaults to
|
||||
dark), so the `surfaceContainer` step was checked in the dark scheme only; the
|
||||
pane's leading-edge shadow is not used (the tonal step is the separation) so no
|
||||
new elevation token was introduced.
|
||||
|
||||
Reference in New Issue
Block a user