WEB-4275 - EHR C2C from Email#1840
Open
henry-tp wants to merge 68 commits into
Open
Conversation
Contributor
Author
|
/deploy qa2 |
Collaborator
|
henry-tp updated values.yaml file in qa2 |
Collaborator
|
henry-tp updated flux policies file in qa2 |
Collaborator
|
henry-tp deployed blip WEB-4275-landing-c2c branch to qa2 namespace |
henry-tp
commented
May 5, 2026
| @@ -1,413 +0,0 @@ | |||
| import React from 'react'; | |||
Contributor
Author
There was a problem hiding this comment.
Replaced with jest version
| mask="99/99/9999" | ||
| maskPlaceholder="mm/dd/yyyy" | ||
| value={(formValues.birthday || '').replace(dateRegex, '$2/$3/$1')} | ||
| const onChange={(e) => handleInputChange('birthday', e.target.value.replace(dateRegex, '$3-$1-$2'))} |
Comment on lines
+86
to
+89
| // If there is a restrictedToken in the params, we assume that the user is | ||
| // coming in from the EHR C2C flow. Otherwise, we assume they are coming | ||
| // in from the default "Claim Your Account" email flow. | ||
| const isEHRSignupWorkflow = queryParams.has('restrictedToken'); |
| // If restricted token exists, we infer that the user is being sent from EHR C2C workflow. | ||
| // We redirect them to connect C2C first. Otherwise, we redirect to account creation. | ||
| if (restrictedToken) { | ||
| dispatch(push(`/verification-with-c2c?signupKey=${signupKey}&signupEmail=${signupEmail}&restrictedToken=${restrictedToken}`)); |
Comment on lines
+74
to
+80
| const queryParams = new URLSearchParams(search); | ||
| const restrictedToken = queryParams.get('restrictedTokenId'); | ||
| const [validateRestrictedToken] = useLazyValidateRestrictedTokenQuery(); | ||
|
|
||
| const redirectToAccountSetup = () => { | ||
| history.push({ pathname: '/verification-with-password', search: queryParams.toString() }); | ||
| }; |
Comment on lines
+118
to
+131
| { Object.entries(providers).map(([providerName, provider]) => ( | ||
| <Box sx={styleProps.providerContainer}> | ||
| {/* TODO: Fix Image */} | ||
| <img src={provider.logoImage} alt={providerName} style={{ objectFit: 'contain' }}/> | ||
|
|
||
| <Button | ||
| onClick={() => handleClickProvider(providerName)} | ||
| variant="textPrimary" | ||
| sx={styleProps.providerConnectButton} | ||
| > | ||
| {t('Connect')} | ||
| </Button> | ||
| </Box> | ||
| ))} |
Comment on lines
+72
to
+73
| utils.isMobile.mockReturnValue(true); | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WEB-4275
Manual testing of this requires use of QA2 which the backend changes are currently deployed on. You need to be able to create an EHR patient, which should trigger the automated email for the cloud-to-cloud invite. That email link should direct the user to this new flow.