-
Notifications
You must be signed in to change notification settings - Fork 75
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
Adding links to namespaces has undesireable UX #1622
Adding links to namespaces has undesireable UX #1622
Conversation
Note that Save button is still active (the previous functionality stays and button does not save invalid data and displays its own error message). Should it be disabled? |
327fa0f
to
3eb8177
Compare
Ah, ideally yes, when a link fails UI validation, the Save button should be disabled. Once UI validation is successful, the user can submit and then possibly get hit with the errors from the API from any other model validations. But I think this is still missing the part where we take the errors from the server response, and show them by the right field as well. Let me know if you need any help with that, I think the error splitting logic is implemented in |
The server does not return errors that could be easily assigned to particular items. For example for 3 invalid items (2 blank names and 3 invalid urls) it says: 0: {status: "400", code: "invalid", title: "Invalid input.", detail: "'asdsadads' is not a valid url.",…} I suggest that better way is to do good client side validation instead. What do you think? |
Another thing. Company name field has IsRequired in the textinput, but no error message is shown when it is empty, nor the server returns any errors. The IsRequired should not be here i guess? |
84e1769
to
6f1f8e5
Compare
Well we still need to show server errors when they do happen, but agreed we can't really show server errors together with the right item, and clients side validation is enough to make it nice :) |
Yeah agreed, I'm pretty sure the company name is not required now. There used to be an So, harmless, but feel free to remove it, I agree it doesn't belong there :) |
ff1704b
to
b168721
Compare
fc6a643
to
eb77f5e
Compare
Issue: AAH-149 Signed-off-by: Milan Pospisil <arkanus@seznam.cz>
eb77f5e
to
37688b0
Compare
Issue: AAH-149
https://issues.redhat.com/browse/AAH-149
This issue is to track some follow-on work from AAH-18. Now at least adding links works mostly as expected, but there is still some undesirable behavior: