joyent / conch-ui

Web UI for Conch (https://github.com/joyent/conch-api)
2 stars 5 forks source link

No feedback given to the user when invalid input is provided #237

Open karenetheridge opened 4 years ago

karenetheridge commented 4 years ago

e.g. when editing a hardware product field and providing a string where an integer is expected, the POST is sent and then no feedback is given to the user that the input was invalid.

In many cases the check can be done right in the UI (since numbers are submitted properly as numbers in numeric fields, the UI clearly knows which fields are intended to be numeric and which are strings). In other cases the API does additional checks and so the 400 response will need to be detected and conveyed to the user.

(related: #196)