feat(app): wire saved schedules into the pipeline summary

This commit is contained in:
2026-10-22 00:41:55 +01:00
parent 2adecfff5e
commit ea2179cd66
22 changed files with 2381 additions and 11 deletions
+6 -1
View File
@@ -81,7 +81,11 @@ class _PipelinesScreenState extends State<PipelinesScreen> {
final wide = constraints.maxWidth >= kPipelinesWideBreakpoint;
if (!wide) {
return _controller.hasSelection
? PipelineDetailPanel(controller: _controller, showBack: true)
? PipelineDetailPanel(
controller: _controller,
gateway: widget.gateway,
showBack: true,
)
: PipelineListPanel(controller: _controller);
}
return Row(
@@ -96,6 +100,7 @@ class _PipelinesScreenState extends State<PipelinesScreen> {
flex: 3,
child: PipelineDetailPanel(
controller: _controller,
gateway: widget.gateway,
showBack: false,
),
),
@@ -2,6 +2,7 @@ import 'dart:math' as math;
import 'package:flutter/material.dart';
import '../../../core/api_gateway.dart';
import '../../graph/widgets/stage_definition_view.dart';
import '../pipeline_models.dart';
import '../pipeline_query.dart';
@@ -25,10 +26,12 @@ class PipelineDetailPanel extends StatefulWidget {
const PipelineDetailPanel({
super.key,
required this.controller,
required this.gateway,
required this.showBack,
});
final PipelinesController controller;
final ApiGateway gateway;
final bool showBack;
@override
@@ -94,7 +97,11 @@ class _PipelineDetailPanelState extends State<PipelineDetailPanel> {
Expanded(
child: switch (_tab) {
PipelineDetailTab.summary => _scrolling(
PipelineSummaryView(controller: _controller, detail: detail),
PipelineSummaryView(
controller: _controller,
detail: detail,
gateway: widget.gateway,
),
),
PipelineDetailTab.graph => PipelineGraphTab(
detail: detail,
@@ -1,6 +1,8 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../../core/api_gateway.dart';
import '../../schedules/ui/pipeline/schedule_pipeline_section.dart';
import '../pipeline_format.dart';
import '../pipeline_models.dart';
import '../pipeline_query.dart';
@@ -8,18 +10,20 @@ import '../pipelines_controller.dart';
import 'pipeline_controls.dart';
import 'pipeline_detail_styles.dart';
/// Summary tab: key/value facts plus the version history. Version rows are
/// selectable; the latest version's row is marked and a historical selection
/// offers an explicit return to latest.
/// Summary tab: key/value facts, the pipeline's saved schedules and the version
/// history. Version rows are selectable; the latest version's row is marked and
/// a historical selection offers an explicit return to latest.
class PipelineSummaryView extends StatelessWidget {
const PipelineSummaryView({
super.key,
required this.controller,
required this.detail,
required this.gateway,
});
final PipelinesController controller;
final PipelineDetail detail;
final ApiGateway gateway;
@override
Widget build(BuildContext context) {
@@ -37,6 +41,11 @@ class PipelineSummaryView extends StatelessWidget {
),
),
_fields(context),
SchedulePipelineSection(
gateway: gateway,
pipelineId: detail.id,
version: detail.resolvedVersion,
),
_versions(context),
],
);