-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Make "missing parameter value" message friendlier #2721
Comments
How about changing the design to warning or info so it'll be less intimidating? We can also refine the text to be friendlier: Please set a value for example parameter. |
We should add the error message next to the input fields. |
We shouldn't treat this as an error message. It's just a state of the UI. One possible solution is to mark the parameters which miss value with some indication. |
Would also be good to allow for empty parameters. Sometimes that is intended and I have to make a workaround like enter a text like 'none' when string parameter should be empty. |
@arikfr I'm wondering if we should move those parameters inputs to Ant. Their error message is similar but placed below the form (which makes more sense to me). Furthermore, the date and time pickers are already in Ant. |
I think that @kravets-levko's implementation of dashboard parameters already switches everything to React, so using Ant won't be a problem. But --
|
|
It looks ugly and intimidating. I updated the issue description with the proposed solution. See if you have any comments. |
Yes, this is better this way. Do you think we should just highlight the input without placing any error message below (like in my proposed design). I think it can be enough just to highlight the field but not 100% convinced. |
I think for now the highlight is enough. In most cases the issue is missing value, and this is obvious from the empty highlighted field. |
I think that best approach is to disable the "Execute" button when not all execute conditions are fulfilled, alongside a clear indication of the disable reason. (Working on demo) |
Looking forward :) |
@arikfr are all params required? |
@ranbena yes :-) but it will change eventually. Some additional input:
|
Sounds good. |
Solution
Problem
Currently we piggy back the query execution error mechanism to notify the user that they need to enter a value for a parameter when a value is missing.
On a query screen:
On a dashboard:
The big red message feels very intimidating and I wonder if there is a better way to convey this message?
The text was updated successfully, but these errors were encountered: