camicroscope / caMicroscope

Digital pathology image viewer with support for human/machine generated annotations and markups.
BSD 3-Clause "New" or "Revised" License
234 stars 285 forks source link

Enhance User Registration with Input Validation and Success Feedback #908

Open Lochipi opened 3 months ago

Lochipi commented 3 months ago

Summary

This Pull Request introduces enhancements to the user registration feature. It implements validation for email and filters inputs, ensuring that error messages are displayed only for the relevant input. Additionally, it adds a success popup to provide feedback to users upon successful registration and clears up the input fields.

Snips

image image image image

Motivation

The motivation behind this PR is to improve the user experience during the registration process. By validating inputs and providing clear error messages, users can easily identify and correct any issues before submitting the form. The addition of a success popup further enhances user feedback, confirming successful registration and improving overall satisfaction.

Implementation

Video demo

https://github.com/camicroscope/caMicroscope/assets/108942025/b8218634-a4ef-4979-bd35-1d46f34569ad

Testing

I have conducted testing to ensure the following:

I have also run the linting to fix any potential errors, and it's working fine. image

Questions

If you have any feedback or suggestions regarding this PR, please feel free to share them. And also, if there's anything else you'd like me to address, let me know. Thanks.

Lochipi commented 3 months ago

Hey there, @birm , can you take a look at this pr, lemme know the changes if needed.