Validate that response from Google contains a valid email for integration
Refactor Google Integration mutations
Create popup to display when Google response errors out
1
Created an isEmail() function in utils which uses regex to test if a string is a valid email
Regex pattern taken from i Hate Regex simple email
This is used on the Google response upon integrating to ensure an email was received.
Mutations to consider the user integrated are only called if a valid email was received.
2
Refactored mutations to
INTEGRATE_WITH_GOOGLE Which takes user id, admin type, and google email and sets those as well as google auth enabled to be true
UNINTEGRATE_WITH_GOOGLE Which takes user id and admin type and then sets google auth enabled to be false
3
Created a Dialog on Admin Profile Settings to display when there is an error communicating with Google to get the user's Google account email.
Here is a demonstration of the current popup. The design and contents of the popup are not finalized.
Fix (GClass Integration) Various Improvements
Goal
1
Created an isEmail() function in utils which uses regex to test if a string is a valid email Regex pattern taken from i Hate Regex simple email This is used on the Google response upon integrating to ensure an email was received. Mutations to consider the user integrated are only called if a valid email was received.
2
Refactored mutations to
3
Created a Dialog on Admin Profile Settings to display when there is an error communicating with Google to get the user's Google account email. Here is a demonstration of the current popup. The design and contents of the popup are not finalized.
https://user-images.githubusercontent.com/16299570/118562047-d8426b00-b720-11eb-95f9-9514ad64e637.mp4