Skip to content

refactor: v2 - run view - run menu#2358

Draft
maxy-shpfy wants to merge 1 commit into
06-02-refactor_v2_-_run_view_-_windows_top_menufrom
06-02-refactor_v2_-_run_view_-_run_menu
Draft

refactor: v2 - run view - run menu#2358
maxy-shpfy wants to merge 1 commit into
06-02-refactor_v2_-_run_view_-_windows_top_menufrom
06-02-refactor_v2_-_run_view_-_run_menu

Conversation

@maxy-shpfy

@maxy-shpfy maxy-shpfy commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Description

The Run menu in the Run View has been expanded with functional implementations for previously disabled actions, and new actions have been added. Menu items that were placeholders (Cancel Run, Rerun Pipeline) are now fully wired up, and new options for viewing YAML inline, cloning a pipeline, and exporting YAML have been introduced.

Each action has been extracted into its own dedicated hook:

  • useCancelPipelineRun — manages a confirmation dialog flow before calling the cancel API, with toast notifications on success or failure
  • useClonePipelineRun — copies the current run's component spec and arguments (excluding secret arguments) into a new pipeline and navigates to it
  • useRerunPipelineRun — resubmits the pipeline with the original arguments and authorization token, then navigates to the new run
  • useInspectPipeline — navigates to the pipeline editor for the given pipeline name
  • useExportPipelineYaml — serializes the component spec to YAML and triggers a file download
  • useYamlViewer — controls open/close state for the inline YAML viewer

These hooks are composed in useRunMenuActions, which is consumed by RunMenu. The component now renders a ConfirmationDialog for cancel confirmation and a fullscreen TaskImplementation viewer when the YAML viewer is open.

Related Issue and Pull requests

Type of Change

  • Bug fix
  • New feature
  • Improvement
  • Cleanup/Refactor
  • Breaking change
  • Documentation update

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

  1. Navigate to a run in the Run View.
  2. Open the Run menu and verify the following items appear:
    • View YAML — opens a fullscreen YAML viewer for the pipeline spec
    • Inspect Pipeline — navigates to the editor (only visible when the user has editor access and a pipeline name is available)
    • Clone Pipeline — clones the run into a new pipeline and navigates to it
    • Export YAML — downloads the pipeline spec as a YAML file
    • Cancel Run — visible for in-progress runs created by the current user; clicking opens a confirmation dialog before cancelling
    • Rerun Pipeline — visible for completed runs; clicking resubmits the pipeline and navigates to the new run
  3. Confirm that loading/disabled states are shown correctly during async operations.
  4. Confirm that toast notifications appear on success and error for cancel, clone, and rerun actions.

Additional Comments

Secret arguments are intentionally excluded when cloning a pipeline run, as they cannot be safely serialized into plain string inputs.

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: 06-02-refactor_v2_-_run_view_-_run_menu/d5b0a0e

maxy-shpfy commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator Author

@maxy-shpfy maxy-shpfy force-pushed the 06-02-refactor_v2_-_run_view_-_windows_top_menu branch from 038202b to 49fcf52 Compare June 11, 2026 06:22
@maxy-shpfy maxy-shpfy force-pushed the 06-02-refactor_v2_-_run_view_-_run_menu branch from 931c916 to d5b0a0e Compare June 11, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant