Give every outcome its own colour and reach stage visits from the Timeline
- GraphPalette: a curated fixed palette plus a deterministic outcome-to-index mapping (no hashCode() % n); every colour is measured at >= 4.5:1 against the dark surface. Node fills differ by kind, and selection inverts the fill. - Run detail: the Steps tab becomes Timeline, one compact line per recorded visit. The stage detail sheet takes the ordered visits plus an initialVisitIndex and shows a visit 1..N tab row only when there is more than one visit; the timeline opens the tapped visit, the graph the most recent. - List pane: pipelines and runs share one ListRow (flat surface, thin divider, leading element, title plus secondary line) with a tonal selected row, and the wide list pane collapses to a 56dp strip. - Navigation: the bottom bar becomes a floating three-icon destination pill at the bottom right with Role.Tab selected semantics, used on both window widths, with 88dp reserved so nothing scrolls under it. - Icons come from the already-declared material-icons-extended; no new dependency. Implemented by pipeline run 55 (pipeline 9 v6). Its ui_reviewer stage failed on a malformed model result rather than on this work, so the change was verified by hand: assembleDebug plus 93 unit tests pass, and the run's captures were reviewed (graph colours per outcome, Timeline entries, visit tabs, selected list row, floating pill).
This commit is contained in:
@@ -358,3 +358,88 @@ device: that Gradle task therefore also (re)installed the debug APK on the
|
||||
attached Pixel 10 Pro Fold; all device-driving commands targeted the emulator
|
||||
serial (`adb -s emulator-5554`) explicitly. The emulator was stopped with
|
||||
`adb emu kill` plus `kill -9` of the surviving `qemu-system-aarch64-headless`.
|
||||
|
||||
## Distinct graph colours, Timeline + visit tabs, real list pane, floating pill
|
||||
|
||||
Four UI changes were verified on the same `Pixel_Fold_API_36` emulator (dark mode
|
||||
after `adb shell cmd uimode night yes`) against the live server at
|
||||
`ws://10.0.2.2:8080/connect`. Nothing in the Pipelines server, its Go source,
|
||||
Docker/compose files or the installer was touched, no run was started from the
|
||||
app, and the attached Pixel 10 Pro Fold was never driven (the debug APK was
|
||||
installed with `adb -s emulator-5554 install -r`, not `:app:installDebug`, so the
|
||||
physical device was not re-installed by this pass either).
|
||||
|
||||
- **Graph colours.** `GraphPalette` is a curated, fixed palette plus a pure
|
||||
deterministic outcome→index mapping (no `hashCode() % 4`). `error` stays the
|
||||
theme error role and `success` the theme tertiary (positive); every other
|
||||
outcome uses one palette colour for both its edge stroke and its label text.
|
||||
Node fills differ by kind (`GraphNodeKind`: terminal success, terminal failure,
|
||||
model, ntfy, other/custom); a selected stage inverts (light fill / dark text)
|
||||
plus a 4px border, and executed-vs-dimmed alpha still applies on top. WCAG
|
||||
contrast is *measured*: `GraphPaletteTest` checks the helper against known
|
||||
reference ratios (white/black 21, `#777`/white 4.48) and asserts every palette
|
||||
colour is ≥ 4.5:1 against `DarkSurface 0xFF0E1513` (measured values range from
|
||||
8.63:1, `approved`, to 13.78:1, `fast`; `success` 11.73:1 and `error` 10.89:1 as
|
||||
the dark scheme supplies them).
|
||||
- **Timeline + visit tabs.** The run-detail `Steps` tab is renamed `Timeline`
|
||||
(key kept `steps`); it renders one compact line per recorded visit (stage,
|
||||
visit number, outcome chip, duration and a brief diagnostic/target description)
|
||||
and nothing else — the heavy evidence moved entirely into the shared
|
||||
`StageDetailSheet`. The sheet now takes a stage's ordered `runSteps` plus an
|
||||
`initialVisitIndex` and shows a `visit 1..N` tab row only when there is more
|
||||
than one visit; the timeline opens on the tapped visit and the graph on the
|
||||
most recent. `runStepFields` gained the step Input/Output blocks, so the sheet
|
||||
still carries status, outcome, duration, visit/max/limit, model target, target,
|
||||
session, agent, diagnostic, transcript, input, output, file changes,
|
||||
notifications and the stage definition.
|
||||
- **Real list pane.** Pipelines and runs now share one `ListRow` (a single flat
|
||||
`Surface`, thin `HorizontalDivider`, leading element + title + secondary line,
|
||||
no per-row elevation) instead of a card per item. The selected row uses the
|
||||
same tonal `secondaryContainer`/`onSecondaryContainer` treatment as the tab
|
||||
rail and destinations, exposed as `selectable` selected state; opening a row
|
||||
selects it and Back clears it. The wide list pane collapses to a 56dp strip
|
||||
(`rememberSaveable`), with the freed width going to the detail.
|
||||
- **Floating destination pill.** The bottom `NavigationBar` is replaced by a
|
||||
floating rounded `Surface` at the bottom right holding the three destinations
|
||||
as 48dp icon targets, inset by the Scaffold's system-bar padding plus 16dp;
|
||||
selected state is a tonal circle plus `Role.Tab` selected semantics (not colour
|
||||
alone). The same pill is used on **both** window widths (no compact strip);
|
||||
the app reserves 88dp at the bottom so no scrollable content is hidden behind
|
||||
it.
|
||||
- **Icons.** Icons are taken from `material-icons-extended` (already declared in
|
||||
`app/build.gradle.kts`/`libs.versions.toml`, BOM-managed — no new dependency
|
||||
and no non-offline Gradle invocation was needed; the artifact was already in
|
||||
the cache). Mapping: Pipelines → `AccountTree`, Runs → `History`, Settings →
|
||||
`Settings`; Graph tab → `Hub`, Timeline → `AutoMirrored.List`, Input →
|
||||
`AutoMirrored.Input`, Output → `AutoMirrored.Send`, Evidence →
|
||||
`AutoMirrored.FactCheck`, Source → `Code`; run statuses → Running
|
||||
`AutoMirrored.DirectionsRun`, Queued `Schedule`, Succeeded `CheckCircle`,
|
||||
Failed `Error`, Canceled `Cancel`, Interrupted `PauseCircle`, Active `Bolt`,
|
||||
Unknown `AutoMirrored.HelpOutline`. The debug APK is ~17 MB; note that
|
||||
`app/build.gradle.kts` sets `release { isMinifyEnabled = false }`, so R8 does
|
||||
**not** strip unused extended icons in the current release config (that
|
||||
stripping only applies to a minified build).
|
||||
- `:app:testDebugUnitTest` reported **93 tests, 0 failures** (new
|
||||
`GraphPaletteTest`, `TimelineTest`, `PipelinesNavTest`; extended
|
||||
`StageDetailSheetTest` and `DetailTabsTest`; `StepMetaTest` was removed with the
|
||||
inline metadata grid it covered). `:app:assembleDebug` succeeded.
|
||||
- Captures were written with `adb -s emulator-5554 shell screencap -p
|
||||
/sdcard/shot.png` followed by `adb -s emulator-5554 pull` (never
|
||||
`exec-out … >`), to `captures/nav_timeline_pass/` (git-ignored):
|
||||
`01_launch`, `02_runs_narrow` (narrow lists + pill), `04_timeline` (the concise
|
||||
Timeline tab), `05_sheet_from_timeline_visits` (sheet from the timeline opening
|
||||
on the tapped visit 1, with visit tabs), `05b_sheet_single_visit_no_tabs` (a
|
||||
single-visit stage shows no tab row), `06_sheet_run_section` (Input/Output in
|
||||
the sheet), `07_run_graph` (executed route highlighted), `08_sheet_from_graph`
|
||||
(same stage opened from the graph, on the most recent visit 2),
|
||||
`09_pipeline_4stage_graph` + `_2x`, `10_pipeline_1stage_graph` + `_2x`,
|
||||
`11_wide_pane_expanded`, `12_wide_pane_selected`, `13_wide_pane_collapsed`,
|
||||
`14_wide_runs_pane`, `15_wide_run_detail`, and the icon close crops
|
||||
`16_pill_wide_2x`, `17_tabs_wide_2x`, `18_runstatus_icons_2x`,
|
||||
`18b_failed_status_2x`, `19_pill_narrow_2x`.
|
||||
- `adb -s emulator-5554 logcat -d` contained 0 `FATAL EXCEPTION` lines and no
|
||||
Compose runtime exception. The wide layout was exercised with
|
||||
`adb shell wm size 2000x3400` (≈820dp at density 390); the emulator was stopped
|
||||
with `adb emu kill` plus `kill -9` of any surviving
|
||||
`qemu-system-aarch64-headless`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user