App: run failure reasons, Run again, labelled tabs, actionable errors, nav fixes

- Run rows show a failed run's reason (else its diagnostic's first line,
  full text in a tooltip) or a short result preview; the Summary leads
  with "Why it failed".
- Run again for succeeded/canceled/interrupted runs opens the New run form
  pre-filled (prompt, workspace, report format) at the latest version with
  the original offered.
- Run detail and stage tabs show their names; touch shows captions on the
  Runs header and artifact viewer actions (desktop keeps tooltips).
- ErrorNotice maps not connected / server too old / permission / timeout
  to what to do, raw detail behind Details (Schedules, create chat, Runs,
  Pipelines banners).
- Settings has no Back arrow; Schedules keeps the rail on wide windows;
  phone Settings leads with Connection and Notifications and has a
  Jump to topic menu.
- Walkthrough: Open Connection (skipped when connected), labelled Copy.
- Pluralised counts; no duplicate status/rail names for screen readers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 20:16:22 +00:00
parent c441400f36
commit 545291e04a
68 changed files with 1719 additions and 156 deletions
@@ -0,0 +1,48 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pipelines_app/ui/navigation/labelled_icon_button.dart';
/// Touch shows an action's caption under its icon (no hover tooltip there);
/// desktop keeps the icon with its tooltip. Both are named once for
/// assistive technology.
void main() {
Future<void> pump(WidgetTester tester) => tester.pumpWidget(
MaterialApp(
home: Scaffold(
body: Center(
child: LabelledIconButton(
icon: Icons.sort,
label: 'Sort runs: Newest first',
caption: 'Sort',
onPressed: () {},
),
),
),
),
);
testWidgets(
'touch draws the caption and names the full action',
(tester) async {
final semantics = tester.ensureSemantics();
await pump(tester);
expect(find.text('Sort'), findsOneWidget);
expect(find.byType(Tooltip), findsNothing);
expect(find.bySemanticsLabel('Sort runs: Newest first'), findsOneWidget);
expect(tester.getSize(find.byType(LabelledIconButton)).height, 48);
semantics.dispose();
},
variant: TargetPlatformVariant.only(TargetPlatform.android),
);
testWidgets(
'desktop keeps the icon with its tooltip',
(tester) async {
await pump(tester);
expect(find.text('Sort'), findsNothing);
expect(find.byTooltip('Sort runs: Newest first'), findsOneWidget);
expect(find.byType(IconButton), findsOneWidget);
},
variant: TargetPlatformVariant.only(TargetPlatform.linux),
);
}