Lead a run's stage pane with the run's results
A stage opened from a run (Timeline, run graph or run stage list) now leads with the run-side result instead of the stage's own definition: status, outcome, duration, visit and target, then the visit's results in the order Artifacts (gallery first), Output, Input, then the remaining run evidence under This run. The stage's full definition (type, prompt, output contract, outcomes, model, provider, configs, tools, limits, memory, notify) moves into one collapsed "Stage definition" section at the bottom. StageDetailPane gains a runContext flag: RunStagePane passes true and gets the collapsed-definition default, while PipelineStagePane passes false and keeps the definition expanded, since it is then the pane's only content. rememberSectionExpansion gains an initiallyExpanded set (part of the save key) so the seed respects an operator's own expand/collapse choices without inheriting them across contexts. Nothing visible before is removed - the previous Model/Provider headline promotion is reverted and those facts remain reachable inside the expanded definition. The visit tabs and the collapsed-by-default behaviour of the other sections are unchanged. android/ only; no dependency added. Updates android/README.md and StageDetailSheetTest.kt accordingly.
This commit is contained in:
@@ -210,6 +210,15 @@ stops it.
|
||||
(`"Steps, expanded"`). Expanded state is `rememberSaveable`, per section and
|
||||
per screen, defaulting to expanded. Real lists (versions, steps, session
|
||||
evidence) are items of the one outer list, so nothing nests a scrollable.
|
||||
- The stage pane (opened from a Timeline row, a run graph node or a run's stage
|
||||
list) leads with the run's results, not the stage's definition: the stage's
|
||||
status, outcome, duration and the selected visit's target, then the visit's
|
||||
artifacts gallery (first), output and input, then the remaining run evidence.
|
||||
The stage's own definition — type, prompt, output contract, outcomes, model,
|
||||
provider, configs, tools, limits, memory and notify — moves into one collapsed
|
||||
`Stage definition` section at the bottom. A pipeline stage pane has no run
|
||||
context, so its definition section renders expanded as its only content.
|
||||
Nothing is removed, and the visit tabs still switch the selected visit.
|
||||
- Steps render as a timeline in run detail: a leading status glyph connected to
|
||||
the next step by an outcome-coloured line (kept aligned with the step title),
|
||||
the stage with its sequence and an outcome chip. A step's metadata is a set of
|
||||
@@ -1268,3 +1277,103 @@ has exactly three pane levels (`MasterPane.List/Detail/Stage`, `MAX_PANE_DEPTH =
|
||||
`SlidingPaneStackTest` cases instead; a long covered detail title wraps to three
|
||||
centred lines and ellipsizes (e.g. `Pipelines maintenance - plan implem…`) rather
|
||||
than being rotated.
|
||||
|
||||
|
||||
## Run stage pane leads with the run's results (16 Oct 2026)
|
||||
|
||||
A stage opened from a run no longer leads with its own definition. The pane now
|
||||
shows the run's result first — the stage's status, outcome, duration, visit and
|
||||
target, then the visit's results — and the stage's own definition is one
|
||||
collapsed `Stage definition` section at the bottom. `android/` only; nothing in
|
||||
the Pipelines server, its Go source, the Docker/compose files or the installer was
|
||||
touched, no dependency was added, no run was started from the app, and the
|
||||
attached Pixel was never installed on or driven (the debug APK was installed with
|
||||
`adb -s emulator-5554 install -r`).
|
||||
|
||||
- **Results first.** `ui/graph/StageDetailPane.kt` renders `headlineFields`
|
||||
(Status, Outcome, Duration, Visit, Target, Model target — the run-side facts)
|
||||
immediately, then the run-side result sections in
|
||||
`STAGE_RESULT_SECTIONS` order: `Artifacts` (the per-visit gallery, first, per the
|
||||
operator's earlier "artifacts at the top" preference), `Output`, `Input`, then
|
||||
the remaining evidence under `This run`. Each is collapsed by default via the
|
||||
unchanged `SectionHeader`/`rememberSectionExpansion`, and a new private
|
||||
`StageSection` renders them all through one header+content helper.
|
||||
- **One collapsed definition.** The previous Model/Provider headline promotion is
|
||||
reverted: `STAGE_CONFIG_HEADLINE_LABELS`, `stageConfigHeadlineFields` and
|
||||
`remainingDefinitionFields` are gone, and the full `stageDefinitionFields`
|
||||
(type, prompt, output contract, outcomes, model, provider, configs, tools,
|
||||
limits, memory, notify) renders in the single `Stage definition` section
|
||||
(`STAGE_DEFINITION_KEY`/`STAGE_DEFINITION_TITLE`). Nothing visible before is
|
||||
removed — Model/Provider are reachable by expanding the section.
|
||||
- **Run vs. definition-only.** `StageDetailPane` gained `runContext` (default
|
||||
false); `RunStagePane` passes `true` (Timeline, run graph and run stage list all
|
||||
go through it), `PipelineStagePane` leaves it `false`. The pure
|
||||
`definitionStartsExpanded(runContext)` seeds the section's default: collapsed in
|
||||
a run pane, expanded in a pipeline stage pane, where the definition is the only
|
||||
content. `rememberSectionExpansion` gained an `initiallyExpanded` set (part of
|
||||
the save key) for that seed.
|
||||
- **Visit tabs unchanged.** The visit tab row (`showVisitTabs`, `clampVisitIndex`)
|
||||
still switches the selected visit above the results.
|
||||
|
||||
Evidence (macOS, JDK 17 from Homebrew `openjdk@17`, cached Gradle 8.11.1,
|
||||
`ANDROID_HOME=/Users/alan/Library/Android/sdk`, `--offline`):
|
||||
|
||||
- `gradle :app:testDebugUnitTest :app:assembleDebug` → `BUILD SUCCESSFUL`; the
|
||||
test-result XMLs aggregate to **137 tests, 0 failures, 0 errors, 0 skipped**.
|
||||
`StageDetailSheetTest` dropped the two promotion tests and gained
|
||||
`theRunHeadlineIsRunSideOnlyAndTheDefinitionKeepsModelAndProvider`,
|
||||
`theDefinitionStartsExpandedOnlyWithoutARunContext` and
|
||||
`theRunResultSectionsLeadWithTheArtifactsGallery` (12 cases, 0 failures).
|
||||
`app/build/outputs/apk/debug/app-debug.apk` is 18,011,770 bytes, sha256
|
||||
`1ba2119ad2e2c34b0928460036bdda7b02e2b4d819be2c68d225dd9b072611b8`.
|
||||
- `gradle :app:lintDebug` under JDK 17 fails only on the two **pre-existing**
|
||||
`NewApi` errors for `android:windowLightNavigationBar` in `res/values/themes.xml`
|
||||
and `res/values-night/themes.xml` (unchanged by this pass).
|
||||
- On `emulator-5554` (narrow `wm size 1080x1920` / `wm density 480` ≈ 360dp; wide
|
||||
`wm size reset` / `wm density reset` = 2076x2152 / 390 ≈ 852dp; **never** the
|
||||
attached Pixel) against the live server `ws://10.0.2.2:8080/connect`, driven
|
||||
with `adb shell input` and `uiautomator dump`; run 60's `implementer` (two
|
||||
visits) and pipeline 11 v1's `implementer`:
|
||||
- `narrow_timeline_top.png` / `narrow_timeline_sections.png` and
|
||||
`wide_timeline_stage.png`: the `implementer` pane opened from the Timeline row
|
||||
`implementer · visit 2` — title, `model` chip, `visit 1`/`visit 2` tabs,
|
||||
Status/Outcome/Duration/Visit/Target, then `Artifacts`, `Output`, `Input`,
|
||||
`This run`, `Stage definition` (all collapsed) in that order.
|
||||
- `narrow_graph_top.png` / `narrow_graph_sections.png` and
|
||||
`wide_graph_stage.png`: the same pane opened by tapping the `implementer` graph
|
||||
node (starts on visit 2), identical ordering.
|
||||
- `wide_pipeline_stage_definition.png`: pipeline 11 v1's `implementer` opened
|
||||
from the pipeline graph — no visit tabs and no run sections, `Stage definition`
|
||||
**expanded** with Type/Prompt/Output, because a pipeline stage has no run.
|
||||
- `narrow_run_definition_model_provider.png`: the run pane's `Stage definition`
|
||||
expanded to Type `model`, Prompt, Outcomes, Model `deepseek-v4.1-flash`,
|
||||
Provider `opencode-go`, Retries, Timeout, Tools, Memory — nothing removed.
|
||||
- `narrow_run_artifacts_gallery.png`: the `Artifacts` section (the first
|
||||
result): `Artifacts · 47 recorded · partial capture` and the thumbnail grid.
|
||||
(Run 60's own artifact files are the corrupt `adb screencap` captures noted in
|
||||
the run-64 pass, so they render the honest `!` failure mark, not a blank tile.)
|
||||
- Every capture was written and validated with
|
||||
`android/scripts/capture_png.sh -s emulator-5554 …` (`--check` re-validated all
|
||||
eight). `adb -s emulator-5554 logcat -d` contained **0** `FATAL EXCEPTION`,
|
||||
**0** `E AndroidRuntime` and no `E`-level `net.awan.pipelines` line; no run was
|
||||
started from the app. Screenshots and the raw `uiautomator` dumps are in
|
||||
`~/.local/share/pipelines/data/artifacts/68/2/`.
|
||||
- **APK publish.** `app/build/outputs/apk/debug/app-debug.apk` was copied to
|
||||
`~/.local/share/pipelines/data/artifacts/68/1/pipelines-debug-wip-cd85f69.apk`
|
||||
(`cd85f69` = `git rev-parse --short HEAD`; the working tree is uncommitted WIP on
|
||||
top of it); `shasum -a 256` matched. `curl -I
|
||||
http://10.0.0.249:8080/artifacts/68/1/pipelines-debug-wip-cd85f69.apk` (LAN
|
||||
address from `ipconfig getifaddr en0`) returned `HTTP/1.1 200 OK`,
|
||||
`Content-Type: application/vnd.android.package-archive`, `Content-Length:
|
||||
18011770`; a streamed `GET | shasum -a 256` returned
|
||||
`1ba2119ad2e2c34b0928460036bdda7b02e2b4d819be2c68d225dd9b072611b8`, equal to the
|
||||
local file. 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 in this pass: a run stage that was never visited (no recorded step)
|
||||
still belongs to a run, so its definition is collapsed; the pane then leads with
|
||||
only the title/type and the collapsed section, which the pure
|
||||
`definitionStartsExpanded` rule covers but was not driven on the device. A
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user