-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Current behavior
To tidy up a workflow, you either have to right-click the canvas and click "Tidy up workflow"
Desired Behavior
We want to add a "Tidy up workflow" button in the command menu ⌘K
. Icon should be a reorder
tabler icon

Technical strategy
- Split
useTidyUpWorkflowVersion
into two separated hooks. One for retrieving diagram from context, the other to perform the query:
- first one will be called
useTidyUp
. It will get theworkflowDiagram
from component context (as it's done today) and calluseTidyUpWorkflowVersion
- second one will be called
useTidyUpWorkflowVersion
, like today, but it will receive the diagram as input (instead of retrieving from context) and perform the apollo query
-
Create a new action 'TIDY_UP' in WORKFLOW_ACTIONS_CONFIG. It should receive
workflowWithCurrentVersion
as input -
Create a new component
TidyUpWorkflowSingleRecordAction
. Take example for other workflow actions. It should:
- call
getWorkflowVersionDiagram
on the workflow version - then call
useTidyUpWorkflowVersion
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🔖 Planned