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

Redirect from purchase page to macOS native purchase flow #2538

Merged
merged 7 commits into from
Apr 3, 2024

Conversation

miasma13
Copy link
Contributor

@miasma13 miasma13 commented Apr 3, 2024

Task/Issue URL: https://app.asana.com/0/1199230911884351/1206989054564349/f

Description:
Redirect from purchase page to macOS native purchase flow

Steps to test this PR:
1.Navigation should be redirected to the subscription purchase page

Note: Try navigating via different means (e.g. type in the URL, open a link, bookmark etc.):

  1. No navigation triggered on not matching URLs
  1. Disabled redirect when feature is not available.
    Ensure feature flag is disabled and disable internal user state.
  1. Disabled redirect when on App Store and no products are available
    Predefine/mock SubscriptionPurchaseEnvironment.current == .appStore and SubscriptionPurchaseEnvironment.canPurchase == false to simulate App Store build with no available products

Internal references:

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

@miasma13 miasma13 force-pushed the michal/redirect-to-purchase branch from 1c6aee2 to 5acb602 Compare April 3, 2024 11:26
@miasma13 miasma13 requested a review from samsymons April 3, 2024 16:57
Copy link
Collaborator

@samsymons samsymons left a comment

Choose a reason for hiding this comment

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

LGTM. Tested with the feature flag disabled to make sure users couldn't get through to the purchase prompt that way, tested with some other domains that have duckduckgo.com as a suffix, looked good there too.

@miasma13 miasma13 merged commit 3b42790 into release/1.82.0 Apr 3, 2024
54 of 55 checks passed
@miasma13 miasma13 deleted the michal/redirect-to-purchase branch April 3, 2024 20:45
samsymons added a commit that referenced this pull request Apr 8, 2024
* main: (338 commits)
  Fixes the VPN restarting logic on update (#2545)
  fix download save panel disappearing on navigation (#2549)
  Add CI support for handling installation attribution (#2502)
  Bump version to 1.82.0 (152)
  Pixel changed in subscription (#2541)
  add LSHandlerRank for .duckload document type (#2537)
  Fix usertext comment to ensure it matches localizable string (#2546)
  Update Neighbor Report (#2542)
  DBP: Compare by url and not name (#2544)
  DBP: Compare by url and not name (#2544)
  Adds a series of UI tests for Bookmarks Bar visibility
  Improve Handling of noData Import Errors (#2494)
  Bump version to 1.82.0 (151)
  Use the default action button style for VPN onboarding (#2529)
  Redirect from purchase page to macOS native purchase flow (#2538)
  Closing empty tabs after download (#2510)
  Add Web UI loading state pixels (#2531)
  fix localization warnings (#2288)
  Select URL in address bar when editing and use cmd+L (#2536)
  Add attemptId to Captcha /result endpoint (#2530)
  ...
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