Skip to content

Merge on boarding module to login module #4746

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

Merged
merged 3 commits into from
May 20, 2025
Merged

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented May 19, 2025

Content

Merge on boarding module to login module.

Motivation and context

Be able to start the login flow straight away from the onboarding screen as below:

image

Screenshots / GIFs

No change in UI or flow, this is just preparatory work.

Tests

  • Check that the onboarding / login flow is still working as before.

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

  • Changes have been tested on an Android device or Android emulator with API 24
  • UI change has been tested on both light and dark themes
  • Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
  • Pull request is based on the develop branch
  • Pull request title will be used in the release note, it clearly define what will change for the user
  • Pull request includes screenshots or videos if containing UI changes
  • You've made a self review of your PR

@bmarty bmarty requested a review from a team as a code owner May 19, 2025 20:23
@bmarty bmarty requested review from jmartinesp and removed request for a team May 19, 2025 20:23
@bmarty bmarty added the PR-Misc For other changes label May 19, 2025
val confirmAccountProvider = backstack.elements.value.firstOrNull {
it.key.navTarget is NavTarget.ConfirmAccountProvider
}?.key?.navTarget ?: NavTarget.ConfirmAccountProvider(isAccountCreation = false)
backstack.singleTop(confirmAccountProvider)
Copy link
Member Author

Choose a reason for hiding this comment

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

There is maybe a better way to do this, but it works...

private val loginEntryPoint: LoginEntryPoint,
private val notLoggedInImageLoaderFactory: NotLoggedInImageLoaderFactory,
) : BaseFlowNode<NotLoggedInFlowNode.NavTarget>(
backstack = BackStack(
initialElement = NavTarget.OnBoarding,
initialElement = NavTarget.Root,
Copy link
Member Author

Choose a reason for hiding this comment

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

This node could be simplified more, since there is no need for a backstack anymore, but it can stay like this.

Copy link
Contributor

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/Q3Vd9f

Copy link

Copy link

codecov bot commented May 19, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 80.15%. Comparing base (34e88f3) to head (01a7c83).
Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
...roid/features/login/impl/DefaultLoginEntryPoint.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4746      +/-   ##
===========================================
+ Coverage    80.13%   80.15%   +0.01%     
===========================================
  Files         2129     2127       -2     
  Lines        56449    56436      -13     
  Branches      7055     7055              
===========================================
  Hits         45236    45236              
+ Misses        8795     8782      -13     
  Partials      2418     2418              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@bmarty bmarty merged commit 150239b into develop May 20, 2025
29 of 31 checks passed
@bmarty bmarty deleted the feature/bma/mergeOnBoarding branch May 20, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-Misc For other changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants