Default values when you set parameters for actions/conditions - alternative modification sign component proposal #2327
Replies: 2 comments
-
Setting a default value would be great yeah :) I agree that this field is sub optimal. Code generation will use "=" as the default operator if nothing is set, so you can use as a default value if no valid value is entered (same for the relational operators, == is the default). |
Beta Was this translation helpful? Give feedback.
-
So it's a bit more subtle. More generally, you might think about what to do with selector (material ui's |
Beta Was this translation helpful? Give feedback.
-
Description
Whenever you create a new action/condition, very often there is a modification sign entry box that is left empty by default.
There are two problems with it atm:
=
Solution suggested
My suggestion for the modification sign there is to turn it into a different component that requires only two steps, not 4 (move mouse over it, click).
Set the default value to =, so there is a good chance that it guesses what you want to do for you and you can entirely skip setting it at least half of the times.
This also solves the problem with the bloody dropdown covering the input field for the value right below it. What is even worse is that the dropdown sometimes covers an area around the modal pop up that when clicked closes the parameter editor and loses your edits entirely. So what tends to happen is I click twice on the modification editor - the first click applies the modification, the second click closes the parameter editor and loses all of it's settings.
If you like that suggestion, I can later on do a pr on it? :)
The other suggestion is to populate these fields with a default value whenever we can guess it in advance. Can you think of other fields that can do with a default value?
I think the field expecting a string can have
""
as default value for example, but we can try and think for other cases here.Beta Was this translation helpful? Give feedback.
All reactions