11
Views
3
Comments
Connection Lines/Actions Grid System

Something that would be really nice to have would be a grid system in the actions editor that allows bending the lines between connected nodes similar to how a flow chart on draw.io allows you to change how connecting arrows are shaped between items on the flow chart to keep it organized. 


Right now, without adding useless variable nodes to help keep connecting wires from getting too messy in loops or complicated logic, I have to really think about where I place "If" checks in the flow to keep them from getting confused. 


For example, and this isn't the most complicated of our actions:


It gets out of control pretty fast. When I'm organizing flow charts when designing a new action, I use draw.io and realized it would be really nice if OS would add this type of flexibility to the action editor:

Here is the same portion of the action in OS:


What do you do to keep it tidy in your actions?

2024-12-10 04-40-04
Gitansh Anand

Hi @DDPIdeas is the right place for submitting your suggestions, but please search in already existing ideas and verify someone else has not already suggested a similar idea to avoid duplication.

And as for now, to make your code look more simple, you should try breaking the code into parts, for example, in your first image everything inside the loop can be moved into a new action, the action should contain inputs for any value that is being used from logic before the loop. Then your loop will call the new action only, this way your action in the image will not look complex at all and the new action can be in a linear flow and it will also not look complex at all. Refer the images below. But please don't over normalize your code, do it only when required like when an action is becoming very long or complex to read. Also as best practice you can add comments.

Thanks
Gitansh Anand

UserImage.jpg
DDP

Splitting into smaller actions is a give-take for me, I'd prefer to have as few actions as possible because it makes it easier to figure out which part of the action I need to modify/update/etc. If there's nesting going on, then you have to figure out "Ok, which part of the flow does this?" and it can be a little time consuming going back and forth between nested actions. If we had multiple windows in a real sense, that would fix that issue. Being able to open multiple actions at a time would be really nice. 

2024-10-16 11-59-48
Nick Vandebriel

Hi DDP,

I usually try to keep my actions on one screen, if they get bigger I try to extract parts to other action. 

What I also sometimes do is use dummy assigns to align everything a bit nicer

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.