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

PM-11464 Add onboarding status to user Account to allow for root navigation to onboarding flow. #3878

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

dseverns-livefront
Copy link
Collaborator

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-11464

📔 Objective

  • After a user has created an account or logged in to an existing account for the first time on the device (assuming uncleared storage) if the OnboardingFlow feature flag is on, set an onboarding status for the user
  • Observe the user's state, if they have an Onboarding status that needs to be completed set the root nav state to reflect that
  • Add navigation graph for onboarding flow

📸 Screenshots

Control (onboarding off)

noonboading.mp4

onboarding on when account created

yesonboarding.mp4

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link
Contributor

github-actions bot commented Sep 6, 2024

Logo
Checkmarx One – Scan Summary & Details5816a7d3-a89d-4563-9f43-25aea4bbde2d

No New Or Fixed Issues Found

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 14 lines in your changes missing coverage. Please review.

Project coverage is 88.66%. Comparing base (4c1d55e) to head (270ef89).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...arden/ui/platform/feature/rootnav/RootNavScreen.kt 37.50% 3 Missing and 2 partials ⚠️
...en/ui/platform/feature/rootnav/RootNavViewModel.kt 60.00% 3 Missing and 1 partial ⚠️
...a/auth/repository/util/AuthDiskSourceExtensions.kt 70.00% 0 Missing and 3 partials ⚠️
...en/data/auth/datasource/disk/AuthDiskSourceImpl.kt 90.90% 0 Missing and 1 partial ⚠️
...twarden/data/auth/repository/AuthRepositoryImpl.kt 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3878      +/-   ##
==========================================
- Coverage   88.69%   88.66%   -0.04%     
==========================================
  Files         418      418              
  Lines       34051    34097      +46     
  Branches     5024     5038      +14     
==========================================
+ Hits        30202    30232      +30     
- Misses       2090     2097       +7     
- Partials     1759     1768       +9     

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

@dseverns-livefront
Copy link
Collaborator Author

with new changes

hmmmdkfjdl.mp4

@dseverns-livefront dseverns-livefront marked this pull request as draft September 12, 2024 19:26
… root nav for onboarding flow

optimize

after rebase fix tests

change root nav state to match reqs

fix base route

update where to set default value and other pr feedback

Move to observe the onboaridng status per user and add autofill to navigation

kdoc

add tests

cant always trust a test
@dseverns-livefront dseverns-livefront marked this pull request as ready for review September 12, 2024 20:26
@@ -72,11 +72,12 @@ class SetupAutoFillViewModel @Inject constructor(
}

private fun handleTurnOnLaterConfirmClick() {
sendEvent(SetupAutoFillEvent.NavigateToCompleteSetup)
// TODO PM-10631 record user chose to turn on later for settings badging.
// TODO PM-10632 update status to complete setup step.
Copy link
Collaborator

Choose a reason for hiding this comment

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

So we ditched the event and now we just need to update the state and then state-based nav just does the navigation for us?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes! We will need to add another onboarding status for "FINISH_SETUP" for navigating to the final confirm screen, but yeah none of the onboarding will need event navigation. When we complete the user state will update then the root nav state will be "VaultUnlocked"

@dseverns-livefront dseverns-livefront merged commit 759e926 into main Sep 16, 2024
9 checks passed
@dseverns-livefront dseverns-livefront deleted the PM-11464/onboarding-status branch September 16, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants