Add error handling for Progress widget
Problem to solve
In !144874 (merged), it was observed that we currently don't have field validation for the Progress widget, but only allow values between 0
-100
. If a user enters a value outside of that range, applying the change (clicking "Apply" or outside of the disclosure) silently fails (no validation message or alert).
The following discussion from !144874 (merged) should be addressed:
-
@nickbrandt mentioned in a discussion: I noticed that we only accept values between
0
and100
. If a user enters something outside of this, it quietly fails (there is no error validation message). We also don't limit the user from entering more than 3 characters, which we probably should if we don't allow anything above100
. I saw this problem also existed before this, and it probably falls outside of this MR. Happy to create a separate issue if that makes sense.
Suggestion
Use Enter a number from 0 to 100.
for the message.