android: drop the pipelines list inline search, add a filter-menu name facet
The pipelines list carried its own "Search pipelines" field while the app also has the omni search, so the list offered a second, narrower way to do the same job. Remove that field and move name narrowing into the list's filter control, keeping "filters narrow one list" separate from "search finds across the system". - PipelineListScreen no longer owns a `query` state or draws the OutlinedTextField; the list is now the first child under the app bar, so the reclaimed space comes from layout with no compensating spacer or new dp value. - PipelineFilters gains a free-text `name` facet beside presence/lastRunStatuses, applied by filterPipelines through the new pure pipelineMatchesName (case-insensitive contains, blank means any). It needs no run history, so it applies as soon as pipelines load while the run facets still wait for runsKnown; activeCount and isActive include it, and hasRunFacets gates just the run facets. - PipelineFilterControl opens with a Name section holding a single-line PipelineNameFilter labelled "Pipeline name contains"; the shared Clear filters resets it with the run facets and the active-count badge counts it. - SettingsRepository/AppViewModel persist the name under pipeline_filter_name. - Empty-state messages reflect the name-only miss. - ListFilterTest covers the new name narrowing (+4 cases) and storage parsing. - android/README.md documents the change and the build/APK evidence. The runs list never had an inline search field, so nothing was removed there.
This commit is contained in:
@@ -3776,3 +3776,53 @@ verdict layout is exercised by the unit tests and the compile only. No server th
|
||||
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