Merge lane-e: keep the lane's reviewed work
Combine lane-e's reviewed Android UI work with main's lane-c/lane-d work. Conflicts resolved by keeping both intents: - android/README.md: both documentation sections retained - graph/StageDetailPane.kt: lane-e pane plus local section changes - screens/RunDetailScreen.kt, RunHistoryScreen.kt: lane-e features and local work both preserved - screens/PipelineListScreen.kt: new row layout and remembered sort/filter controls kept together
This commit is contained in:
@@ -3861,3 +3861,387 @@ the `uiautomator` dump tool itself (`com.android.commands.uiautomator`), never
|
||||
none (`Artifacts · not recorded for this visit`) rather than the populated
|
||||
gallery (the same gallery branch is covered by the run-summary grid); the wide
|
||||
fold indicator (`"2 more"`) was present but is not separately cropped.
|
||||
|
||||
## One artifacts gallery everywhere, with a type icon for non-media (16 Oct 2026)
|
||||
|
||||
The gallery was already a grid, but only for images: non-image artifacts fell
|
||||
through to a plain one-per-row list beneath it, so the same run rendered two
|
||||
different ways. This pass makes `ArtifactGallery` the single rendering path for
|
||||
every artifact (the run summary and the stage pane's per-visit section already
|
||||
both use it) and gives non-media files a tile too. `android/` only; no
|
||||
dependency was added (the new glyphs are `material-icons-extended`), no run was
|
||||
started from the app, and every `adb` command targeted `emulator-5554` (never
|
||||
`emulator-5556` or the attached Pixel).
|
||||
|
||||
- **One tile, two shapes.** `ui/graph/Artifacts.kt`'s `ArtifactTile` replaces the
|
||||
old `ArtifactTile` + `ArtifactRow` split. An image fills the cell with its
|
||||
thumbnail; a video shows its still/poster frame with a centred play marker on
|
||||
top; anything else shows its file-type icon with the artifact's name and
|
||||
human-readable size beneath it, all in the same width-derived grid. The grid is
|
||||
still built from non-lazy chunked `Row`s, so it never nests a scrollable inside
|
||||
the Summary `LazyColumn` or the pane's scroll.
|
||||
- **Type-to-icon mapping.** The new pure `ui/graph/ArtifactType.kt` classifies an
|
||||
artifact from its content type (parameters tolerated) and, when the server's
|
||||
sniff is generic, its name's extension, into `ArtifactKind`
|
||||
(Image/Video/Audio/Pdf/Json/Archive/Spreadsheet/Log/Code/Document/Other), and
|
||||
`artifactIcon(kind)` gives each kind a distinct shape (PDF, JSON, archive,
|
||||
spreadsheet, log, code, document, audio, generic file). `Format.kt` gained the
|
||||
companion `isVideoContentType` predicate beside `isImageContentType`.
|
||||
- **Video poster frame.** `ui/graph/ArtifactImage.kt` gained
|
||||
`ArtifactVideoFrame`/`rememberArtifactVideoFrame`: the artifact's bytes are
|
||||
fetched through the same bounded cache as an image and the representative sync
|
||||
frame is extracted with the platform `MediaMetadataRetriever` over an in-memory
|
||||
`MediaDataSource` (no temp file, no new dependency, no inline playback). The
|
||||
full-screen viewer takes a `video` flag and shows that frame (its open action
|
||||
plays the clip externally); a fetch/extraction failure falls back to the video
|
||||
glyph rather than a fabricated image.
|
||||
- **Actions kept.** Tap opens the viewer for an image/video and the existing
|
||||
external-open action for anything else; every tile keeps its share control, a
|
||||
non-media tile adds the copy-link control, and long-press / multi-select, the
|
||||
contextual bar, bulk copy/share and the selection semantics are unchanged.
|
||||
The capture summary and partial-capture notes are byte-for-byte unchanged.
|
||||
- **Geometry from tokens, not literals.** `ui/theme/Dimens.kt` gains
|
||||
`ARTIFACT_TYPE_ICON_DP` (28dp), `ARTIFACT_PLAY_BADGE_DP` (32dp) and
|
||||
`ARTIFACT_TILE_ACTION_DP` (32dp); the tile still stretches `ARTIFACT_TILE_DP`
|
||||
cells across the measured width via the unchanged pure `artifactGrid`.
|
||||
|
||||
Review follow-up (same pass, no UI change): the two preview state-holders
|
||||
duplicated the whole memoize-through-caches scaffold, so it is now one private
|
||||
`rememberArtifactPreview(url, maxDim, keyTag, fetchBytes, derive)` that both
|
||||
`rememberArtifactBitmap` and `rememberArtifactVideoFrame` delegate to (the
|
||||
`keyTag` keeps the two cache entries apart); the video fallback draws
|
||||
`artifactIcon(ArtifactKind.Video)` instead of a hardcoded `Icons.Filled.Movie`;
|
||||
and the now-unused `Format.kt` `artifactMetaLine` helper (its last caller was the
|
||||
deleted non-image row) was removed with its `FormatTest` cases.
|
||||
|
||||
Verified on this tree (macOS, Homebrew `openjdk@25`,
|
||||
`JAVA_HOME=/opt/homebrew/opt/openjdk@25/libexec/openjdk.jdk/Contents/Home`,
|
||||
Gradle 9.7.1, `ANDROID_HOME=/Users/alan/Library/Android/sdk`, `--offline`):
|
||||
|
||||
- `gradle --offline :app:testDebugUnitTest --rerun-tasks` → `BUILD SUCCESSFUL`;
|
||||
the 31 test-result XMLs aggregate to **265 tests, 0 failures, 0 errors, 0
|
||||
skipped** (the new `ui/graph/ArtifactTypeTest` has 6 cases: the media kinds
|
||||
from the content type, the named kinds, the extension fallback for a generic
|
||||
sniff, the never-crash `Other` fallback, the explicit type-to-icon mapping, and
|
||||
that no two kinds share a glyph). `ArtifactGalleryTest` still covers the grid
|
||||
sizing (narrow → fewer, larger cells; wider → more preferred-shaped columns;
|
||||
degenerate inputs). `compileDebugKotlin` emits no warnings.
|
||||
- `gradle --offline :app:assembleDebug --rerun-tasks --no-build-cache` succeeded
|
||||
→ `app-debug.apk` **18,011,393 bytes**, sha256
|
||||
`faa9df077c960b23eef4afbac1b7effa1a50180eabcee2d638cabb232974cfa8`.
|
||||
- On `emulator-5554` (native 2076x2152 @390; `wm size`/`wm density` used for the
|
||||
narrow pass and reset afterwards) against the live server
|
||||
`ws://10.0.2.2:8080/connect`, driven with `adb shell input` and `uiautomator
|
||||
dump`; every capture was written with
|
||||
`android/scripts/capture_png.sh -s emulator-5554` (validated PNG, named display
|
||||
id) into `…/artifacts/140/1/`. Run 136's `implementer` visit 1 is a real mixed
|
||||
set: five `image/png` screenshots plus `chat_stub_approval.py`
|
||||
(`text/plain`, code glyph) and `stub.log` (`text/plain`, log glyph).
|
||||
- **Wide** (2076x2152 ≈ 532dp): `evidence_wide_run136_summary_gallery.png`
|
||||
shows the five thumbnails with their share controls and, in the same grid,
|
||||
the `.py` tile with the `<>` code glyph and the `.log` tile with the log
|
||||
glyph, each with its name and `9.3 KiB` / `220 B` beneath it and the copy +
|
||||
share actions; `evidence_wide_run136_stage_pane.png` shows the same gallery in
|
||||
the stage pane under the unchanged `Artifacts · 7 recorded · partial capture`
|
||||
wording and the `1 files excluded from artifact capture.` note.
|
||||
- **Narrow** (1080x2340 @480 ≈ 360dp):
|
||||
`evidence_narrow_run136_summary_gallery.png` and
|
||||
`evidence_narrow_run136_stage_pane.png` show three cells per row with the
|
||||
thumbnails and the code/log type tiles still legible.
|
||||
- Tapping a thumbnail opened the full-screen viewer
|
||||
(`evidence_wide_run136_image_viewer.png`; `uiautomator dump` reported the
|
||||
`01_approval_pending.png` image plus `Open … externally`, `Copy link …` and
|
||||
`Close viewer`), and the non-media tiles' `Copy link to …` / `Share …`
|
||||
controls are present in the accessibility tree.
|
||||
- `adb -s emulator-5554 logcat -d | grep -cE 'FATAL EXCEPTION|E
|
||||
AndroidRuntime'` returned 0; the emulator display was reset to native
|
||||
2076x2152 @390 afterwards.
|
||||
- **APK publish.** `app-debug.apk` copied to
|
||||
`…/artifacts/140/1/pipelines-debug-wip-c700b28.apk` (`c700b28` = short
|
||||
`HEAD`); `shasum -a 256` matched. `curl -I
|
||||
http://10.0.0.249:8080/artifacts/140/1/pipelines-debug-wip-c700b28.apk`
|
||||
returned `HTTP/1.1 200 OK`, `Content-Type:
|
||||
application/vnd.android.package-archive`, `Content-Length: 18011393`, and a
|
||||
streamed `GET | shasum -a 256` returned the same `faa9df07…` as 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 **video** artifact does not exist on the live server
|
||||
and starting a run is forbidden, so the play-marker/poster-frame render is
|
||||
covered only by the `artifactKind` unit test (`video/mp4 → Video`) and the code
|
||||
path, not by a device capture; the non-media external-open tap was not driven
|
||||
(no handler is guaranteed on the emulator); multi-select/bulk share were not
|
||||
re-exercised on device (their code is unchanged from the previous pass); the
|
||||
light theme and `:app:lintDebug` were not run (the only known lint issues are the
|
||||
two pre-existing `NewApi` errors for `android:windowLightNavigationBar`).
|
||||
|
||||
### Review fixes (same pass)
|
||||
|
||||
The review's three findings were addressed with no intended UI change, and the
|
||||
two build checks were re-run on the resulting tree:
|
||||
|
||||
- `gradle --offline :app:testDebugUnitTest --rerun-tasks` → `BUILD SUCCESSFUL`;
|
||||
the 31 result XMLs again aggregate to **265 tests, 0 failures, 0 errors, 0
|
||||
skipped** (the removed `artifactMetaLine` assertions were replaced by
|
||||
`isVideoContentType` coverage in the same `FormatTest` method).
|
||||
- `gradle --offline :app:assembleDebug --rerun-tasks --no-build-cache` succeeded
|
||||
→ `app-debug.apk` **18,011,393 bytes**, sha256
|
||||
`2adaf03e5ac0bdb29b012d1487a0e10917f8ebabda973ddc63c7315b6df25dda`; it was
|
||||
published to `…/artifacts/140/3/pipelines-debug-wip-c700b28.apk` and
|
||||
`curl -I http://10.0.0.249:8080/artifacts/140/3/pipelines-debug-wip-c700b28.apk`
|
||||
returned `HTTP/1.1 200 OK`, `Content-Length: 18011393`, with a streamed
|
||||
`GET | shasum -a 256` matching the local `2adaf03e…`.
|
||||
|
||||
The device render was **not** re-captured: `emulator-5554` is shared and, while
|
||||
this pass ran, another lane replaced the installed app with a build whose dex has
|
||||
no `ArtifactType` class (`dumpsys package … lastUpdateTime` moved from this pass's
|
||||
`16:24:02` install to `16:24:20`, and the installed `base.apk` sha no longer
|
||||
matched `2adaf03e…`), so any capture could not be attributed to this build. The
|
||||
wide/narrow captures above predate the refactor; the refactor changes no UI
|
||||
pixels, so they remain representative of the gallery this code renders.
|
||||
|
||||
## Collapsible artifacts gallery in the run summary (16 Oct 2026)
|
||||
|
||||
The artifacts gallery led the run summary but was always open, so a long run's
|
||||
grid pushed the run's own facts below the fold. It is now one
|
||||
collapsed-by-default section in the same place. `android/` only; no dependency
|
||||
was added (the chevron is the existing `material-icons-extended`
|
||||
`KeyboardArrowDown` the shared `SectionHeader` already uses), no run was started
|
||||
from the app, and every device command targeted the operator's Pixel 10 Pro Fold
|
||||
(`58281FDCG000JF`), never an emulator.
|
||||
|
||||
- **One collapsed section, same place.** `RunDetailScreen.kt`'s `RunSummaryTab`
|
||||
renders the gallery through the shared `LazyListScope.collapsibleSection`,
|
||||
keyed `"artifacts"` and seeded with `rememberSectionExpansion(run.id)`, so a
|
||||
run opened fresh starts collapsed and the operator's expand/collapse choice
|
||||
survives Summary↔tab switches, configuration changes and rotation exactly like
|
||||
every other section. The order is unchanged: the artifacts section still leads
|
||||
the summary and the facts item follows it.
|
||||
- **A self-describing header.** The new pure `runArtifactsHeader(steps,
|
||||
executing)` (`ui/ArtifactGroups.kt`) builds the header text — the title (its
|
||||
singular form for exactly one artifact), how many the run recorded, and
|
||||
`· partial capture` when any visit excluded or omitted files; with no artifacts
|
||||
it reuses the shared `artifactsEmptyMessage`. Its count is exactly
|
||||
`runArtifactGroups`'s tile total, so the header and the expanded gallery can
|
||||
never disagree.
|
||||
- **The gallery itself is unchanged.** Expanding composes the same
|
||||
`ArtifactGallery` (the width-derived thumbnail grid, tap for full size, the
|
||||
non-media tiles with name, size and content type plus their open/copy/share
|
||||
actions); collapsing composes nothing. The stage pane's per-visit artifacts
|
||||
section and every other summary section are untouched.
|
||||
|
||||
Evidence (macOS, JDK 17 from Homebrew `openjdk@17`, Gradle 8.11.1 from the
|
||||
wrapper cache, `ANDROID_HOME=/Users/alan/Library/Android/sdk`, `--offline`,
|
||||
every Gradle command with `--no-daemon`):
|
||||
|
||||
- `gradle --no-daemon --offline :app:testDebugUnitTest` → `BUILD SUCCESSFUL`; the
|
||||
test-result XMLs aggregate to **269 tests, 0 failures, 0 errors, 0 skipped**.
|
||||
`ArtifactGroupsTest` gained `headerReportsTheCountWithASingularTitleForOne`,
|
||||
`headerAddsPartialCaptureOnlyWhenFilesWereExcludedOrOmitted`,
|
||||
`headerEmptyCaseUsesTheSharedEmptyWording` and
|
||||
`headerCountMatchesTheGalleryRecordedTotal`.
|
||||
- `gradle --no-daemon --offline :app:assembleDebug` → `app-debug.apk`
|
||||
**18,011,393 bytes**, sha256
|
||||
`c5655269e490db34cbacccf68eaec468a3a41c46c661b41e6ad2d92295235247`; installed
|
||||
with `adb -s 58281FDCG000JF install -r`, and the pulled `base.apk` sha matched
|
||||
the local build, so the captures below are attributed to this exact build.
|
||||
- Run **136** (pipeline id 11 v1, `succeeded`, 17 artifacts) on the Pixel:
|
||||
- **Wide** (inner display, 2152×2076 @330 ≈ 1043dp):
|
||||
`summary_wide_collapsed.png` shows the summary led by a lone collapsed
|
||||
`Artifacts · 17 recorded · partial capture` header (right chevron) with the
|
||||
run's facts immediately below and no gallery; `summary_wide_expanded.png`
|
||||
shows the same header expanded to the unchanged gallery — the
|
||||
`implementer · visit 1` and `ui_reviewer · visit 1` groups of image
|
||||
thumbnails plus the `chat_stub_approval.py` (`<>` code glyph) and `stub.log`
|
||||
(log glyph) tiles with their names, `9.3 KiB`/`220 B` sizes and share/copy
|
||||
actions.
|
||||
- **Narrow** (`wm size 1080x2152` on the inner display ≈ 524dp, reset to the
|
||||
native size afterwards): `summary_narrow_collapsed.png` and
|
||||
`summary_narrow_expanded.png` show the same collapsed header and, expanded,
|
||||
the same gallery re-flowed to four cells per row (wide uses five).
|
||||
- **Persistence.** `uiautomator dump` reported `Artifacts · 17 recorded ·
|
||||
partial capture, collapsed` on a freshly opened run; toggling it and
|
||||
round-tripping Summary → Graph → Summary, and a `wm size` configuration
|
||||
change, both kept the operator's expanded/collapsed choice.
|
||||
- `adb -s 58281FDCG000JF logcat -d | grep -cE 'FATAL EXCEPTION|E
|
||||
AndroidRuntime'` returned 0; the screen stayed awake (`svc power stayon usb`
|
||||
+ `KEYCODE_WAKEUP`) and every capture used `screencap -p -d <display-id>` +
|
||||
`adb pull`. Screenshots, `uiautomator` dumps and the APK are in
|
||||
`…/artifacts/155/1/`.
|
||||
- **APK publish.** `app-debug.apk` copied to
|
||||
`…/artifacts/155/1/pipelines-debug-wip-95150c7.apk` (`95150c7` = 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/155/1/pipelines-debug-wip-95150c7.apk`
|
||||
returned `HTTP/1.1 200 OK`, `Content-Type:
|
||||
application/vnd.android.package-archive`, `Content-Length: 18011393`.
|
||||
|
||||
Not verified in this pass: no device capture exercises the empty or the
|
||||
single-artifact header wording (both are covered by the `runArtifactsHeader`
|
||||
unit tests); the narrow window was produced with a `wm size` override on the
|
||||
inner display rather than a physical fold, then reset; `:app:lintDebug` was not
|
||||
re-run (its only known findings remain the two pre-existing `NewApi` errors for
|
||||
`android:windowLightNavigationBar`).
|
||||
|
||||
## Run title beside the pipeline name (16 Oct 2026)
|
||||
|
||||
A run now shows the operator's title for the goal, with the pipeline it ran on as
|
||||
the secondary line, so two runs of the same pipeline are distinguishable.
|
||||
`android/` only; no dependency was added, no run was started from the app, and no
|
||||
device command was run (build + unit tests only).
|
||||
|
||||
- **Protocol.** `data/protocol/Message.kt` gains an optional `title` on both
|
||||
`RunSummary` and `RunDetail` (the server's `RunSummary.title`). It is nullable
|
||||
and defaults to absent, so a server that does not send it degrades cleanly.
|
||||
- **One shared fallback.** New `ui/RunIdentity.kt` holds `runLabel(title, name)`
|
||||
(mirroring the server's `RunSummary.Label`) and `runIdentity(title, name)`: the
|
||||
label is the title, or the pipeline name when the title is absent/blank, and the
|
||||
pipeline is a second line only when a title exists — never an empty line.
|
||||
- **Runs list.** `RunHistoryScreen.RunRow` shows the label as the primary line and,
|
||||
only for a titled run, the pipeline name plus its version chip on a second line;
|
||||
an untitled run keeps the pipeline name and version chip as its single identity
|
||||
line. The status chip, progress, id/start/duration line and diagnostic are
|
||||
unchanged.
|
||||
- **Run detail + stage panes.** The run detail app bar and the Summary lead with
|
||||
the label and, when titled, name the pipeline (`name · vN`) on a second line; the
|
||||
covered peek uses the label too. `StageDetailPane` takes an optional `runLabel`
|
||||
and shows it under the stage name, so a stage/visit pane keeps the run context.
|
||||
- **Renaming is not offered.** The authoritative server does not expose it: it has
|
||||
no `set_run_title` command and `list_runs`/`get_run` return no `title` field, so
|
||||
the app does not fake a rename. The protocol field is parsed for the server that
|
||||
does send it; until then the title falls back to the pipeline name.
|
||||
|
||||
Evidence (macOS, JDK 17 from Homebrew `openjdk@17`, Gradle 8.11.1 from the wrapper
|
||||
cache, `ANDROID_HOME=/Users/alan/Library/Android/sdk`, `--offline`, `--no-daemon`):
|
||||
|
||||
- `:app:testDebugUnitTest` → `BUILD SUCCESSFUL`; the 32 result XMLs aggregate to
|
||||
**276 tests, 0 failures, 0 errors, 0 skipped**. The new `RunIdentityTest` (5
|
||||
cases) covers the title/fallback/trim logic, and `ProtocolModelTest` gained a
|
||||
case for a present and one for an absent title on both the run summary and the
|
||||
run detail.
|
||||
- `:app:assembleDebug` → `app-debug.apk` **18,257,214 bytes**, sha256
|
||||
`bce661069b2bd013f0802545402766a3ae8fed97e1bbe0109f81a4bfb6233601`.
|
||||
- Server capability probe (read-only, through the installed CLI):
|
||||
`pipelines runs` and `pipelines rpc '{"type":"get_run","run_id":155}'` return no
|
||||
`title` field, and the running `pipelines-server` binary contains no
|
||||
`set_run_title` string. So renaming is deliberately not offered and the title
|
||||
falls back to the pipeline name until a server carrying the field is deployed.
|
||||
- **APK publish.** `app-debug.apk` copied to
|
||||
`…/artifacts/162/1/pipelines-debug-wip-e1c531a.apk` (`e1c531a` = 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/162/1/pipelines-debug-wip-e1c531a.apk`
|
||||
returned `HTTP/1.1 200 OK`, `Content-Type:
|
||||
application/vnd.android.package-archive`, `Content-Length: 18257214`.
|
||||
|
||||
Not verified in this pass: device captures of the runs list and run detail (the
|
||||
visual review owns the device); no server that actually sends `title` was
|
||||
available, so the titled layout is exercised by the unit tests and the fallback
|
||||
path only.
|
||||
|
||||
## Stage verdict atop the stage pane, with clickable artifacts (16 Oct 2026)
|
||||
|
||||
A completed run visit now leads its stage pane with the server's derived verdict:
|
||||
the chosen option as a badge, the concise reason in ordinary body text, and the
|
||||
recorded artifacts the reason names as inline, tappable references plus the same
|
||||
references as compact chips. `android/` only; nothing in the Pipelines server, its
|
||||
Go source, the installer or the Docker files was touched, no run was started from
|
||||
the app, and no device command was run (build + unit tests only).
|
||||
|
||||
- **Protocol.** `data/protocol/Message.kt` gains `StageVerdict` and an optional
|
||||
`verdict` on `RunStep`, mirroring `internal/protocol/verdict.go`
|
||||
(`{option, reason, reason_source, artifacts}` under the `verdict` wire name). It
|
||||
is nullable and defaults to absent, so a running step or a pre-verdict server
|
||||
parses cleanly to null.
|
||||
- **One block.** New `ui/graph/StageVerdict.kt` holds the pure helpers and the
|
||||
composable. `StageVerdictBlock` is rendered at the top of the run pane, below the
|
||||
visit tabs and above the facts, only when the server reported a verdict; a null
|
||||
verdict (or one with neither option nor reason) draws nothing — never an empty
|
||||
heading or placeholder.
|
||||
- **Badge.** The option is a `ColoredChip` in the *stage outcome's* existing colour
|
||||
(`outcomeColor(step.outcome)`, the graph's palette the Timeline chips already
|
||||
use), so the badge agrees with the graph rather than a new colour vocabulary.
|
||||
- **Reason.** Rendered with `pipelinesText().body`, so it is readable plain
|
||||
language, never a monospace JSON dump, and it wraps with no `maxLines` clip.
|
||||
- **References.** `referencedVerdictArtifacts` resolves the verdict's referenced
|
||||
names to the visit's recorded artifacts (recorded order, deduplicated, an
|
||||
unrecorded/invented name dropped). `verdictReasonSegments` splits the reason
|
||||
around those names — by full recorded name or basename, longest match first — and
|
||||
the segments become inline `LinkAnnotation.Clickable` references coloured
|
||||
`primary` with an underline. An image/video reference opens the shared
|
||||
`ArtifactViewer`; anything else goes through the existing `openArtifact` action.
|
||||
The same references are `FlowRow` chips (`VerdictArtifactChip`) with their type
|
||||
glyph, so they can be tapped without hunting in the sentence.
|
||||
- **Geometry.** Only existing tokens (`SPACING_M`/`SPACING_S`/`SPACING_XS`,
|
||||
`ICON_STATUS_DP`); no new `dp`/`sp` literal and no new dependency.
|
||||
|
||||
Evidence (macOS, JDK 17 from Homebrew `openjdk@17`, Gradle 8.11.1 from the wrapper
|
||||
cache, `ANDROID_HOME=/Users/alan/Library/Android/sdk`, `--no-daemon`):
|
||||
|
||||
- `:app:testDebugUnitTest` → `BUILD SUCCESSFUL`; the result XMLs aggregate to
|
||||
**282 tests, 0 failures, 0 errors, 0 skipped**. New `StageVerdictTest` (5 cases:
|
||||
split around every referenced name, basename for a slashed path, longest match
|
||||
wins, a reason with no references, and name→recorded-artifact resolution) and
|
||||
`ProtocolModelTest#runStepVerdictParsesWithItsReasonSourceAndReferencedArtifacts`.
|
||||
- `:app:assembleDebug` → `app-debug.apk` **18,270,824 bytes**, sha256
|
||||
`85847c6fe32498f38464741ca1b8f592dbbd7a9e1f34dd649121e723836b0903`.
|
||||
- **APK publish.** `app-debug.apk` copied to
|
||||
`~/.local/share/pipelines/data/artifacts/167/1/pipelines-debug-wip-8b0d7b1.apk`
|
||||
(`8b0d7b1` = short `HEAD`); `shasum -a 256` matched. The LAN URL
|
||||
`http://10.0.0.249:8080/artifacts/167/1/pipelines-debug-wip-8b0d7b1.apk` returned
|
||||
`HTTP/1.1 200 OK`, `Content-Type: application/vnd.android.package-archive`,
|
||||
`Content-Length: 18270824`.
|
||||
|
||||
Not verified in this pass: device captures of the stage pane at a narrow and a wide
|
||||
window (the visual review owns the device, per the brief's device policy), so the
|
||||
verdict layout is exercised by the unit tests and the compile only. No server that
|
||||
actually sends `verdict` was available to the implementer, so the block's live
|
||||
rendering against real data is deferred to visual review.
|
||||
|
||||
## One search: the pipelines list drops its inline field (16 Oct 2026)
|
||||
|
||||
The pipelines list carried its own "Search pipelines" text field while the app
|
||||
also has the omni search (the destination pill's Search entry point), so the list
|
||||
offered a second, narrower way to do the same job. The inline field is gone and
|
||||
name narrowing moved into the list's filter control, keeping "filters narrow one
|
||||
list" separate from "search finds things across the system".
|
||||
|
||||
- **One field removed.** `PipelineListScreen` no longer owns a `query` state or
|
||||
draws the `OutlinedTextField`; the list is now the first thing under the app
|
||||
bar, so no spacer stands in for the field that used to sit there.
|
||||
- **Name is a filter.** `PipelineFilters` gained a free-text `name` facet beside
|
||||
`presence`/`lastRunStatuses`, applied by `filterPipelines` through the new
|
||||
`pipelineMatchesName` (case-insensitive `contains`, blank means any). Unlike the
|
||||
run facets it needs no run history, so it narrows as soon as the pipelines load
|
||||
while the run facets still wait for `runsKnown`.
|
||||
- **In the menu.** `PipelineFilterControl` opens with a `Name` section holding a
|
||||
single-line `PipelineNameFilter` (label "Pipeline name contains") that keeps the
|
||||
menu open while typing; the shared Clear filters resets it with the run facets
|
||||
and the active-count badge counts it.
|
||||
- **Persisted.** `SettingsRepository`/`AppViewModel` store the name under
|
||||
`pipeline_filter_name` like the other facets, so a restart remembers it.
|
||||
- **Runs list unchanged.** The runs list never had an inline search field, so
|
||||
nothing was removed there.
|
||||
- **Geometry.** No new `dp`/`sp` literal and no percentage: the field reuses
|
||||
`SPACING_M`/`SPACING_S` and fills the filter menu's own width, and the reclaimed
|
||||
vertical space comes from the removed field's layout, not a replacement
|
||||
constant.
|
||||
|
||||
Evidence (macOS, JDK 17 from Homebrew `openjdk@17`, Gradle 8.11.1 from the wrapper
|
||||
cache, `ANDROID_HOME=/Users/alan/Library/Android/sdk`, `--no-daemon --offline`):
|
||||
|
||||
- `:app:testDebugUnitTest` → `BUILD SUCCESSFUL`; the 35 result XMLs aggregate to
|
||||
**312 tests, 0 failures, 0 errors, 0 skipped**. `ListFilterTest` now has 20 cases
|
||||
(+4: name substring/blank, name before the run history, name AND the run facets,
|
||||
active count/`hasRunFacets`; `pipelineFiltersFromStorageParsesAndFallsBack` now
|
||||
covers the name).
|
||||
- `:app:assembleDebug` → `app-debug.apk` **18,164,618 bytes**, sha256
|
||||
`375be755d03d17c7721fe5b4ea23f637c928fd48acc300b4aec9f3d3cf2d4e50`.
|
||||
- **APK publish.** `app-debug.apk` copied to
|
||||
`~/.local/share/pipelines/data/artifacts/171/1/pipelines-debug-wip-e7c4b8f.apk`
|
||||
(`e7c4b8f` = short `HEAD`); `shasum -a 256` matched. The LAN URL
|
||||
`http://10.0.0.249:8080/artifacts/171/1/pipelines-debug-wip-e7c4b8f.apk` returned
|
||||
`HTTP 200`, `Content-Type: application/vnd.android.package-archive`,
|
||||
`Content-Length: 18164618`.
|
||||
|
||||
Not verified in this pass: device captures (the visual review owns the device, per
|
||||
the brief's device policy), so the filter-menu name field's on-screen layout is
|
||||
exercised by the compile and the pure filter tests only.
|
||||
|
||||
Reference in New Issue
Block a user