feat(app): finish native run Changes wiring and scaled form menus

This commit is contained in:
2026-10-21 20:48:45 +01:00
parent 7b327f012b
commit 77c71eb45e
18 changed files with 1956 additions and 159 deletions
@@ -44,6 +44,13 @@ class RunChanges {
RunChanges runChanges(List<JsonMap> steps) =>
runChangesFor(stageCaptures(steps));
/// Whether the run-wide final-state aggregate may be presented. Ported from
/// `web/src/changes.js` `showRunChangesSummary`: only a settled succeeded run
/// has a final workspace state. A failed or running run keeps its evidence in
/// each visit's own captured section instead of claiming a settled summary.
bool showRunChangesSummary(Object? status) =>
status != null && '$status'.trim().toLowerCase() == 'succeeded';
/// The same aggregate over already-derived [stageCaptures], so a caller that
/// shows both the summary and the sections parses each capture only once.
RunChanges runChangesFor(List<StageCapture> visits) {