lightning icon indicating copy to clipboard operation
lightning copied to clipboard

Jump to steps on a different branches (i.e., merge)

Open christad92 opened this issue 10 months ago • 2 comments

When building a workflow, user want to be able to reuse a step that has been created in a different branch. For example when a workflow has a series of steps to manage an error can be designed so that it can be reused instead of being duplicated or when a user wants to skip some steps in a workflow.

  • [ ] Implement the UI for connecting two steps by dragging outputs to inputs with validations (see rules)
  • [ ] Allow downstream jobs to handle throughput of input state from other steps

Rules:

  • Disable cyclical flows/branches i.e. A branch should not go upstream on its path thereby causing loops

Designs: https://www.figma.com/file/4hGWdO4sajnjcOwE81j8BK/App-(new)?type=design&node-id=4253-739&mode=design&t=dtwY2FmzuHXrL4hY-0

How users currently manage this:

  • duplicating the step
  • creating a step that calls a different workflow via webhook (see below)

Image

https://www.loom.com/share/45396a36dc4345c9bce3b41b896eaffa

christad92 avatar Apr 19 '24 17:04 christad92

https://reactflow.dev/examples/nodes/add-node-on-edge-drop

stuartc avatar May 09 '24 10:05 stuartc

Image

stuartc avatar May 09 '24 10:05 stuartc

implementation notes:

  • don't autolayout on edge creation
  • add a toolbar on the chart with zoom and layout controls
  • cross fingers on dagre

josephjclark avatar May 29 '24 10:05 josephjclark