-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fixed an issue in Group validation: Convert error dialogs to checkers #6418
Conversation
Tested it. Works: Opening dialog: Why is there a red marker at the name if something is entered? If the field is cleared, the error marker appears: Questions: |
Add a subgroup: |
Like I show in the video (please, see the comment mentioned above), when we click the button to "Add subgroup" the group dialog opens with the red and error marker. That should be the behaviour, right? |
Would it be possible to share the video using Loom? (I used to use ScreenToGif, but I was pointed to Loom) |
I question that behavior. A dialog should show required fields, but not show an error when they are not filled when opened. See https://medium.com/@andrew.burton/form-validation-best-practices-8e3bec7d0549 for details. Didn't find something better on this, but maybe we can interpret it together and come to the same conclusion:
There are no other cases; especially not when loading the form the first time. WDYT? |
@koppor When you have not entered anything the fields show red (for example in the shared database) because it's a required field. |
And I say this contradicts typical UX patterns. In case I find time, I will
do more search for articles showing that and providing screenshots of
common tools. Example: Address form when ordering something in an online
shop.
I argue that
1. OK button should be tied to validation (as it is now)
2. A field should be validated if the user changed something or it is not
empty.
3. Mandatory and optional fields should be distinguished somehow, but not
by an error marker.
This results in that the dialog for something new opens without validation
errors.
|
Add a subgroup video: |
Thank you for your patience. I meant following: I think, following text summarizes my thinking:
Source: https://www.nngroup.com/articles/errors-forms-design-guidelines/ |
@koppor Summarize:
My doubts:
|
After reading a bit on best practices, I propose the following:
What do you think? |
We should probably add a section to the developers documentation about validation conventions to keep the UI consistent. |
This seems to require much more work. Since nothing happened the last months and we try to reduce the number of stalled PRs, we are closing this. We are hoping, that there will be some updates soon. |
Fixes #6221
In the Add subgroup Dialog the name field is now mandatory. I also disabled the dialog validation with the error message, because the dialog was duplicate and I tried to kept consistency in the dialogs app (like the SharedDatabaseLogin).
Now the Group Dialog View only activates OK button when the user writes something.