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
@@ -60,6 +60,8 @@ JsonMap probeRunDetail() => {
'id': 7,
'title': 'Release train run',
'name': 'release-train',
'pipeline_id': 24,
'version': 4,
'status': _liveRunStatus ?? 'succeeded',
'created_at': '2026-10-20T08:12:00Z',
'finished_at': '2026-10-20T08:42:00Z',
@@ -255,6 +257,7 @@ List<JsonMap> probeRuns() => [
'title': 'Release train run',
'name': 'release-train',
'status': _liveRunStatus ?? 'succeeded',
'result_preview': 'Release 2.4 shipped; notes published.',
'created_at': '2026-10-20T08:12:00Z',
'finished_at': '2026-10-20T08:42:00Z',
'pipeline_id': 24,
@@ -264,6 +267,10 @@ List<JsonMap> probeRuns() => [
'title': 'Nightly docs run',
'name': 'nightly-docs',
'status': 'failed',
'failure_reason':
'Stage publish failed: the docs host rejected the upload '
'(HTTP 413, bundle larger than 50 MB).',
'diagnostic': 'upload rejected\nHTTP 413 Payload Too Large',
'created_at': '2026-10-19T22:00:00Z',
'finished_at': '2026-10-19T22:03:00Z',
'pipeline_id': 22,
@@ -540,6 +547,21 @@ JsonMap? probeReply(JsonMap request) {
'usage': null,
};
case 'get_run':
if (request['run_id'] == 6) {
// The failed run: its summary row is its whole recorded detail.
final failed = probeRuns().firstWhere((run) => run['id'] == 6);
return {
'id': id,
'type': 'run',
'run_detail': {
...failed,
'version': 1,
'workspace': '/srv/probe/docs',
'input': {'prompt': 'Publish the nightly docs.'},
'steps': <JsonMap>[],
},
};
}
if (request['run_id'] != 7) {
return error('Fixture run ${request['run_id']} is unavailable');
}