polish compact pipeline and run lists

This commit is contained in:
2026-10-31 02:11:24 +00:00
parent 24a9a61219
commit 6a7dfae2a1
9 changed files with 199 additions and 529 deletions
+6 -5
View File
@@ -3,8 +3,7 @@ import 'package:flutter/material.dart';
import '../adaptive/host.dart';
/// The one status glyph a run row leads with, as the web's `statusIcon`: a
/// single coloured icon whose tooltip and accessible name say the state.
/// The shared status glyph whose tooltip and accessible name say the state.
///
/// [state] is the normalised run state (`succeeded`, `failed`, `running`,
/// `waiting`, `queued`, `canceled`, `interrupted`, anything else unknown);
@@ -47,7 +46,7 @@ CupertinoDynamicColor runStatusColor(String state) => switch (state) {
'succeeded' => CupertinoColors.systemGreen,
'failed' => CupertinoColors.systemRed,
'running' || 'active' => CupertinoColors.systemBlue,
'waiting' => CupertinoColors.systemTeal,
'waiting' => CupertinoColors.systemYellow,
'interrupted' => CupertinoColors.systemOrange,
_ => CupertinoColors.systemGrey,
};
@@ -58,7 +57,8 @@ IconData _materialIcon(String state) => switch (state) {
'running' || 'active' => Icons.autorenew,
'canceled' => Icons.block,
'interrupted' => Icons.pause_circle_outline,
'waiting' || 'queued' => Icons.schedule,
'waiting' => Icons.person_outline,
'queued' => Icons.schedule,
_ => Icons.help_outline,
};
@@ -68,7 +68,8 @@ IconData _cupertinoIcon(String state) => switch (state) {
'running' || 'active' => CupertinoIcons.arrow_2_circlepath,
'canceled' => CupertinoIcons.nosign,
'interrupted' => CupertinoIcons.pause_circle,
'waiting' || 'queued' => CupertinoIcons.clock,
'waiting' => CupertinoIcons.person_crop_circle,
'queued' => CupertinoIcons.clock,
_ => CupertinoIcons.question_circle,
};