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

Requested changes to testnet4 faucet UI #5091

Merged
merged 3 commits into from
May 23, 2024
Merged

Conversation

mononaut
Copy link
Collaborator

This PR makes some minor changes to the faucet UI:

  • s/"to limit abuse"/"to use the faucet"/.
  • only disable the submit button instead of graying out the whole form.
  • set dummy min/max values until/unless the user's limits are available.
  • minor refactor of the form initialization (just update the validators, instead of the whole formGroup, when possible).
  • refresh the faucet status after a successful payout, to keep the user's limits up to date.
  • support displaying both the last success banner and a current error (e.g. after the user's last permitted withdrawal).
  • properly validate amounts set via the quick buttons.
Screen.Recording.2024-05-21.at.12.36.23.AM.mov
Screenshot 2024-05-21 at 12 37 15 AM
Screen.Recording.2024-05-21.at.12.45.07.AM.mov
Screenshot 2024-05-21 at 12 54 54 AM

@mononaut mononaut requested review from wiz and nymkappa May 21, 2024 01:10
@cla-bot cla-bot bot added the cla-signed label May 21, 2024
@mononaut mononaut requested a review from nymkappa May 21, 2024 22:13
Copy link
Member

@nymkappa nymkappa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK @ 6bb2f06

@softsimon softsimon merged commit 2341b1d into master May 23, 2024
13 checks passed
@softsimon softsimon deleted the mononaut/faucet-ui-changes branch May 23, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants