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

Always start onboarding from the beginning when shown #2117

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

ayoy
Copy link
Collaborator

@ayoy ayoy commented Jan 25, 2024

Task/Issue URL: https://app.asana.com/0/1177771139624306/1206434679656281/f

Description:
Simplify OnboardingViewModel by removing restart() function.
Also make isOnboardingFinished a static property.

Steps to test this PR:

  1. Run ./clean-app.sh debug.
  2. Comment out lines 68-70 and 73 in MainViewController.shouldShowOnboarding (to remove #if DEBUG logic).
  3. Run the app, verify that onboarding was presented.
  4. Finish onboarding and quit the app.
  5. Run the app and verify that onboarding wasn't presented.
  6. Open new tab and navigate to about:welcome, verify that onboarding was presented from the beginning.

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@ayoy ayoy requested a review from SabrinaTardio January 25, 2024 07:51
@ayoy ayoy marked this pull request as draft January 25, 2024 07:59
@ayoy ayoy marked this pull request as ready for review January 25, 2024 08:06
Copy link
Collaborator

@SabrinaTardio SabrinaTardio left a comment

Choose a reason for hiding this comment

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

Nice! Thank you for taking care of this!

@@ -53,14 +53,12 @@ final class OnboardingViewModel: ObservableObject {
}

@UserDefaultsWrapper(key: .onboardingFinished, defaultValue: false)
private(set) var onboardingFinished: Bool
private(set) static var isOnboardingFinished: Bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice!

@ayoy ayoy merged commit b7f0b7a into main Jan 25, 2024
14 checks passed
@ayoy ayoy deleted the dominik/restart-onboarding branch January 25, 2024 09:34
samsymons added a commit that referenced this pull request Jan 25, 2024
# By Alexey Martemyanov (11) and others
# Via Dominik Kapusta (3) and others
* main: (56 commits)
  Adds info about whether the login items are actually running (#2122)
  Remove connection status awaiter. (#2121)
  Launch VPN Location screen from status view  (#2077)
  Display different copy in alerts when a flag is enabled in a newer version (#2114)
  Remove delayed webView attaching to main window (#2116)
  Always start onboarding from the beginning when shown (#2117)
  Update spacing between UI components in settings (#2109)
  Show history menu on cmd+y shortcut (#2112)
  Bump version to 1.72.0 (112)
  Update embedded files
  fix WebView value validation popover crash when WebView not in hierarchy (#2108)
  Fix agent startup (#2107)
  Support brand UA (#2085)
  fix Safari favicons import (#2106)
  Add page attributes to print settings (#2104)
  Bump version to 1.72.0 (111)
  Alex/disable onboarding existing users (#2105)
  Bump version to 1.71.2 (110)
  Fixes a multithreading issue in `NetworkConnectionTester` (BSK) (#2102)
  Avoid sending latency immediately after the monitor starts (#2103)
  ...

# Conflicts:
#	Configuration/BuildNumber.xcconfig
#	DuckDuckGo/VPNFeedbackForm/VPNMetadataCollector.swift
#	UnitTests/VPNFeedbackForm/VPNFeedbackFormViewModelTests.swift
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.

2 participants