Format integrated runs and pipelines cleanup

This commit is contained in:
2026-11-11 21:13:38 +00:00
parent b771f3813a
commit 7cb95471cb
7 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -328,7 +328,7 @@ class _PipelinesScreenState extends State<PipelinesScreen> {
key: const Key('pipelines-refresh'),
label: 'Refresh',
icon: Icons.refresh,
onPressed: _controller.load,
onPressed: _controller.load,
);
Widget _materialShell(BuildContext context, Widget body) {
@@ -175,7 +175,7 @@ class _RunPipelineActionState extends State<RunPipelineAction> {
key: runPipelineActionKey,
label: 'Run ${widget.detail.displayName}',
icon: Icons.play_arrow_rounded,
onPressed: _open,
onPressed: _open,
);
}
return FilledButton(
@@ -408,7 +408,7 @@ class _PipelineDetailPanelState extends State<PipelineDetailPanel> {
? 'View runs of this pipeline'
: 'View runs of ${detail.name}',
icon: Icons.list_alt_outlined,
onPressed: widget.onViewPipelineRuns == null
onPressed: widget.onViewPipelineRuns == null
? null
: () => widget.onViewPipelineRuns!(detail.id),
),
@@ -13,5 +13,4 @@ enum PipelineDetailTab {
/// The tab's glyph, the only thing the bottom bar draws (the label is its
/// accessible name); distinct from the shell's Pipelines tab beneath it.
final IconData icon;
}
@@ -62,7 +62,7 @@ class _HumanDecisionActionState extends State<HumanDecisionAction> {
context: context,
run: widget.run,
gateway: widget.gateway,
onRunChanged: _acceptRun,
onRunChanged: _acceptRun,
isCurrent: () => _owns(decision.runId),
);
} finally {
+1 -1
View File
@@ -218,7 +218,7 @@ class _RunsScreenState extends State<RunsScreen> {
run: current,
gateway: widget.gateway,
onRunChanged: controller.acceptRunDetail,
isCurrent: () => mounted && controller.selectedRunId == selected,
isCurrent: () => mounted && controller.selectedRunId == selected,
),
);
});
@@ -123,9 +123,7 @@ void main() {
};
final details = [
for (final tab in renderedRunDetailTabs) tab.icon,
for (final section in shownVisitSections) ...[
section.icon,
],
for (final section in shownVisitSections) ...[section.icon],
for (final tab in PipelineDetailTab.values) tab.icon,
];
for (final icon in details) {