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
@@ -1,4 +1,6 @@
import 'package:flutter/material.dart';
import '../../../../core/error_advice.dart';
import '../../../../ui/status/error_notice.dart';
/// The web's directory prompt, also the directory picker's label.
const String chatCreatePrompt = 'Where should this chat live?';
@@ -68,8 +70,12 @@ class ChatCatalogFields extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (loading) return const Text('Loading directories…');
if (error != null) {
return _message('Unable to load chat options: $error');
if (error case final error?) {
// A common failure says what to do; its raw detail stays behind
// Details. Anything else reads as before.
return errorAdvice(error) == null
? _message(Text('Unable to load chat options: $error'))
: _message(ErrorNotice(error: error));
}
final choices = chatDirectoryChoices(directories);
String directoryLabel(String choice) =>
@@ -113,11 +119,11 @@ class ChatCatalogFields extends StatelessWidget {
);
}
Widget _message(String text) {
Widget _message(Widget text) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(text),
text,
Align(
alignment: AlignmentDirectional.centerStart,
child: TextButton(onPressed: onRetry, child: const Text('Retry')),
@@ -13,6 +13,7 @@ import '../folder_picker/folder_picker_route.dart';
import 'chat_create_dialog_frame.dart';
import 'chat_create_fields.dart';
import 'chat_prompt_chooser.dart';
import '../../../../ui/status/error_notice.dart';
/// The instructions field's helper and the creation-time model behavior.
const String chatCreateInstructionsHelper =
@@ -374,12 +375,9 @@ class _CreateChatDialogState extends State<CreateChatDialog> {
key: const Key('chat-create-start-in'),
),
],
if (_formError != null) ...[
if (_formError case final error?) ...[
const SizedBox(height: 8),
Text(
_formError!,
style: TextStyle(color: Theme.of(context).colorScheme.error),
),
ErrorNotice(error: error),
],
],
),