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

FTUE Auth - I already have an account #4668

Merged
merged 18 commits into from
Jan 6, 2022

Conversation

ouchadam
Copy link
Contributor

@ouchadam ouchadam commented Dec 9, 2021

Fixes #4382 Part of #4584

  • Adds debug menu opening from the splash screen debug info
  • Adds boolean types to the debug features
  • Adds the I already have an account button and flow behind the FTUE Auth feature flag
GET STARTED ALREADY HAVE ACCOUNT FEATURE SWITCHING
after-get-started after-already-have-account onboarding-features

@ouchadam
Copy link
Contributor Author

ouchadam commented Dec 9, 2021

I'm not super happy~ about having to the copy all of the login fragments, unfortunately there's a lot of inheritance in the area and the fragments are coupled directly to view models

would recommend reviewing by commits!

@github-actions
Copy link

github-actions bot commented Dec 9, 2021

Unit Test Results

  66 files  ±0    66 suites  ±0   58s ⏱️ +6s
135 tests ±0  135 ✔️ ±0  0 💤 ±0  0 ±0 
418 runs  ±0  418 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 41f931e. ± Comparison against base commit b40324a.

♻️ This comment has been updated with latest results.

@ouchadam ouchadam force-pushed the feature/adm/dynamic-login-flow branch from 0dc4d38 to 74594d8 Compare December 14, 2021 09:06
@ouchadam ouchadam added the Z-FTUE Issue is relevant to the first time use project or experience label Dec 15, 2021
@ouchadam ouchadam changed the base branch from feature/adm/dynamic-login-flow to feature/adm/cloning-login-domain-to-ftue December 16, 2021 10:17
@ouchadam ouchadam force-pushed the feature/adm/i-already-have-an-account branch from 6846cf2 to 4d02621 Compare December 16, 2021 10:35
@ouchadam
Copy link
Contributor Author

closing to extract the fragment copying to its own PR

@ouchadam ouchadam closed this Dec 16, 2021
@ouchadam ouchadam reopened this Dec 16, 2021
@ouchadam ouchadam changed the base branch from feature/adm/cloning-login-domain-to-ftue to feature/adm/cloning-login-fragments-to-ftue December 16, 2021 11:04
@ouchadam ouchadam force-pushed the feature/adm/i-already-have-an-account branch 2 times, most recently from 854953e to 801a02e Compare December 16, 2021 12:22
@ouchadam ouchadam force-pushed the feature/adm/cloning-login-fragments-to-ftue branch 2 times, most recently from 9ccad11 to 603c2fa Compare January 6, 2022 10:02
@ouchadam ouchadam force-pushed the feature/adm/i-already-have-an-account branch from 801a02e to 6fbf8fa Compare January 6, 2022 10:03
@ouchadam ouchadam mentioned this pull request Jan 6, 2022
10 tasks
Base automatically changed from feature/adm/cloning-login-fragments-to-ftue to develop January 6, 2022 13:59
@ouchadam ouchadam marked this pull request as ready for review January 6, 2022 14:00
@@ -36,4 +38,5 @@ interface VectorFeatures {

class DefaultVectorFeatures : VectorFeatures {
override fun onboardingVariant(): VectorFeatures.OnboardingVariant = BuildConfig.ONBOARDING_VARIANT
override fun isAlreadyHaveAccountSplashEnabled() = true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the I already have an account is enabled by default when the onboarding variant is set to FTUE_AUTH, it's currently set to LEGACY, will raise a dedicated PR to enable the FTUE_AUTH onboarding as the default variant

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -28,16 +28,25 @@ class DebugFeaturesStateFactory @Inject constructor(
return FeaturesState(listOf(
createEnumFeature(
label = "Onboarding variant",
selection = debugFeatures.onboardingVariant(),
override = debugFeatures.onboardingVariant(),
Copy link
Member

Choose a reason for hiding this comment

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

I am surprised override is not a reserved Kotlin keyword. Maybe a bit confusing to use it anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah I was surprised as well, will prefix the names to avoid confusion with the language keywords

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ouchadam ouchadam merged commit f24c962 into develop Jan 6, 2022
@ouchadam ouchadam deleted the feature/adm/i-already-have-an-account branch January 6, 2022 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-FTUE Issue is relevant to the first time use project or experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "Sign in" to Splash screen
2 participants