Skip to content
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

Provide better feedback in UI when input is invalid #312

Open
ericglau opened this issue Dec 7, 2023 · 0 comments
Open

Provide better feedback in UI when input is invalid #312

ericglau opened this issue Dec 7, 2023 · 0 comments

Comments

@ericglau
Copy link
Member

ericglau commented Dec 7, 2023

Certain input fields in the UI perform validations on the input, and would show an error on that field if the input is deemed to be invalid.

If a field has an error, no other input takes effect until the error is fixed.
If multiple fields have errors, only the first one is shown. For example, this can be seen when inputting just a in both Voting Delay and Proposal Threshold for Governor.

This can be improved to give better feedback to the user, in case the user did not notice the error. If the user keeps making input changes while there is an error, they may not realize that the resulting contract is not being updated, and may download or copy the stale contract anyways.

Specifically, consider:

  • Making input errors more obvious (e.g. always showing the error message, not just when hovering over the field).
  • Disabling the Copy, Open in Remix, or Download buttons until all errors are fixed, and show a hover message for those on why they are disabled.
  • Allowing multiple errors to be shown at the same time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant