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:
@@ -7,16 +7,31 @@ import 'walkthrough_steps.dart';
|
||||
/// Opens the walkthrough as a Material details sheet on phones and a dialog on
|
||||
/// wide windows. [onClosed] runs once however it closes (Skip, Done, the close
|
||||
/// button or a tap outside), so the caller can record it as seen.
|
||||
///
|
||||
/// [connected] skips the connect directions; [onOpenConnection] (Settings'
|
||||
/// Connection) closes the walkthrough and opens it.
|
||||
Future<void> showFirstRunWalkthrough(
|
||||
BuildContext context, {
|
||||
Future<void> Function()? onClosed,
|
||||
bool connected = false,
|
||||
VoidCallback? onOpenConnection,
|
||||
}) async {
|
||||
var openConnection = false;
|
||||
await showAppDetails<void>(
|
||||
context,
|
||||
maxWidth: 560,
|
||||
builder: (sheet) =>
|
||||
FirstRunWalkthrough(onClose: () => Navigator.of(sheet).pop()),
|
||||
builder: (sheet) => FirstRunWalkthrough(
|
||||
onClose: () => Navigator.of(sheet).pop(),
|
||||
steps: walkthroughStepsFor(connected: connected),
|
||||
onOpenConnection: onOpenConnection == null
|
||||
? null
|
||||
: () {
|
||||
openConnection = true;
|
||||
Navigator.of(sheet).pop();
|
||||
},
|
||||
),
|
||||
);
|
||||
if (openConnection) onOpenConnection?.call();
|
||||
await onClosed?.call();
|
||||
}
|
||||
|
||||
@@ -28,8 +43,12 @@ class FirstRunWalkthrough extends StatefulWidget {
|
||||
super.key,
|
||||
required this.onClose,
|
||||
this.steps = walkthroughSteps,
|
||||
this.onOpenConnection,
|
||||
});
|
||||
|
||||
/// Opens Settings' Connection from the connect page; null hides it.
|
||||
final VoidCallback? onOpenConnection;
|
||||
|
||||
/// Called by Skip, Done and the close button.
|
||||
final VoidCallback onClose;
|
||||
final List<WalkthroughStep> steps;
|
||||
@@ -90,6 +109,19 @@ class _FirstRunWalkthroughState extends State<FirstRunWalkthrough> {
|
||||
const SizedBox(height: 8),
|
||||
_Point(text: point),
|
||||
],
|
||||
if (step.showsConnectAction &&
|
||||
widget.onOpenConnection != null) ...<Widget>[
|
||||
const SizedBox(height: 16),
|
||||
Align(
|
||||
alignment: AlignmentDirectional.centerStart,
|
||||
child: FilledButton.tonalIcon(
|
||||
key: const ValueKey<String>('walkthrough.open-connection'),
|
||||
onPressed: widget.onOpenConnection,
|
||||
icon: const Icon(Icons.link),
|
||||
label: const Text('Open Connection'),
|
||||
),
|
||||
),
|
||||
],
|
||||
if (step.showsHarnessCommand) ...<Widget>[
|
||||
const SizedBox(height: 16),
|
||||
const WalkthroughHarnessCommand(),
|
||||
|
||||
Reference in New Issue
Block a user