Skip to content

Commit 0bfecb1

Browse files
authored
Update links for subcategories in Duck.ai Help Pages (#6497)
Task/Issue URL: https://app.asana.com/1/137249556945/project/72649045549333/task/1210729977597651?focus=true ### Description Update Help Pages links for Duck.ai Feedback ### Steps to test this PR - [ ] Apply patch on https://app.asana.com/1/137249556945/project/1209991789468715/task/1210448620621729?focus=true - [ ] Install from branch - [ ] Purchase a subscription - [ ] Go to Subscription Settings > Send Feedback - [ ] Tap on Report a problem > Duck.ai - [ ] Select Unable to access the subscriber-only Duck.ai models - [ ] Tab on `help center` link - [ ] Check in the Logcat that you navigate to `https://duckduckgo.com/duckduckgo-help-pages/duckai/access-subscriber-AI-models` filtering by `SubscriptionsWebViewActivityWithParams` - [ ] Go back and select "Can't access Duck.ai with my subscription in other browsers" - [ ] Tab on `help center` link - [ ] Check in the Logcat that you navigate to `https://duckduckgo.com/duckduckgo-help-pages/privacy-pro/activating` filtering by `SubscriptionsWebViewActivityWithParams` - [ ] Go back and select "Other Duck.ai feedback" - [ ] Tab on `help center` link - [ ] Check in the Logcat that you navigate to `https://duckduckgo.com/duckduckgo-help-pages/duckai` filtering by `SubscriptionsWebViewActivityWithParams` ### No UI changes
1 parent 0589c12 commit 0bfecb1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

subscriptions/subscriptions-impl/src/main/java/com/duckduckgo/subscriptions/impl/feedback/FeedbackHelpUrlProvider.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class RealFeedbackHelpUrlProvider @Inject constructor() : FeedbackHelpUrlProvide
3434
is SubscriptionFeedbackSubsSubCategory -> getSubsUrl()
3535
is SubscriptionFeedbackPirSubCategory -> getPirUrl(subCategory)
3636
is SubscriptionFeedbackItrSubCategory -> getItrUrl(subCategory)
37+
is SubscriptionFeedbackDuckAiSubCategory -> getDuckAiSubCategoryUrl(subCategory)
3738
else -> SubscriptionsConstants.FAQS_URL
3839
}
3940
}
@@ -61,6 +62,14 @@ class RealFeedbackHelpUrlProvider @Inject constructor() : FeedbackHelpUrlProvide
6162
}
6263
}
6364

65+
private fun getDuckAiSubCategoryUrl(subCategory: SubscriptionFeedbackDuckAiSubCategory): String {
66+
return when (subCategory) {
67+
SubscriptionFeedbackDuckAiSubCategory.ACCESS_SUBSCRIPTION_MODELS -> HELP_PAGE_DUCK_AI_ACCESS_SUBSCRIPTION_MODELS
68+
SubscriptionFeedbackDuckAiSubCategory.LOGIN_THIRD_PARTY_BROWSER -> HELP_PAGE_DUCK_AI_LOGIN_THIRD_PARTY_BROWSER
69+
SubscriptionFeedbackDuckAiSubCategory.OTHER -> HELP_PAGE_DUCK_AI_OTHER
70+
}
71+
}
72+
6473
companion object {
6574
private const val HELP_PAGE_PPRO_PAYMENT = "https://duckduckgo.com/duckduckgo-help-pages/privacy-pro/payments/"
6675
private const val HELP_PAGE_PPRO_VPN_TROUBLESHOOTING = "https://duckduckgo.com/duckduckgo-help-pages/privacy-pro/vpn/troubleshooting/"
@@ -70,5 +79,9 @@ class RealFeedbackHelpUrlProvider @Inject constructor() : FeedbackHelpUrlProvide
7079
private const val HELP_PAGE_PPRO_PIR = "https://duckduckgo.com/duckduckgo-help-pages/privacy-pro/personal-information-removal/"
7180
private const val HELP_PAGE_PPRO_ITR = "https://duckduckgo.com/duckduckgo-help-pages/privacy-pro/identity-theft-restoration/"
7281
private const val HELP_PAGE_PPRO_ITR_IRIS = "https://duckduckgo.com/duckduckgo-help-pages/privacy-pro/identity-theft-restoration/iris/"
82+
private const val HELP_PAGE_DUCK_AI_ACCESS_SUBSCRIPTION_MODELS =
83+
"https://duckduckgo.com/duckduckgo-help-pages/duckai/access-subscriber-AI-models"
84+
private const val HELP_PAGE_DUCK_AI_LOGIN_THIRD_PARTY_BROWSER = "https://duckduckgo.com/duckduckgo-help-pages/privacy-pro/activating"
85+
private const val HELP_PAGE_DUCK_AI_OTHER = "https://duckduckgo.com/duckduckgo-help-pages/duckai"
7386
}
7487
}

0 commit comments

Comments
 (0)