VRMS icon indicating copy to clipboard operation
VRMS copied to clipboard

Implement "Collect Google Account" page

Open alex-anakin opened this issue 4 years ago • 7 comments

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.
  1. Show we will use your gmail page. After clicking "OK" make a dummy call to the PATCH api/userProfiles/<userId> where userId is a value from the previous step. Then redirect the user to the Code of conduct page.

  2. 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.

  3. 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.

  4. 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

List of popular domains

alex-anakin avatar Jan 29 '21 08:01 alex-anakin

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

OlgaBilogurova avatar Feb 23 '21 02:02 OlgaBilogurova

Progress: No progress this week Blocks: PR #492 should be merged Availability: Weekdays ETA: 1 week

OlgaBilogurova avatar Mar 02 '21 02:03 OlgaBilogurova

Progress: Creating UI for the Google Drive Setup page Blocks: PR #492 should be merged ETA: 1-2 weeks

OlgaBilogurova avatar Mar 09 '21 02:03 OlgaBilogurova

Please update.

peteplass avatar May 18 '21 02:05 peteplass

Progress: Working on email validation against List of popular domains. Blocks: none ETA: 2-3 weeks

OlgaBilogurova avatar May 24 '21 07:05 OlgaBilogurova

Progress: Didn't have enough time to work on the task

OlgaBilogurova avatar Jun 08 '21 01:06 OlgaBilogurova

unassigned Olga based on time constraints

peteplass avatar Jun 08 '21 02:06 peteplass