Make the Android stage detail a pane and add an artifacts gallery

Turn the stage detail into the rightmost pane of a bounded three-level
stack and show every run artifact in a summary gallery.

- The stage detail opens as a real level-2 pane from both entry points (a
  Timeline row and a graph node). StageDetailPane is wrapped in the same
  Scaffold/TopAppBar with a back arrow as the other panes, and its
  identity/result facts (status, outcome, target, duration, visit, model
  target) render outside any collapsible so a fresh pane is never empty.
  StageDetailSheet, ModalBottomSheet and RightSlidingPanel are removed.
- SlidingPaneStack replaces SlidingMasterDetail: pane 0 fills the host,
  panes 1 and 2 overlay at peek*level, each covered pane keeps one
  tappable peek strip, and MasterPane/backStep/popTo/MAX_PANE_DEPTH are
  the pure model. The peek tap, the pane back arrow, the system Back
  button and the predictive-back gesture all pop exactly one level.
- New pure runArtifactGroups(steps) groups a run's artifacts by stage and
  visit (stable order, duplicates kept, empty run -> empty) and
  artifactsEmptyMessage distinguishes the running "capture pending" case.
  ArtifactGallery renders image thumbnails (tap opens full size) and
  non-image rows with name, size, content type and open/copy; urls resolve
  through ServerUrl, never a hardcoded host.
- Run Summary shows the run gallery and the stage pane shows that visit's
  group, keeping the existing per-visit artifacts summary and notes.
- Tests updated/added (PaneStateTest, SlidingPaneStackTest,
  ArtifactGroupsTest, ArtifactGalleryTest, StageDetailSheetTest, refreshed
  DetailTabsTest/PipelinesNavTest, CollapseRemovalTest kept green) and
  android/README.md records the pass, evidence and not-verified list.
This commit is contained in:
2026-10-15 23:34:36 +01:00
parent 059c85add8
commit 5314542c13
22 changed files with 1847 additions and 509 deletions
+350 -18
View File
@@ -114,18 +114,20 @@ stops it.
- Both detail screens are tabbed via one shared `ui/components/DetailTabs.kt`:
run detail exposes Summary, Graph, Input, Output, Evidence and Steps, pipeline
detail Summary, Graph and Source, with Summary first and the default. Every tab
carries a meaningful icon alongside its label. The run's six tabs scroll
horizontally on a narrow window; on a wide window the same tabs render as a
vertical selectable rail that **collapses to a narrow icon-only strip** and
expands back via an accessibility-labelled "Collapse tabs"/"Expand tabs"
control, so the content reclaims the rail's width; the collapsed strip keeps
each icon's accurate content description and still marks the selected tab. Both
the selection and the collapsed/expanded state are `rememberSaveable` (survive
recomposition and configuration changes) and the tabs carry real tab semantics
(`Role.Tab` + selected state), so selection is never conveyed by colour alone.
Only the selected tab's body composes (`when`), each tab is a single
`LazyColumn`, and the Graph tab keeps the full-height `WorkflowGraph` panel
with its Fit and expand controls.
carries a meaningful icon alongside its label. The section index stays fixed and
visible while the sections themselves live in a `HorizontalPager`: tapping a tab
(or swiping) slides that section's panel in, a later section entering from the
right and an earlier one from the left, following the index order. The pager
composes only the visible page at rest, each section is a single `LazyColumn`,
and the Graph tab keeps the full-height `WorkflowGraph` panel with its Fit and
expand controls. Narrow windows show a horizontally scrolling
`PrimaryScrollableTabRow`; wide windows show an always-visible selectable rail
(icon + label, no collapse control). `selectedIndex` is the single source of
truth: an external change (Back) scrolls the pager and a settled pager reports
the new index, guarded against feedback loops. The tabs carry real tab semantics
(`Role.Tab` + selected state), so selection is never conveyed by colour alone,
and the selected index is `rememberSaveable` (survives recomposition,
configuration change and process death) and clamped by `clampTabIndex`.
- The Source tab fills the whole tab area and renders the parsed definition
instead of dumping the raw markdown: one collapsible section per stage (name ·
type) holding labelled blocks for prompt, output, tools, configs, edges
@@ -156,12 +158,18 @@ stops it.
`LazyColumn`, so no scrollable nests inside a same-direction scrollable.
- Foldable-responsive layout driven by window size (`ui/WindowSize.kt`,
`isWideLayout(widthDp)` at a 600dp breakpoint, read from
`LocalConfiguration.current.screenWidthDp`): a narrow window keeps the
single-pane lists, top tabs and bottom navigation, while a wide window shows
the pipeline list beside the selected pipeline's tabs and the run list beside
the selected run's tabs (master pane ~360dp), with the detail tabs as a side
rail, the text column capped at a comfortable width and the graph using the
extra width. No material3-adaptive dependency is added.
`LocalConfiguration.current.screenWidthDp`): both window widths use one sliding
three-level pane stack (`ui/components/SlidingPaneStack.kt`) — pane 0 is the
pipeline (or run) list filling the window, pane 1 the selected detail and pane
2 the selected stage/graph node, each overlaying the one below at `peek * level`
leaving a tappable peek strip of the pane it covers on the left; tapping a
covered pane's peek closes every pane to its right. There is no collapse
control, no collapsed strip and no master-pane width constant any more. The
section index presentation does follow
the window width: a narrow window shows the tab row across the top, a wide
window the always-visible side rail, with the text column capped at a
comfortable width and the graph using the extra width. No material3-adaptive
dependency is added.
- Both detail screens' sections are still collapsible via the shared
`SectionHeader`: tapping a header toggles it, an animated chevron rotates with
the state, the header sticks to the top of the list while its content scrolls
@@ -545,4 +553,328 @@ before/after screenshots for the top inset and the collapsed sections, the
emulator screenshots for the artifacts sheet (narrow/wide run detail) are in
`~/.local/share/pipelines/data/artifacts/58/3/`.
## Sliding master/detail, right-opening sections, no collapse (15 Oct 2026)
> **Superseded** by the pane-stack pass below (same day): the shared host is now
> `ui/components/SlidingPaneStack.kt` (three levels), Back no longer steps the
> section index, and the stage detail is a pane — there is no
> `SlidingMasterDetail.kt`, `RightSlidingPanel` or `ModalBottomSheet` in the
> tree. The bullets and evidence here record what that pass did at the time.
The collapse-based master/detail interaction was replaced by a sliding one, in
`android/` only. No Pipelines server/Go/Docker/installer file was touched, no run
was started from the app, and colours, the graph and the information shown are
unchanged — only the navigation model and its geometry.
- **Removed, not repaired.** `CollapsedListPane`, the `onTogglePane` parameter
and the "Collapse list pane" `IconButton` on both list top bars, `LIST_PANE_WIDTH`
(`360.dp`) and `COLLAPSED_LIST_PANE_WIDTH` (`56.dp`), and the observed-side rail
collapse (`RailToggle`, `railWidthDp`, `COLLAPSED_RAIL_WIDTH_DP`,
`WIDE_RAIL_WIDTH_DP` collapse branch, "Collapse tabs") are all gone; the wide
rail is always visible as the section index. `ui/CollapseRemovalTest.kt` scans
`src/main/java` for those identifiers and fails if any return. The old
full-screen `pipeline/{id}/{version}` and `run/{id}` routes were removed, so
`destinationSelected` is a plain route equality.
- **One shared host, one slide.** `ui/components/SlidingMasterDetail.kt` is used
by both the Pipelines and Runs destinations at both window widths: the list
fills the window and the detail overlays it, sliding in from the right via a
single `animateDpAsState(spring())` until a peek strip stays visible; a rapid
run of taps only retargets that one animator, so the pane always settles fully
open or fully closed (never half-slid). The detail width is `measuredWidth -
peek` (never hardcoded) and the list behind is hidden from accessibility and
made non-interactive while the detail is open, so TalkBack focus follows the
visible pane and a tap can never select a row through the peek.
- **The peek geometry is derived, with one named token.** `PEEK_WIDTH_DP`
(`56.dp`) is the only new dimension literal; the actual peek is
`peekWidthDp(minimumInteractive, startInset) = maxOf(PEEK_WIDTH_DP,
minimumInteractive + startInset)`, so the tappable strip left after the left
system-gesture inset is still at least `LocalMinimumInteractiveComponentSize`
(48dp). The strip is positioned clear of the status/nav bars and the gesture
area by offsetting/­sizing it with `WindowInsets.systemBars ∪
WindowInsets.systemGestures` (read once per layout), and it carries the content
description "Back to list". No other numeric literals were added (the animation
uses the default `spring()` with no literal).
- **Sections open to the right.** `DetailTabs` keeps the index fixed in place and
moves the section bodies into a `HorizontalPager` (compose-foundation, already
in the BOM): a tap or a swipe slides the section in, later sections from the
right and earlier ones from the left. Back (`ui/PaneState.kt` `backStep`) is one
level — section > 0 → previous section, section 0 → list, list → app exit — and
the peek tap, the detail's back arrow and the system Back button/gesture all run
that same step. `PredictiveBackHandler` handles the gesture;
`android:enableOnBackInvokedCallback="true"` was added to the manifest.
- **Saved state.** `PaneSelection` (pane, item id/version, section index) is all
primitives with a `Saver`, so the open pane and selected section survive
rotation, configuration change and process death. `rememberPagerState` also
saves the pager page.
- **Secondary surface.** The wide stage-detail overlay reuses the same
right-slide (`RightSlidingPanel`); on a narrow window it deliberately keeps its
`ModalBottomSheet` (a right panel on a phone-width window would crowd the
content, and the sheet is the platform-appropriate narrow surface). The overlay
is hosted at the screen level, a sibling of the tabs, so it covers the
whole detail pane rather than being nested inside a pager page (a pager-nested
copy sized to zero). The pure helpers in `StageDetailSheet.kt` are unchanged, so
no information changed.
Evidence obtained in this pass (macOS, JDK 17 from Homebrew `openjdk@17`, Gradle
8.11.1 from the wrapper cache, `ANDROID_HOME=/Users/alan/Library/Android/sdk`):
- `:app:testDebugUnitTest` reported **112 tests, 0 failures** (new `PaneStateTest`
— pane open, `backStep` at section > 0 / section 0 / list, section ordering and
slide direction, `Saver` round trip and primitive payload; new
`CollapseRemovalTest`; new `SlidingMasterDetailTest` for `peekWidthDp`;
`DetailTabsTest` updated and `PipelinesNavTest` updated for the removed routes).
- `:app:assembleDebug` succeeded. `:app:lintDebug` still reports only the two
pre-existing `NewApi` errors for `android:windowLightNavigationBar` (minSdk 26)
in `res/values/themes.xml` and `res/values-night/themes.xml`; those files were
not modified.
- `grep` over `app/src/main` for the banned collapse identifiers returned nothing.
- The debug APK was installed and driven on the attached Pixel 10 Pro Fold
(`adb -s 58281FDCG000JF`, inner display 2076x2152, density 330 ≈ 1006dp wide)
against a live server (`ws://10.0.0.249:8080/connect`):
- Tapping a pipeline row slid the detail in; `uiautomator dump` showed the
"Back to list" strip at `[61,185][160,1904]` (48dp wide, offset past the ~30dp
left gesture inset and below the status bar) with the list rows absent from
the accessibility tree; tapping the strip's centre closed the detail and
restored all nine rows. A tap in the gesture area (`x = 30 < 61`) selected no
row (the list is blocked).
- Tapping the Graph rail tab (and the narrow top tab row) changed the section
while the rail/tab row and the strip stayed in place; the selected rail node
exposed `selected="true"`.
- `adb shell input swipe 5 1000 900 1000 250` (predictive-back gesture) closed
the detail at section 0, and from Source (section 2) stepped back to Graph
(section 1) — one level.
- A live `wm density` change 330 → 300 → 330 kept the pane open and the section
selected; the narrow layout (`wm size 1080x2340`, ≈524dp) showed the full-width
list, the top tab row index and a 48dp strip, and both the section tab and the
strip back worked there.
- `adb logcat` for the package contained no `FATAL EXCEPTION` or
`AndroidRuntime` error during the sweep, and no run was started from the app.
- `:app:testDebugUnitTest` and the APK build were re-run after the final code
change; the beats above are the final-build run.
- The wide sequence was captured to `captures/` (git-ignored) and mirrored to
the run artifacts: `slide-W1-list`, `slide-W2-detail-peek` (detail slid in,
48dp strip on the left), `slide-W3-section` (Graph tab selected, index still
in place), `slide-W4-back-section` (strip tapped once, back to Summary) and
`slide-W5-closed-list` (strip tapped again, list restored, byte-identical to
`slide-W1-list`); the narrow window (`wm size 1080x2340`, ≈524dp) has the same
set `slide-N1`…`slide-N5` (top tab row, `N3` graph, `N4` back to Summary,
`N5` closed, identical to `N1`).
- The wide stage-detail overlay was driven from both entry points: tapping a
timeline row (`W8-timeline`, `W7-stage-overlay`: the panel slid in with the
"Close stage details" strip at `[221,477][320,1838]`, the `planner` heading and
the `Definition` section, dismissed by tapping the strip) and tapping a graph
node (`W9-graph-stage-overlay`).
- **APK publish.** `app/build/outputs/apk/debug/app-debug.apk` (18,184,868 bytes,
sha256 `7942795c1d979a66e4759a0c3e3f0399d60e256b29ba4a7266dfc52142245ac8`) was
copied to
`~/.local/share/pipelines/data/artifacts/59/2/pipelines-debug-059c85a.apk`
(`059c85a` = `git log -1 --format=%h -- android/`). `curl -I
http://10.0.0.249:8080/artifacts/59/2/pipelines-debug-059c85a.apk` (LAN address
from `python3 scripts/lan-address.py`, never `localhost`/`10.0.2.2`) returned
`HTTP/1.1 200 OK`, `Content-Type: application/vnd.android.package-archive`,
`Content-Length: 18184868`; a streamed `GET | shasum -a 256` returned
`7942795c1d979a66e4759a0c3e3f0399d60e256b29ba4a7266dfc52142245ac8`, equal to the
local file. At 17.3 MiB it exceeds the 8 MiB per-file inventory cap
(`internal/server/artifacts.go`), so it is served by direct URL only.
Not verified in this pass: `onOpenRun` from a pipeline detail to a freshly
started run cannot be exercised without starting a run, so that path is kept
compiling and functional but untested; the predictive-back gesture's frame-by-frame
preview is not driven through `adb`, so its behaviour (one level back) is
verified but not its animation; a real hardware fold to the narrow cover display
was not exercised (narrow was produced with `wm size`); the emulator
(`emulator-5554`) was not used, the physical Pixel was.
## Pane stack, click-outside back, stage pane and artifacts gallery (15 Oct 2026)
This pass turned the stage detail into a real pane, made the stack behave like
Back at every level, and added an artifacts gallery to the summary.
- **The stage detail is a pane, not a popup.** `StageDetailSheet` and its
`ModalBottomSheet`/`RightSlidingPanel` branches are gone. `StageDetailPane`
(`ui/graph/StageDetailPane.kt`) is the stage level of the stack, wrapped in the
same `Scaffold`/`TopAppBar` with a back arrow as the other panes. Both entry
points — a Timeline row and a graph node — now set
`PaneSelection(pane = Stage, stageKey, stageVisit)` and open it as the rightmost
pane; the covered graph/timeline is hidden from accessibility and blocked, so
nothing leaks through.
- **Headline-first content.** The identity/result facts (Status, Outcome, Target,
Duration, Visit, Model target; `STAGE_HEADLINE_LABELS`) are rendered outside any
collapsible, so a freshly opened pane never reads as empty. Definition, Input,
Output, Artifacts and the remaining run evidence are collapsible via the shared
`SectionHeader` + `rememberSectionExpansion(stageKey)`. `runStepFields`,
`stageDefinitionFields`, `StageFieldRow`, `StageTypeChip`, `controlVisitLabel`,
`numberFields`/`terminalFields` and the visit tab row are all kept.
- **One three-level stack.** `ui/components/SlidingPaneStack.kt` replaces
`SlidingMasterDetail`: pane 0 fills the host, panes 1 and 2 overlay it at
`paneOffsetDp(level, peek) = peek * level` and `paneWidthDp(hostWidth, level,
peek) = hostWidth - peek * level` (derived from the one named `PEEK_WIDTH_DP`
token and the measured width; no new offsets). Each covered pane keeps exactly
one peek visible and its peek strip is tappable, calling `onPopTo(level)` to
close every pane to its right. `MasterPane { List, Detail, Stage }`, `depth`,
`MAX_PANE_DEPTH = 2`, `backStep` (one pane per step, no section stepping) and
`popTo(selection, level)` are the pure model; `PaneSelection` carries
`stageKey`/`stageVisit` and its saver encodes six primitives.
- **Back and the outside tap agree.** `PredictiveBackHandler` is enabled for
`depth >= 1` and the system Back button/gesture, the peek tap and the pane's
back arrow all run the same one-level step; `backStep(Stage)` → Detail,
`backStep(Detail)` → List, list → app exit.
- **Artifacts gallery.** `ui/ArtifactGroups.kt` has the pure
`runArtifactGroups(steps)` (grouped by stage then visit from `runTimeline`,
stable order, duplicate names kept, empty run → empty) and
`artifactsEmptyMessage(executing)`. `ArtifactGallery` (`ui/graph/Artifacts.kt`)
renders each group's image artifacts as a non-lazy chunked grid of thumbnails
(a tap opens the full-size dialog) and its non-images as rows with name,
`humanBytes` size, content type and open/copy; the Summary tab shows the run
gallery and the stage pane's Artifacts section shows that visit's group plus the
unchanged `Artifacts · N recorded` summary and capture notes. Every url resolves
through `ServerUrl.resolveArtifactUrl` (no hardcoded host), and
`ArtifactImage`/`ArtifactBytesCache` remain the single loader.
Evidence obtained in this pass (macOS, JDK 17 from Homebrew `openjdk@17`, Gradle
8.11.1 from the wrapper cache, `ANDROID_HOME=/Users/alan/Library/Android/sdk`,
`--offline`):
- `gradle :app:testDebugUnitTest` reported **122 tests, 0 failures** (rewritten
`PaneStateTest` — three levels, `depth`, `MAX_PANE_DEPTH`, `backStep` at each
level, `popTo` levels and the six-primitive saver; renamed `SlidingPaneStackTest`
— `peekWidthDp` plus `paneOffsetDp`/`paneWidthDp`; new `ArtifactGroupsTest` —
grouping/order, duplicates kept, empty run, visit numbers vs `runTimeline`,
running-vs-finished empty message; `StageDetailSheetTest` gained the
headline/evidence split assertions). `CollapseRemovalTest` still passes.
- `gradle :app:assembleDebug` succeeded (18,198,400 bytes). `gradle :app:lintDebug`
still reports only the two pre-existing `NewApi` errors for
`android:windowLightNavigationBar` in `res/values/themes.xml` and
`res/values-night/themes.xml`.
- `rg -n 'ModalBottomSheet|StageDetailSheet' android/app/src/main` and
`rg -n 'https?://' android/app/src/main/java/net/awan/pipelines/ui/graph` both
return nothing; `git diff --stat` shows no change under `android/gradle` or the
`build.gradle.kts` dependency blocks.
- On `emulator-5554` (2076x2152, density 390 ≈ 851dp wide; **never** the attached
Pixel) against the live server `ws://10.0.0.75:8080/connect` (LAN address from
`python3 -c` importing `scripts/lan-address.py`; the script has no `__main__`,
so it prints nothing when run directly):
- Summary of run 58 showed the grouped gallery (`reviewer · visit 1` header, then
a grid of `Preview of …png`); tapping a thumbnail opened the full-size dialog
(`02_sheet_ui_reviewer_top.png`); a non-image row showed `EVIDENCE.md`,
`3.0 KiB · text/plain; charset=utf-8`, `Open`/`Copy` `enabled="true"`.
- Tapping the Timeline row `reviewer · visit 1` opened the stage pane as level 2
with two peeks visible (`Back to runs` at `[73,165][190,1859]`, `Back to run`
at `[190,165][380,1859]`) and the headline facts shown unexpanded
(`reviewer`/`model`, `Status completed`, `Outcome rejected`, `Duration 7m 41s`,
`Visit 1 / 3`, `Target implementer`); Definition/Input/Output/Artifacts/This run
were collapsed. Tapping the graph node `Stage reviewer` opened the same pane
(`Status completed`, `Outcome success`, `Visit 2 / 3`, `Target ui_reviewer`).
- Tapping the detail peek (`285 1000`) → depth 1 (`Back to runs` only); tapping
the list peek (`130 1000`) → depth 0 (list, no strips). `input keyevent 4` at
depth 2 → depth 1, at depth 1 → depth 0; the predictive-back swipe
`input swipe 5 1000 900 1000 250` at depth 2 → depth 1.
- `settings put system user_rotation 1` (config change) kept depth 2 and the
`reviewer`/visit 1 selection; after `am kill net.awan.pipelines` (verified
`pidof` empty) the relaunch restored the same depth and selection.
- The stage pane's Artifacts section expanded to `Artifacts · 6 recorded` plus
the visit's thumbnails; run 60 (executing) showed the run empty state
`Artifacts · capture pending`.
- `adb logcat -d | grep -c 'FATAL EXCEPTION'` and `… | grep -c 'E AndroidRuntime'`
both returned 0; no run was started from the app.
- **APK publish.** `app/build/outputs/apk/debug/app-debug.apk` was copied to
`…/artifacts/60/2/pipelines-debug-059c85a.apk` (`059c85a` =
`git log -1 --format=%h -- android/`); `shasum -a 256` matched. `curl -I
http://10.0.0.75:8080/artifacts/60/2/pipelines-debug-059c85a.apk` returned 200
with `Content-Type: application/vnd.android.package-archive` and a
`Content-Length`; a streamed `GET | shasum -a 256` equalled the local file. At
17.3 MiB it exceeds the server's 8 MiB per-file inventory cap, so it is served
by direct URL only.
Not verified in this pass: a different graph node tapped *while the stage pane is
open* is not reachable because the covered graph is intentionally blocked, so the
"selection replaces the rightmost pane at depth 2" invariant is covered by the
`PaneStateTest` bound/`popTo` tests rather than by a device tap; the unconfigured
(disabled open/copy) gallery row and the finished-run "no artifacts recorded" empty
state were not exercised (only the running "capture pending" one); the
predictive-back animation frames and pinch-zoom were not driven through `adb`; the
narrow layout was not separately exercised (the stage pane no longer branches on
width); the physical Pixel was not touched.
### Follow-up fix: narrow-window gallery (15 Oct 2026)
A review of the pane-stack pass found the gallery grid used a fixed 96dp tile
(`ARTIFACT_TILE_DP`) in three columns, so the row overflowed a narrow (phone)
pane and clipped the third thumbnail. Fixed in `ui/graph/Artifacts.kt`:
- **Derived tile size.** `ArtifactGallery` now measures the row once with
`BoxWithConstraints` and calls the pure `artifactTileDp(availableWidth, columns,
spacing, preferred)` (the widest that fits, capped at the preferred
`ARTIFACT_TILE_DP`), so three tiles and their gaps always fit the pane. The only
new named token is `ARTIFACT_TILE_SPACING_DP` (`8.dp`), shared by the row
arrangement and the fitting; no magic offsets.
- **Dead code removed.** `ArtifactRow` no longer carries an unreachable image
branch (the gallery passes it only non-image artifacts); it renders the file
glyph, name and `artifactMetaLine` with open/copy.
- **No duplicated derivation.** `runArtifactGroups` reuses `runTimeline`'s display
visit number (`entries` → `(stage, sequence) → visit`) instead of re-deriving
`control.visit ?: index + 1`.
- **Docs corrected.** The current-architecture bullet and the superseded
`SlidingMasterDetail`/`RightSlidingPanel`/`ModalBottomSheet` references above were
updated; the previous pass's section is marked superseded.
- New unit test `ui/graph/ArtifactGalleryTest`: narrow width shrinks the tile so
the row never overflows, a width that fits keeps the preferred tile, exact fit
and degenerate inputs.
Evidence obtained in this follow-up (macOS, JDK 17 from Homebrew `openjdk@17`,
Gradle 8.11.1 from the wrapper cache, `ANDROID_HOME=/Users/alan/Library/Android/sdk`,
`--offline`):
- `gradle :app:testDebugUnitTest` reported **127 tests, 0 failures, 0 errors**
(the 5 new `ArtifactGalleryTest` cases included); `CollapseRemovalTest` still
passes. `gradle :app:assembleDebug` succeeded (17,830,569 bytes).
`gradle :app:lintDebug` still reports only the two pre-existing `NewApi` errors
for `android:windowLightNavigationBar` in `res/values/themes.xml` and
`res/values-night/themes.xml`.
- `rg -n 'ModalBottomSheet|StageDetailSheet|RightSlidingPanel|SlidingMasterDetail'
android/app/src/main` and `rg -n 'https?://'
android/app/src/main/java/net/awan/pipelines/ui/graph` both return nothing;
`git diff --stat` shows no change under `android/gradle` or the
`build.gradle.kts` dependency blocks.
- On `emulator-5554` (never the attached Pixel) against the live server
`ws://10.0.0.75:8080/connect`:
- Run 58 Summary showed the gallery grouped by stage/visit; at the wide
(851dp, density 390) size the tiles measured 234px (96dp).
- Setting `wm size 1080x1920` + `wm density 480` (360dp): the Summary gallery's
three tiles measured 78dp and the third's right edge (`[798,492][1032,582]`
→ x=1032) coincided with the pane content edge — no clipping. In the depth-2
stage pane (`Artifacts, expanded`) the three tiles measured 52dp
(`[516,796][672,952]`, `[696,…][852,…]`, `[876,…][1032,…]`) and also reached
the pane edge exactly; the non-image `emulator.log` row showed
`10.8 KiB · text/plain; charset=utf-8` with enabled `Open`/`Copy`.
- Timeline row → stage pane (depth 2, two peeks) and graph node → stage pane both
opened with the headline facts visible (`reviewer`/`model`, `Status completed`,
`Outcome rejected`/`success`, `Duration`, `Visit`, `Target`) and every other
section collapsed. Detail peek (`285 1000`) → depth 1; list peek (`131 1000`)
→ depth 0; `input keyevent 4` at depth 2 → depth 1 and at depth 1 → depth 0;
the predictive-back swipe `input swipe 5 1000 900 1000 250` at depth 2 →
depth 1.
- A `wm density` 480 → 440 change kept depth 2 with the `reviewer` visit-1
selection and the expanded Artifacts section; after `am kill net.awan.pipelines`
(verified `pidof` empty) and relaunch, the same depth and selection returned.
- `adb -s emulator-5554 logcat -d` contained 0 `FATAL EXCEPTION` and 0
`E AndroidRuntime` lines; no run was started from the app.
- **APK publish.** `app/build/outputs/apk/debug/app-debug.apk` (17,830,569 bytes,
sha256 `6ac6004e9d4bc29d30457cc99009c226df7157dae2b41f07fa7c8a7a46a40498`) was
copied to `…/artifacts/60/4/pipelines-debug-059c85a.apk` (`059c85a` =
`git log -1 --format=%h -- android/`); `shasum -a 256` matched. `curl -I
http://10.0.0.75:8080/artifacts/60/4/pipelines-debug-059c85a.apk` returned
`HTTP/1.1 200 OK`, `Content-Type: application/vnd.android.package-archive`,
`Content-Length: 17830569`; a streamed `GET | shasum -a 256` equalled the local
file.
Not verified in this follow-up: a different graph node tapped *while the stage pane
is open* (the covered graph stays blocked, so the replace-the-rightmost invariant
is covered by the `PaneStateTest` bound/`popTo` tests only); the explicit gallery
empty states (the run 60 card already carried artifacts during this sweep, so
neither the "capture pending" nor the finished "no artifacts recorded" message was
seen on device — both are covered by `ArtifactGroupsTest`/`artifactsEmptyMessage`);
the unconfigured (disabled open/copy) gallery row; the predictive-back animation
frames and pinch-zoom (adb cannot drive a two-finger pinch).