Give the Android client a dark-first Material 3 look and TUI-style graph terminals
Three UI changes requested after reviewing the first on-device screenshots:
- Dark-first theme: the app now owns its colour scheme instead of following the
system wallpaper. Theme.kt defaults to a deliberate darkColorScheme built from
a mint/teal seed with an amber tertiary (new Color.kt) so it matches the dark
Pipelines TUI; dynamic colour is gone and a complete light scheme is retained
for when it is explicitly requested. themes.xml/colors.xml give the app a dark
window background and dark system bars with light icons, so launching never
flashes light.
- Workflow graph matches the TUI: the #success/#failure terminals now share a
lower row under the stage row, with arrows entering their top borders and the
error -> #failure route leaving the bottom of its source stage, mirroring
internal/tui/graph_layout.go ('Terminals share a lower row...') and graph.go's
'[FAILURE] [SUCCESS]' bottom row. Fit-to-content, pan clamping, the Fit
action, run highlighting and the TalkBack description are preserved.
- More style: consistent Material 3 top app bars for Pipelines, Runs and
Settings, the new colour scheme applied across the screens and state
components, and monospace retained for hashes, source and run input/output.
Verified on the host and on the device: :app:compileDebugKotlin, :app:assembleDebug
and :app:testDebugUnitTest succeed offline with 34 tests and 0 failures
(WorkflowGraphTest grew to 15 tests covering the terminal row, bottom exits and
fit/clamp), and the app was run on the Pixel_Fold_API_36 emulator in dark mode
against the live server: the whole 4-stage graph renders with its terminal row,
and the list, detail and settings screens use the new theme.
This commit is contained in:
+25
-11
@@ -81,10 +81,18 @@ stops it.
|
||||
|
||||
- Pipeline list (search/refresh, empty/error/loading states), pipeline details
|
||||
(version list, content hash, source) and the workflow graph.
|
||||
- Workflow graph composable: content-sized nodes, labelled outcome edges
|
||||
(`error*` marks the implicit fallback), `#success`/`#failure` terminals, loops
|
||||
and branches, pan/zoom, and run highlighting (executed routes highlighted,
|
||||
others dimmed) plus a screen-reader description.
|
||||
- Workflow graph composable: content-sized stage nodes laid out in one row in
|
||||
declaration order, with `#failure`/`#success` terminals sharing a lower row and
|
||||
arrows entering their top borders (an `error -> #failure` route leaves its
|
||||
source's bottom); labelled outcome edges (`error*` marks the implicit
|
||||
fallback), loops and branches, pan/zoom, and run highlighting (executed routes
|
||||
highlighted, others dimmed) plus a screen-reader description.
|
||||
- Dark-first Material 3 theme with an app-owned colour scheme (no dynamic/
|
||||
wallpaper colour): the dark scheme is the default and the window background and
|
||||
system bars are dark so launching shows no light flash; a complete light scheme
|
||||
is retained for when it is explicitly requested.
|
||||
- Consistent Material 3 top app bars on Pipelines, Runs and Settings (and the
|
||||
existing back/refresh/start/cancel/retry bars on the detail screens).
|
||||
- Run history with server `usage` aggregates, and run details with steps
|
||||
(status/outcome/diagnostic/session/transcript/file changes/notifications/
|
||||
control evidence). Session evidence is scoped to the selected run and each
|
||||
@@ -121,13 +129,15 @@ Verified on macOS with the host toolchain (JDK 17 from Android Studio,
|
||||
`ANDROID_HOME=/Users/alan/Library/Android/sdk`, Gradle 8.11.1 `--offline`):
|
||||
|
||||
- `:app:compileDebugKotlin`, `:app:assembleDebug` and `:app:testDebugUnitTest`
|
||||
all succeed; **20 unit tests, 0 failures** (protocol model, graph semantics,
|
||||
server URL, workflow-graph layout). Re-run with `--rerun-tasks` to confirm.
|
||||
all succeed; **34 unit tests, 0 failures** (protocol model, graph semantics,
|
||||
server URL, workflow-graph layout including the terminal row, bottom exits and
|
||||
back edges). Re-run with `--rerun-tasks` to confirm.
|
||||
- The debug APK was installed and driven on the `Pixel_Fold_API_36` emulator
|
||||
(Android 16) against a live server at `ws://10.0.2.2:8080/connect` with
|
||||
workspace `/Users/alan`. Settings, pipeline list (all 9 pipelines), pipeline
|
||||
detail, the workflow graph, run history, run detail and the disconnected/
|
||||
reconnect states were captured to `captures/` (git-ignored) and reviewed.
|
||||
(Android 16, `adb shell cmd uimode night yes`) against a live server at
|
||||
`ws://10.0.2.2:8080/connect` with workspace `/Users/alan/repos/pipelines`.
|
||||
Settings, pipeline list (all 9 pipelines), pipeline detail, the workflow graph,
|
||||
run history and run detail were captured to `captures/` and
|
||||
`captures/style_pass/` (both git-ignored) and reviewed.
|
||||
- `adb logcat` for the app package contained no `FATAL EXCEPTION`, Compose or
|
||||
other runtime exception during the sweep.
|
||||
|
||||
@@ -138,4 +148,8 @@ cannot leave the view, added a "Fit graph to view" action, connected on launch
|
||||
when a server URL is already saved, and made the completed/recorded visit wording
|
||||
and the outcome-label contrast consistent. The fitted graph still sits slightly
|
||||
above the box's vertical centre, because the layout box includes padding that is
|
||||
not drawn.
|
||||
not drawn. A later style pass made the theme dark-first (app-owned scheme; the
|
||||
launch window/bar colours match it) and moved the `#failure`/`#success` terminals
|
||||
to a lower row beneath the stage row; before/after captures for the theme, graph
|
||||
and app bar/style are under `captures/style_pass/` (`*_before.png` are the
|
||||
pre-change baseline referenced by the task, `*_after.png` are the new build).
|
||||
|
||||
Reference in New Issue
Block a user