Runs: running run and stage durations tick live

One shared ElapsedClock (single timer, only while a visible running item
is watched and the app is visible; cadence follows formatDuration
precision) and a LiveElapsedBuilder that repaints only its own text.
Running list rows, the Summary Duration and running timeline visits
tick. A stage start re-reads the open detail, since step deltas carry
no started_at. Fixture ?running=1 for captures.
This commit is contained in:
2026-11-04 17:43:29 +00:00
parent fa6c0864db
commit e7d00b85ff
15 changed files with 733 additions and 42 deletions
@@ -163,7 +163,10 @@ void main() {
'totalRebuildsPerMinute=${rebuilds.total} '
'timersScheduledPerMinute=$perMinute',
);
expect(active, lessThanOrEqualTo(1));
// One shared minute clock for the relative times and one shared clock
// for the 20 running rows' ticking durations; never a timer per row.
expect(active, lessThanOrEqualTo(2));
expect(perMinute, lessThanOrEqualTo(61));
await tester.pumpWidget(const SizedBox());
expect(timers.active, 0);
});