Show running and failed run counts independently

Give the Runs tab separate activity and failure indicators so neither suppresses the other. Reuse known summaries and pushed updates, keep failed states separate from decisions and dismissal counts, and update across tabs even when total attention is unchanged.
This commit is contained in:
2026-11-11 22:10:37 +00:00
parent 9551eceaed
commit efca56e4e4
13 changed files with 415 additions and 99 deletions
+5 -4
View File
@@ -66,9 +66,10 @@ void main() {
),
);
Widget shell({int attention = 0}) {
Widget shell({int attention = 0, int failed = 0}) {
final app = AdaptiveShell(
attentionCount: attention,
failedRunCount: failed,
destinationBodies: {
AppDestination.runs: (_) => ShellBadge(
kind: ShellBadgeKind.running,
@@ -218,15 +219,15 @@ void main() {
);
});
testWidgets('the Runs tab shows one indicator: attention outranks running', (
testWidgets('the Runs tab shows running and failed indicators together', (
tester,
) async {
await setSize(tester, const Size(1200, 800));
await tester.pumpWidget(shell(attention: 2));
await tester.pumpWidget(shell(attention: 2, failed: 2));
await tester.pump();
await tester.pump();
expect(find.text('2'), findsOneWidget);
expect(find.text('4'), findsNothing);
expect(find.text('4'), findsOneWidget);
await tester.pumpWidget(shell());
await tester.pump();