New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collapse the params text area field in the action selector as it is an optional field. #32872
Comments
The params section has been a source of confusion as seen in user tests, repeatedly. For an optional field and one that is not at all used -- it occupies prominent space in the action selector. We could address this by hiding this section by default when there are no params configured. (This should be in-line with the behaviour of a JS function which does not have any params configured) |
It does and we have similar params input field for navigateTo. There is also a point where this helps user understand that
Could you please elaborate what do you mean by
|
TL;DR: Parameters that are optional should not show upfront when calling a function, in the action selector. Docs is probably a better way to discover them. Let me illustrate the point by using
APIs have a params section in their config. page. And, these are optional too. https://pasteboard.co/avjKN7BObHJO.png In my understanding -- the params section in the action selector, technically, is the place to pass arguments and not to define params. Coming to action selector to define params and then going back to the query to refer these as I see that there is a problem with SQL queries because there is no way for a person to define the params while writing their query. And, action selector seems to the only way for a person to deduce that params could be passed. Still, this is a convoluted way. We can solve this by introducing a means for one to define params while writing the query itself (similar to defining inputs in query modules), but that is a different task. |
I believe there is a misunderstanding here due to use of
According to point mentioned above, the problem is for all queries and APIs.
Yes, correct. We only pass params using action selector. I agree that we can hide or collapse the section and let it be optional. I was not in favour of removing the params input. |
Had a discussion with @vinay-appsmith, and we came to a conclusion about the need for an arguments section and the confusion about the params section in the API editor with Vinay will add more details about future planning for this task for now we can move this back to product backlog. |
More details: Interim solve: Make the optional params field collapsed by default in the action selector (will solve for taking up additional space in the action selector window). https://pasteboard.co/S1Tr30yW5QLC.png If the usage of the current params, for queries, in the action selector, is very low (< 5% of users who call queries), remove this functionality altogether and solve this via the systemic route. Else, do an interim fix of collapsing the field. cc @Nikhil-Nandagopal Irrespective of the solution route, the optional params section needs to be collapsed in actions like NavigateTo. |
No description provided.
The text was updated successfully, but these errors were encountered: