From cd2f277f64e0ac965ef7e50e9b754247ab86a5b1 Mon Sep 17 00:00:00 2001 From: Josh Heald Date: Tue, 6 Aug 2024 13:54:12 +0100 Subject: [PATCH 1/2] 13515 Reinstate starting a new store webview We mistakenly removed the handler for the starting a new store button on the start screen in WCiOS 19.6. This commit restores the webview presentation code. --- .../Classes/Authentication/AuthenticationManager.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/WooCommerce/Classes/Authentication/AuthenticationManager.swift b/WooCommerce/Classes/Authentication/AuthenticationManager.swift index b40f3f5672e..fdc953b6176 100644 --- a/WooCommerce/Classes/Authentication/AuthenticationManager.swift +++ b/WooCommerce/Classes/Authentication/AuthenticationManager.swift @@ -552,6 +552,16 @@ extension AuthenticationManager: WordPressAuthenticatorDelegate { } analytics.track(wooEvent, withError: error) } + + func showSiteCreationGuide(in navigationController: UINavigationController) { + analytics.track(event: .StoreCreation.loginPrologueStartingANewStoreTapped()) + + guard let url = try? AuthenticationConstants.hostingURL.asURL() else { + return + } + let webView = SFSafariViewController(url: url) + navigationController.present(webView, animated: true) + } } // MARK: - Private helpers From 2cfa6665589338f22404440b5c307dca55e2fc97 Mon Sep 17 00:00:00 2001 From: Josh Heald Date: Tue, 6 Aug 2024 14:16:31 +0100 Subject: [PATCH 2/2] Add hotfix release notes for new store button --- RELEASE-NOTES.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 5f498b7c0c3..0a876ae4db7 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -3,6 +3,9 @@ 19.8 ----- +19.7.1 +----- +- [***] Prologue: Restored web view for `Starting a new store?` button [https://github.com/woocommerce/woocommerce-ios/pull/13518] 19.7 -----