Not possible to move switch actions up or down #26
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixed in
e4f3978(committed locally, push blocked on a 1Password approval).Two causes, both gone:
showOrdering = false, so the overflow menu held only Remove — no Move up/Move down existed for any step in such a workflow.withStepMovedrequiredlinearActionNodesOrNull(), which is null for any graph holding a switch, so even a wired-up control would have been a silent no-op.Moves are now lane-relative on the route projection: a step reorders within its own lane (trunk or branch), and the lane's edges are rebuilt from the new order — including the branch-tail edges that feed whatever follows the switch. A move that would place a step above the step whose output it reads is refused with a sentence naming both, leaving the draft unchanged.
Verified on emulator-5554: Move up on the switch reordered the trunk; Move up inside the "Matching" branch reordered that lane only; moving a step above its value source produced "Show notification reads a value from Make uppercase, which would no longer run before it." with the route unchanged. Covered by
a step moves within a branch lane of a switched workflow,a trunk step moves even though the route holds a switch, anda move that would strand a value reference is refused with an explanation.