VRMS
VRMS copied to clipboard
Implement "Collect Google Account" page
The task is blocked by:
- [x] #471
Overview
Some people don't Gmail as their primary email, but we require having a Gmail account to provide access to project Google Drive.
Business logic
After checking out user email existence using Magic Link (originated from ONBOARDING
) validate it against domain:
- If it's 'gmail.com' then go to option 1.
- If it's not 'gmail.com' validate it against List of popular domains. If the email is from the list then go to option 2.
- Else go to option 3.
-
Show we will use your gmail page. After clicking "OK" make a dummy call to the PATCH
api/userProfiles/<userId>
whereuserId
is a value from the previous step. Then redirect the user to the Code of conduct page. -
Show we need your gmail page. Validate user input. If the user clicked "SAVE & CONT" but input is not valid then show the error. If the input is valid then request the Magic Link from the backend with
auth-origin = GOOGLE_ACCOUNT_CHECK
and show we sent Magic Link page page. -
Show the user we are not sure page. If the answer is YES then go to option 1. If the answer is NO then go to option 2.
-
Add logic to opening the Magic Ling with
auth-origin = GOOGLE_ACCOUNT_CHECK
. If the token is not valid then show 'the token is not valid' page. If it's valid then go to option 1.
Resources/Instructions
Progress:
- On create account page added validation if it's Gmail redirect the user to
Google Drive Setup
page - Created a new component
GoogleDriveSetup
, - Added a new route
/onboarding/google-drive-setup
Blocks: PR #492 should be merged Availability: Weekdays ETA: 1 week
Progress: No progress this week Blocks: PR #492 should be merged Availability: Weekdays ETA: 1 week
Progress: Creating UI for the Google Drive Setup
page
Blocks: PR #492 should be merged
ETA: 1-2 weeks
Please update.
Progress: Working on email validation against List of popular domains. Blocks: none ETA: 2-3 weeks
Progress: Didn't have enough time to work on the task
unassigned Olga based on time constraints