Improved Rule Drag and Drop

As part of the updates around Gauges in Super Tiles, we made some improvements to the underlying drag-and-drop system. As a follow-up to this, we’ve applied these enhancements to the Rule Editor.

These improvements include:

  • Improved performance - smoother and more intuitive dragging experience
  • Display of a ‘placeholder’ for where your dragged tile would land
  • Item movement is animated as items change position
  • Dragging an item that is open for editing maintains the state
3 Likes

Hi @josh !
Is there a way to drag existing actions into a new IF path?
I have an existing rule with steps.
Now, I want this rule to first validate the status of a true/false variable.
I’ve added the IF statement to test the variable, and am trying to drage the rest of the steps into the THAN path, but can’t. I can only drag above the entire IF step.
Any way to resolve this or bypass it to achieve the same goal?
I’d like to avoid using another rule to call the rule I need.

1 Like

Hey Yochai,

Drag-and-drop currently only moves items at the same nesting level. You can reorder steps that sit next to each other, but you cannot drop existing steps into the Then or Else of a new IF. There is also no cut/paste for individual actions.

If you want the rest of the rule to run only when that true/false variable is true, the practical options in a single rule are:

  1. Recreate those steps inside the Then path of the IF, then delete the originals that sit outside it.
  2. Duplicate the whole rule if that makes rebuilding faster, then edit the copy.

A second rule that checks the variable and then runs this one is the other common pattern, but I know you would rather keep it in one rule.

This has come up before as a feature request: Rule Engine - Flexibility in moving components around

If that matches what you need, you can vote it up at the top of that thread.

Hi @sam
Thanks.
I didn’t quite understand how copying the rule will help. As I still can’t drag the steps into the IF>Than path.

Is there a way to incorporate it above the steps so that the ELSE clause will terminate the rule, and the empty THEN clause will just continue to execute the following steps in the rule?

Hey Yochai,

Sorry that was confusing. Duplicating the rule does not unlock nesting. Same-level-only drag still applies in the copy. The only reason to duplicate is if rebuilding the Then path from scratch is faster on a fresh copy than editing the original.

On the empty Then / Else terminate idea: after an IF finishes either path, the rule continues with any steps that sit after the IF at the same level. An empty Then does not create a special fall-through, and Else does not skip those later sibling steps. So that pattern will not gate the rest of the flow the way you are hoping.

To make the rest of the rule depend on the variable, those steps still need to live inside the Then path (recreate them there), or keep the variable check in a small parent rule that runs this one.

If you want a second pair of eyes on structure, a Rule Screenshot helps: Rule Screenshot Guide - SharpTools Knowledge Base

1 Like

Thanks, Sam.
Sadly, I understand there’s no workaround to rebuilding. Will do.