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:
@@ -9,6 +9,7 @@ class WalkthroughStep {
|
||||
required this.body,
|
||||
this.points = const <String>[],
|
||||
this.showsHarnessCommand = false,
|
||||
this.showsConnectAction = false,
|
||||
});
|
||||
|
||||
final IconData icon;
|
||||
@@ -20,6 +21,9 @@ class WalkthroughStep {
|
||||
|
||||
/// Whether this page shows the harness setup command picker.
|
||||
final bool showsHarnessCommand;
|
||||
|
||||
/// Whether this page offers the Open Connection button.
|
||||
final bool showsConnectAction;
|
||||
}
|
||||
|
||||
/// The agents `pipelines harness setup` accepts, in the order they are offered.
|
||||
@@ -28,6 +32,26 @@ const harnessAgents = <String>['claude', 'codex', 'opencode', 'pi'];
|
||||
/// The command for [agent], exactly as a terminal should run it.
|
||||
String harnessSetupCommand(String agent) => 'pipelines harness setup $agent';
|
||||
|
||||
/// The welcome page for an app already connected to its server: nothing to
|
||||
/// connect, so no connect directions or Open Connection.
|
||||
const connectedWelcomeStep = WalkthroughStep(
|
||||
icon: Icons.hub_outlined,
|
||||
title: 'Welcome to Pipelines',
|
||||
body:
|
||||
'Pipelines runs reusable AI workflows and holds chats with coding '
|
||||
'agents. Both live on your server, and this app is connected to it.',
|
||||
points: <String>[
|
||||
'Pipelines: workflows you define once and run again.',
|
||||
'Chats: conversations with coding agents on the server.',
|
||||
],
|
||||
);
|
||||
|
||||
/// The pages for this app: the connect step is skipped when [connected].
|
||||
List<WalkthroughStep> walkthroughStepsFor({required bool connected}) =>
|
||||
connected
|
||||
? [connectedWelcomeStep, ...walkthroughSteps.skip(1)]
|
||||
: walkthroughSteps;
|
||||
|
||||
/// The four walkthrough pages, in order.
|
||||
const walkthroughSteps = <WalkthroughStep>[
|
||||
WalkthroughStep(
|
||||
@@ -43,6 +67,7 @@ const walkthroughSteps = <WalkthroughStep>[
|
||||
'Connect: open Settings, then Connection, enter the Server URL and '
|
||||
'choose Connect.',
|
||||
],
|
||||
showsConnectAction: true,
|
||||
),
|
||||
WalkthroughStep(
|
||||
icon: Icons.build_circle_outlined,
|
||||
|
||||
Reference in New Issue
Block a user