Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/sofi landing #6170

Merged
merged 43 commits into from
Dec 12, 2023
Merged

Feat/sofi landing #6170

merged 43 commits into from
Dec 12, 2023

Conversation

TheLeoB
Copy link
Collaborator

@TheLeoB TheLeoB commented Dec 11, 2023

Description (optional)

Add a concise explanation of the changes.

Testing Steps (optional)

Detail the steps required for the reviewer(s) to verify and test these changes.


const SofiMigration = ({ buySellActions, cacheActions, fiatCurrency }: Props) => {
const showModal = useCallback(() => {
buySellActions.showModal({ origin: 'WelcomeModal' })
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

@@ -242,9 +243,22 @@ export const getData = (state: RootState) => {
let bannerToShow: BannerType = null

const isKycEnabled = products?.kycVerification?.enabled
// SOFI
const sofiMigrationPending = selectors.modules.profile
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see if i can optimize this logic

@@ -0,0 +1,93 @@
import React from 'react'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this file

if (isEmailVerified) {
if (hasCowboyTag) {
// When the user has the COWBOYS_2022 tag set from the backend we want to skip
// the user straight to the dashboard and launch them into the Cowboys promo flyout
nextProps.routerActions.push('/home')
nextProps.saveGoal('cowboys2022', { firstLogin: true })
nextProps.runGoals()
} else if (isSofi) {
Copy link
Collaborator Author

@TheLeoB TheLeoB Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we may associate before email verification

@@ -36,3 +36,13 @@ export const isBrowserSafari = () => {
safari: '>12'
})
}

export const isBrowserAndroid = () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double check with android team if this is always the case for OS system

if (browser.getOSName() === 'Android') return true
}

export const isBrowserIOS = () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a fallback to show both mobile links if anything is undefined

@TheLeoB TheLeoB merged commit 1045e11 into development Dec 12, 2023
1 check passed
Copy link
Collaborator

@mrodriguez-bc mrodriguez-bc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed in pairing.

@jjBlockchain jjBlockchain deleted the feat/sofi-landing branch April 2, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
don't merge yet Code should not be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants