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

Product Creation AI: Remove outdated survey #14890

Open
wants to merge 9 commits into
base: task/14529-remove-shipping-label-survey
Choose a base branch
from
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- [*] Receipts: Email receipts can now be sent to customers after failed payments using WooCommerce Stripe 9.1.0+. [https://github.com/woocommerce/woocommerce-ios/pull/14864].
- [Internal] Removed feedback survey for Store Setup feature [https://github.com/woocommerce/woocommerce-ios/pull/14888]
- [Internal] Removed feedback survey for shipping label creation [https://github.com/woocommerce/woocommerce-ios/pull/14889]
- [Internal] Removed feedback survey for product creation AI [https://github.com/woocommerce/woocommerce-ios/pull/14890]

21.4
-----
Expand Down
4 changes: 0 additions & 4 deletions WooCommerce/Classes/Extensions/UserDefaults+Woo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ extension UserDefaults {
// AI prompt tone
case aiPromptTone

// Product Creation AI
case numberOfTimesProductCreationAISurveySuggested
case didStartProductCreationAISurvey

// Theme installation
case themesPendingInstall

Expand Down
2 changes: 0 additions & 2 deletions WooCommerce/Classes/System/SessionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ final class SessionManager: SessionManagerProtocol {
defaults[.numberOfTimesWriteWithAITooltipIsShown] = nil
defaults[.storeProfilerAnswers] = nil
defaults[.aiPromptTone] = nil
defaults[.numberOfTimesProductCreationAISurveySuggested] = nil
defaults[.didStartProductCreationAISurvey] = nil
defaults[.themesPendingInstall] = nil
defaults[.hiddenStoreIDs] = nil
defaults[.blazeNoCampaignReminderOpened] = nil
Expand Down
8 changes: 0 additions & 8 deletions WooCommerce/Classes/System/WooConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,6 @@ extension WooConstants {
case orderAddOnI1Feedback = "https://automattic.survey.fm/woo-app-addons-production"
#endif

/// URL for the Product Creation with AI feedback survey
///
#if DEBUG
case productCreationAIFeedback = "https://automattic.survey.fm/testing-debug-product-creation-with-ai-dec-2023"
#else
case productCreationAIFeedback = "https://automattic.survey.fm/product-creation-with-ai-dec-2023"
#endif

/// URL for shipping label creation information
///
case shippingLabelCreationInfo = "https://woocommerce.com/products/shipping"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ final class AddProductCoordinator: Coordinator {
private var addProductWithAIEligibilityChecker: ProductCreationAIEligibilityCheckerProtocol
private var addProductWithAIBottomSheetPresenter: BottomSheetPresenter?

private lazy var productCreationAISurveyPresenter: BottomSheetPresenter = {
BottomSheetPresenter(configure: { bottomSheet in
var sheet = bottomSheet
sheet.prefersEdgeAttachedInCompactHeight = true
sheet.prefersGrabberVisible = false
sheet.detents = [.medium()]
})
}()

private let wooSubscriptionProductsEligibilityChecker: WooSubscriptionProductsEligibilityCheckerProtocol

/// - Parameters:
Expand Down Expand Up @@ -238,7 +229,6 @@ private extension AddProductCoordinator {
self?.onProductCreated(product)
self?.navigationController.dismiss(animated: true) {
self?.presentProduct(product, formType: .edit, isAIContent: true)
self?.presentProductCreationAIFeedbackIfApplicable()
}
}))
navigationController.present(UINavigationController(rootViewController: viewController), animated: true)
Expand Down Expand Up @@ -284,31 +274,6 @@ private extension AddProductCoordinator {
}
}

/// Presents AI Product Creation survey
///
func presentProductCreationAIFeedbackIfApplicable() {
let useCase = ProductCreationAISurveyUseCase()

guard useCase.shouldShowProductCreationAISurvey() else {
return
}

let controller = ProductCreationAISurveyConfirmationHostingController(viewModel: .init(onStart: { [weak self] in
guard let self else { return }

self.productCreationAISurveyPresenter.dismiss(onDismiss: { [weak self] in
let survey = SurveyCoordinatingController(survey: .productCreationAI)
self?.navigationController.present(survey, animated: true, completion: nil)
useCase.didStartProductCreationAISurvey()
})
}, onSkip: { [weak self] in
self?.productCreationAISurveyPresenter.dismiss()
}))

productCreationAISurveyPresenter.present(controller, from: navigationController)
useCase.didSuggestProductCreationAISurvey()
}

/// Presents the celebratory view for the first created product.
///
func showFirstProductCreatedView(productURL: URL,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ extension SurveyViewController {
case addOnsI1
case orderCreation
case couponManagement
case productCreationAI
case orderFormShippingLines

fileprivate var url: URL {
Expand Down Expand Up @@ -97,11 +96,6 @@ extension SurveyViewController {
.asURL()
.tagPlatform("ios")
.tagAppVersion(Bundle.main.bundleVersion())
case .productCreationAI:
return WooConstants.URLs.productCreationAIFeedback
.asURL()
.tagPlatform("ios")
.tagAppVersion(Bundle.main.bundleVersion())
case .orderFormShippingLines:
return WooConstants.URLs.orderCreationShippingFeedback
.asURL()
Expand All @@ -118,7 +112,6 @@ extension SurveyViewController {
.addOnsI1,
.orderCreation,
.couponManagement,
.productCreationAI,
.orderFormShippingLines:
return Localization.giveFeedback
}
Expand All @@ -137,8 +130,6 @@ extension SurveyViewController {
return .orderCreation
case .couponManagement:
return .couponManagement
case .productCreationAI:
return .productCreationAI
case .orderFormShippingLines:
return .orderFormShippingLines
}
Expand Down
Loading
Loading