-
Notifications
You must be signed in to change notification settings - Fork 97
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(onboarding): remove steps on phone verification screen when importing #4834
Conversation
// Disable iOS back during onboarding | ||
gestureEnabled: route.params?.hideOnboardingStep ? false : true, | ||
gestureEnabled: !route.params?.isOnboarding, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -23,12 +23,10 @@ import { StatsigExperiments } from 'src/statsig/types' | |||
export const END_OF_ONBOARDING_SCREENS = [Screens.WalletHome, Screens.ChooseYourAdventure] | |||
|
|||
interface NavigatorFunctions { | |||
navigate: typeof NavigationService.navigate | ((screen: Screens) => void) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this dummy type (for calculating total steps) wasn't allowing setting screen props, updated the fn below to match navigate's type
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4834 +/- ##
=======================================
Coverage 85.37% 85.37%
=======================================
Files 728 728
Lines 29520 29522 +2
Branches 5173 5172 -1
=======================================
+ Hits 25202 25204 +2
Misses 4072 4072
Partials 246 246
Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for cleaning up hideOnboardingStep
logic! isOnboarding
is a lot clearer.
) ### Description Fixes a bug introduced in #4834 , where VerificationStartScreen defaulted to being not in onboarding. This causes an issue if a user bails on the screen during onboarding. On restart, the screen is loaded in the already onboarded mode where the back button does nothing and there's no option to skip (see before video below). This PR reverts the default to be in onboarding as it doesn't seem trivial to pass props on the initialRoute. ### Test plan Unit tests and manual Before: https://github.com/valora-inc/wallet/assets/5062591/496876ec-4adf-48b8-8a12-72d9030f3e37 After: https://github.com/valora-inc/wallet/assets/5062591/8d345432-4fcb-439f-b63a-03806d5959e0 ### Related issues N/A ### Backwards compatibility Yes
…lora-inc#4876) ### Description Fixes a bug introduced in valora-inc#4834 , where VerificationStartScreen defaulted to being not in onboarding. This causes an issue if a user bails on the screen during onboarding. On restart, the screen is loaded in the already onboarded mode where the back button does nothing and there's no option to skip (see before video below). This PR reverts the default to be in onboarding as it doesn't seem trivial to pass props on the initialRoute. ### Test plan Unit tests and manual Before: https://github.com/valora-inc/wallet/assets/5062591/496876ec-4adf-48b8-8a12-72d9030f3e37 After: https://github.com/valora-inc/wallet/assets/5062591/8d345432-4fcb-439f-b63a-03806d5959e0 ### Related issues N/A ### Backwards compatibility Yes
Description
Removes steps on phone verification screen when importing. Refactored the screen to accept a property
isOnboarding
instead ofhideOnboardingStep
which was used to identify whether the user is in the onboarding flow and whether to show steps or not.Also fixed a bug where iOS gestures where disabled when not in onboarding instead of onboarding
Test plan
Unit tests, manual
Related issues
Backwards compatibility
Yes