Files
pipelines/app/lib/features/pipelines/pipeline_graph_hook.dart
T
alan a44f31b989 feat(app): add native pipelines list and detail screen
Read-only Pipelines screen for the Flutter client:

- list_pipelines and list_runs with a last-run join, plus get_pipeline
  with an explicit version (0 = latest); no mutation requests.
- Name, run-presence, last-run-status and schedule filters; six sort
  orders; clear filters; truthful loading, empty and error states.
- Detail Summary, selectable Source and version history with selection
  and return to latest.
- Sequenced list/detail requests so stale replies cannot replace a newer
  selection or open a cleared one; refresh keeps the selected pipeline
  and version.
- Material controls on Android/desktop and Cupertino on iOS; a
  per-label segmented tab row at narrow widths and scaled text, with the
  native control kept wherever an equal share fits.
- Fixture probe entry and Chrome scripts for the rendered evidence;
  widget tests cover filters, sorting, formatting, sequencing, layout
  and the tab row.

Graph rendering remains P2: the Graph tab states that it is pending and
exposes a host hook. PipelinesScreen is not yet registered in the shell.

Evidence and limits: app/notes/P1.md.
2026-10-21 19:09:29 +01:00

29 lines
764 B
Dart

import 'package:flutter/widgets.dart';
import 'pipeline_models.dart';
/// Optional graph integration supplied by the later graph item (P2).
///
/// [onStageSelected] reports the graph's stage key with the pipeline identity
/// this detail was loaded for, so a host can route to a stage view without the
/// pipelines feature owning the graph.
typedef PipelineGraphBuilder =
Widget Function(
BuildContext context,
PipelineDetail detail,
ValueChanged<String> onStageSelected,
);
/// One stage selected in a hosted graph.
class PipelineStageRef {
const PipelineStageRef({
required this.pipelineId,
required this.version,
required this.stageKey,
});
final int pipelineId;
final int version;
final String stageKey;
}