djaodjin/djaoapp

Connected profiles: clicking "add profile" on empty should show error message

Opened this issue · 4 comments

The API calls returns a 400 when clicking "add profile" without entering any input in the text box but no UI elements is showing what is happening.
1/ Mark the input box with a red border.
2/ add a "Please enter the name of a profile you are looking for." message under the input box.

This problem can be solved by just adding required attribute. Let me know if you still want me to code the custom error logic.

Will adding required trigger some feedback to the user?

Yes, the native browser error message

OK. Make sure the required is added as part of the PR for #77.