Improve Wappler's validation when working with server actions

Another slightly annoying in the morning. But very frustrating in the evening thing…

When working with server actions there’s a couple of validations that help preventing mistakes. I appreciate that they are there, but they could be a tad smarter to not annoy.

One example is:

  1. I create a condition, then figure out I need to do a database query because I don’t have the data I need yet.

  2. So I right click the step above the condition to create a query. I am met with a ‘field is required’ error:
    image
    image

*This is annoyance one.

  1. I enter any place holder to continue: image

  2. I can now right click and select ‘create action’, and create my query action

  3. I try to go to the query builder. It tells me to ‘enter at least one step’ (in the condition!).
    Annoyance two.

  4. I try to create a comment step in the condition as placeholder. I right click to add it, but again an error: ‘please enter query builder’. So this time the query builder needs input. Which I can’t do. So I’m effectively stuck right now.

Annoyance three

Now the only way to fix it is by deleting one of these steps and putting placeholder info.

This is really taking me out of my flow. I am sure I’m not the only one who works like this. I often try to put steps in the server action as a sort of outline.
So in this case I don’t need to remember what I was going to do with the data from that query: I was making a condition. Which I can see as the very next step.
But now I often have to remove a step purely because of the validation errors preventing me from continuing.

Community Page
Last updated: