Skip to content

web-console: Move duplicate action into editor menu#6562

Merged
Karakatiza666 merged 1 commit into
feldera:mainfrom
Dnreikronos:web_console/duplicate_editor_menu
Jul 3, 2026
Merged

web-console: Move duplicate action into editor menu#6562
Karakatiza666 merged 1 commit into
feldera:mainfrom
Dnreikronos:web_console/duplicate_editor_menu

Conversation

@Dnreikronos

@Dnreikronos Dnreikronos commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

fixes #6110

the pipeline editor was still showing duplicate as a standalone icon after #6520. having duplicate visible while delete was hidden in the three-dot menu felt odd, and it also drifted from the ui in the original video.

this puts duplicate back in that menu and leaves the table action alone. duplicate and delete are both pipeline-level options on the editor page, so keeping them together matches the expected ui.

cc/ @snkas @Karakatiza666

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — cleanly co-locates Duplicate next to Delete in the editor's three-dot menu, where pipeline-level destructive/structural actions belong. The _duplicate snippet removal and the inlined button keep the disabled/title semantics intact.

One tiny nit (non-blocking): the squash-commit body is empty; the PR description is good context and would be worth keeping as the commit body so it survives in git log.

@snkas
snkas requested a review from Karakatiza666 June 30, 2026 08:51

@Karakatiza666 Karakatiza666 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the correct clean fix, the UI now behaves as expected, thank you.

The one fix needed: instead of using title= on the Duplicate and Delete buttons please use

  {#if editConfigDisabled}
    <Tooltip class="whitespace-nowrap" placement="top">Stop the pipeline to delete it</Tooltip>
  {/if}

and

  <Tooltip placement="top">
    {#if unsavedChanges}
      Save the program before duplicating.
    {:else}
      {duplicatePipelineTooltip}
    {/if}
  </Tooltip>

(note that they are placed directly under trigger elements), and remove disabled:pointer-events-none and make sure the tooltip shows up.

@Karakatiza666 Karakatiza666 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to merge this ASAP, I would then fix the tooltip in a separate PR since it's not strictly a regression for this PR

@Karakatiza666
Karakatiza666 force-pushed the web_console/duplicate_editor_menu branch from 4c197a2 to 6c29fbd Compare July 3, 2026 11:33
@Karakatiza666
Karakatiza666 enabled auto-merge July 3, 2026 11:33
@Karakatiza666
Karakatiza666 added this pull request to the merge queue Jul 3, 2026
Merged via the queue into feldera:main with commit 1250f3d Jul 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Button to duplicate a pipeline

3 participants