WIP: pipeline page Runs/Run icon actions (run #230)

This commit is contained in:
2026-11-01 20:37:29 +00:00
parent 4503febb07
commit f8903e2f6d
6 changed files with 42 additions and 89 deletions
+6 -1
View File
@@ -32,6 +32,7 @@ class PipelinesScreen extends StatefulWidget {
this.endpoint = '',
this.legacyEndpoints = const [],
this.embedded = false,
this.active = true,
this.syncToken = 0,
this.onRunStarted,
this.onViewPipelineRuns,
@@ -52,6 +53,10 @@ class PipelinesScreen extends StatefulWidget {
/// True under the application shell, which owns the single navigation bar.
final bool embedded;
/// Whether the Pipelines tab is currently visible. The screen stays mounted
/// to preserve tab state, but its pushed detail must not cover another tab.
final bool active;
/// Advances when the shared socket is replaced. The mounted controller
/// reloads the list and the selected detail without losing the selection.
final int syncToken;
@@ -238,7 +243,7 @@ class _PipelinesScreenState extends State<PipelinesScreen> {
);
_page.sync(
context,
selected: _controller.hasSelection && !wide,
selected: widget.active && _controller.hasSelection && !wide,
destination: AppDestination.pipelines,
onClosed: _controller.clearSelection,
builder: (context) => AnimatedBuilder(