- Select mode (bar Select or long-press): per-row checkboxes, per-day
Select all/Deselect all over finished runs only, "N selected" with the
selection size, Delete and Done. Active runs get a disabled checkbox
whose semantics give the reason.
- Native destructive confirmation, then delete_runs {run_ids} (batched by
1000); the nested runs_deleted reply removes deleted rows and reports
"Deleted N runs, freed X" plus refusals verbatim. runs_removed pushes
remove rows and close an open detail; a deleted open run closes too.
Delete run in the row and detail menus.
- size_bytes shown compactly in rows (0/absent = unknown, nothing shown),
updated from run_event frames that carry it; Largest first sort (flat,
unknowns last); the sort choice persists.
- Shared AppListRow gains selectionControl and onLongPress.
- Browser probe tool/runs_delete_probe.mjs; fixture server implements
delete_runs/runs_removed.
1.3 KiB
Runs: multi-select delete and size sort
Client side of the delete_runs contract (server built in parallel):
- Request
delete_runs{run_ids: [int]}; replyruns_deleted{deleted: [int], refused: [{run_id, reason}], freed_bytes: int}. - Broadcast
runs_removed{run_ids: [int]}removes rows and closes an open detail (route returns to the list). - Run summaries may carry
size_bytes; absent means unknown (nothing shown, sorted last under Largest first).
UI: bar action Select (or long-press a row) enters select mode; day headings
get Select all / Deselect all for that day's finished runs; active runs have a
disabled checkbox whose semantics give the reason. The bar shows N selected,
the selection size, Delete and Done. The run row and detail menus offer
Delete run for finished runs. The sort choice persists
(pipelines.next.runsSort.v1).
Code: lib/features/runs/domain/run_deletion.dart,
ui/runs_selection.dart, ui/runs_selection_bar.dart,
actions/delete_runs_{action,dialog}.dart, data/runs_sort_store.dart.
Tests: test/features/runs/domain/run_deletion_test.dart,
test/features/runs/ui/runs_delete_test.dart.
Browser evidence: node tool/runs_delete_probe.mjs build/web <dir> (real app
against tool/runs_probe_server.mjs, which now implements delete_runs).