Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

fix(users): add-user error handling #1325

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

MoSattler
Copy link
Contributor

@MoSattler MoSattler commented Aug 25, 2021

Before, on the user page, when one clicked "Add User", and then did either not add an email as a name, or no name at all, the user creation would fall silently without any feedback to the user.

This PR adds a banner for these cases, to inform that a user was not created in these cases, and the reason why.

While this is an improvement over the current situation, ideally we want proper form validation, and prevent submission of the form.
I am not sure, if this is possible with the way this currently works (using the Dialog), though.

Screenshot 2021-08-25 at 17 27 11

Have you...

  • Added an explanation of what your changes do?
  • Written new tests for your changes?
  • Thought about which docs need updating?

@MoSattler MoSattler force-pushed the mosattler/error-handling-int-stuff branch from 5c816a3 to 9920100 Compare August 25, 2021 15:19
Signed-off-by: Mo Sattler <hi@mosattler.com>
@MoSattler MoSattler force-pushed the mosattler/error-handling-int-stuff branch from 9920100 to 62fc6a4 Compare August 25, 2021 15:20
@MoSattler MoSattler marked this pull request as ready for review August 25, 2021 15:20
@MoSattler MoSattler changed the title fix(users): add user error handling fix(users): add-user error handling Aug 25, 2021
@MoSattler MoSattler merged commit 1a6d992 into main Aug 26, 2021
@MoSattler MoSattler deleted the mosattler/error-handling-int-stuff branch August 26, 2021 10:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant