-
Notifications
You must be signed in to change notification settings - Fork 1k
Add duck.ai chat - subscriptions integration #6350
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
Add duck.ai chat - subscriptions integration #6350
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ed5ec9d
to
e5dd1c7
Compare
9a53001
to
7026706
Compare
e5dd1c7
to
baa96dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I tested what I could given the recent FE updates.
duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/ui/SubscriptionsHandler.kt
Outdated
Show resolved
Hide resolved
...ions-impl/src/main/java/com/duckduckgo/subscriptions/impl/messaging/SubscriptionsJSHelper.kt
Outdated
Show resolved
Hide resolved
...ions-impl/src/main/java/com/duckduckgo/subscriptions/impl/messaging/SubscriptionsJSHelper.kt
Show resolved
Hide resolved
baa96dc
to
6fc0938
Compare
f3f9d77
into
feature/cristian/subscriptions/show_duck_ai_pro_settings
Task/Issue URL: https://app.asana.com/1/137249556945/task/1210461583262416?focus=true ### Description Adds integration between duck.ai and subscriptions. Includes: - messaging for Feature Flags in FE - share token - navigational events ### Steps to test this PR _Feature 1_ - [x] Apply patch from https://app.asana.com/1/137249556945/project/1149059203486286/task/1210461583262416?focus=true - [x] Fresh install - [x] Install branch - [x] Open Duck.ai, if onboarding shows, skip it - [x] After onboarding, Duck.ai should be displayed as Free (Background logo just says "Duck.ai Free", models selector only display free models and no upsells) - [ ] ~Go to models selector, you should see the advance models~ - [ ] ~If you select one, the upsell appears "Unlock with a DuckDuckGo...."~ - [ ] ~Clicking on the upsell takes you to subscription flow~ - [ ] ~Ensure it does, and go back to chat~ - [ ] ~Click on Duck.ai settings (top right)~ - [ ] ~The options "Subscribe to DuckDuckGo" and "I have a subscription" appear~ - [ ] ~Click on "I have a Subscription"~ - [ ] ~Ensure it navigate to activation flow~ - [ ] ~Go back to Duck.ai~ - [x] go to settings, and purchase a subscription (or go there using any upsell link) (after subscription restart the app, this is to avoid Duck.ai chat being restored, something we need to fix in https://app.asana.com/1/137249556945/project/1149059203486286/task/1210671370392466?focus=true) - [x] Open Duck.ai again (from any entry point) - [x] An Duck.ai paid onboarding appears (depending if this is your first visit as subscriber) - [x] Duck.ai is in subscriber mode (background logo has changed "Subscriber" and model selector includes advanced models) - [x] Inside Duck.ai settings now it shows "manage", and if you click there you can navigate to subscription settings ### UI changes | Before | After | | ------ | ----- | !(Upload before screenshot)|(Upload after screenshot)|
Task/Issue URL: https://app.asana.com/1/137249556945/task/1210461583262416?focus=true ### Description Adds integration between duck.ai and subscriptions. Includes: - messaging for Feature Flags in FE - share token - navigational events ### Steps to test this PR _Feature 1_ - [x] Apply patch from https://app.asana.com/1/137249556945/project/1149059203486286/task/1210461583262416?focus=true - [x] Fresh install - [x] Install branch - [x] Open Duck.ai, if onboarding shows, skip it - [x] After onboarding, Duck.ai should be displayed as Free (Background logo just says "Duck.ai Free", models selector only display free models and no upsells) - [ ] ~Go to models selector, you should see the advance models~ - [ ] ~If you select one, the upsell appears "Unlock with a DuckDuckGo...."~ - [ ] ~Clicking on the upsell takes you to subscription flow~ - [ ] ~Ensure it does, and go back to chat~ - [ ] ~Click on Duck.ai settings (top right)~ - [ ] ~The options "Subscribe to DuckDuckGo" and "I have a subscription" appear~ - [ ] ~Click on "I have a Subscription"~ - [ ] ~Ensure it navigate to activation flow~ - [ ] ~Go back to Duck.ai~ - [x] go to settings, and purchase a subscription (or go there using any upsell link) (after subscription restart the app, this is to avoid Duck.ai chat being restored, something we need to fix in https://app.asana.com/1/137249556945/project/1149059203486286/task/1210671370392466?focus=true) - [x] Open Duck.ai again (from any entry point) - [x] An Duck.ai paid onboarding appears (depending if this is your first visit as subscriber) - [x] Duck.ai is in subscriber mode (background logo has changed "Subscriber" and model selector includes advanced models) - [x] Inside Duck.ai settings now it shows "manage", and if you click there you can navigate to subscription settings ### UI changes | Before | After | | ------ | ----- | !(Upload before screenshot)|(Upload after screenshot)|
Task/Issue URL: https://app.asana.com/1/137249556945/task/1210461583262416?focus=true Adds integration between duck.ai and subscriptions. Includes: - messaging for Feature Flags in FE - share token - navigational events _Feature 1_ - [x] Apply patch from https://app.asana.com/1/137249556945/project/1149059203486286/task/1210461583262416?focus=true - [x] Fresh install - [x] Install branch - [x] Open Duck.ai, if onboarding shows, skip it - [x] After onboarding, Duck.ai should be displayed as Free (Background logo just says "Duck.ai Free", models selector only display free models and no upsells) - [ ] ~Go to models selector, you should see the advance models~ - [ ] ~If you select one, the upsell appears "Unlock with a DuckDuckGo...."~ - [ ] ~Clicking on the upsell takes you to subscription flow~ - [ ] ~Ensure it does, and go back to chat~ - [ ] ~Click on Duck.ai settings (top right)~ - [ ] ~The options "Subscribe to DuckDuckGo" and "I have a subscription" appear~ - [ ] ~Click on "I have a Subscription"~ - [ ] ~Ensure it navigate to activation flow~ - [ ] ~Go back to Duck.ai~ - [x] go to settings, and purchase a subscription (or go there using any upsell link) (after subscription restart the app, this is to avoid Duck.ai chat being restored, something we need to fix in https://app.asana.com/1/137249556945/project/1149059203486286/task/1210671370392466?focus=true) - [x] Open Duck.ai again (from any entry point) - [x] An Duck.ai paid onboarding appears (depending if this is your first visit as subscriber) - [x] Duck.ai is in subscriber mode (background logo has changed "Subscriber" and model selector includes advanced models) - [x] Inside Duck.ai settings now it shows "manage", and if you click there you can navigate to subscription settings | Before | After | | ------ | ----- | !(Upload before screenshot)|(Upload after screenshot)|
Task/Issue URL: https://app.asana.com/1/137249556945/task/1210461583262416?focus=true Adds integration between duck.ai and subscriptions. Includes: - messaging for Feature Flags in FE - share token - navigational events _Feature 1_ - [x] Apply patch from https://app.asana.com/1/137249556945/project/1149059203486286/task/1210461583262416?focus=true - [x] Fresh install - [x] Install branch - [x] Open Duck.ai, if onboarding shows, skip it - [x] After onboarding, Duck.ai should be displayed as Free (Background logo just says "Duck.ai Free", models selector only display free models and no upsells) - [ ] ~Go to models selector, you should see the advance models~ - [ ] ~If you select one, the upsell appears "Unlock with a DuckDuckGo...."~ - [ ] ~Clicking on the upsell takes you to subscription flow~ - [ ] ~Ensure it does, and go back to chat~ - [ ] ~Click on Duck.ai settings (top right)~ - [ ] ~The options "Subscribe to DuckDuckGo" and "I have a subscription" appear~ - [ ] ~Click on "I have a Subscription"~ - [ ] ~Ensure it navigate to activation flow~ - [ ] ~Go back to Duck.ai~ - [x] go to settings, and purchase a subscription (or go there using any upsell link) (after subscription restart the app, this is to avoid Duck.ai chat being restored, something we need to fix in https://app.asana.com/1/137249556945/project/1149059203486286/task/1210671370392466?focus=true) - [x] Open Duck.ai again (from any entry point) - [x] An Duck.ai paid onboarding appears (depending if this is your first visit as subscriber) - [x] Duck.ai is in subscriber mode (background logo has changed "Subscriber" and model selector includes advanced models) - [x] Inside Duck.ai settings now it shows "manage", and if you click there you can navigate to subscription settings | Before | After | | ------ | ----- | !(Upload before screenshot)|(Upload after screenshot)|
Task/Issue URL: https://app.asana.com/1/137249556945/task/1210461583262416?focus=true Adds integration between duck.ai and subscriptions. Includes: - messaging for Feature Flags in FE - share token - navigational events _Feature 1_ - [x] Apply patch from https://app.asana.com/1/137249556945/project/1149059203486286/task/1210461583262416?focus=true - [x] Fresh install - [x] Install branch - [x] Open Duck.ai, if onboarding shows, skip it - [x] After onboarding, Duck.ai should be displayed as Free (Background logo just says "Duck.ai Free", models selector only display free models and no upsells) - [ ] ~Go to models selector, you should see the advance models~ - [ ] ~If you select one, the upsell appears "Unlock with a DuckDuckGo...."~ - [ ] ~Clicking on the upsell takes you to subscription flow~ - [ ] ~Ensure it does, and go back to chat~ - [ ] ~Click on Duck.ai settings (top right)~ - [ ] ~The options "Subscribe to DuckDuckGo" and "I have a subscription" appear~ - [ ] ~Click on "I have a Subscription"~ - [ ] ~Ensure it navigate to activation flow~ - [ ] ~Go back to Duck.ai~ - [x] go to settings, and purchase a subscription (or go there using any upsell link) (after subscription restart the app, this is to avoid Duck.ai chat being restored, something we need to fix in https://app.asana.com/1/137249556945/project/1149059203486286/task/1210671370392466?focus=true) - [x] Open Duck.ai again (from any entry point) - [x] An Duck.ai paid onboarding appears (depending if this is your first visit as subscriber) - [x] Duck.ai is in subscriber mode (background logo has changed "Subscriber" and model selector includes advanced models) - [x] Inside Duck.ai settings now it shows "manage", and if you click there you can navigate to subscription settings | Before | After | | ------ | ----- | !(Upload before screenshot)|(Upload after screenshot)|
Task/Issue URL: https://app.asana.com/1/137249556945/task/1210461583262416?focus=true Adds integration between duck.ai and subscriptions. Includes: - messaging for Feature Flags in FE - share token - navigational events _Feature 1_ - [x] Apply patch from https://app.asana.com/1/137249556945/project/1149059203486286/task/1210461583262416?focus=true - [x] Fresh install - [x] Install branch - [x] Open Duck.ai, if onboarding shows, skip it - [x] After onboarding, Duck.ai should be displayed as Free (Background logo just says "Duck.ai Free", models selector only display free models and no upsells) - [ ] ~Go to models selector, you should see the advance models~ - [ ] ~If you select one, the upsell appears "Unlock with a DuckDuckGo...."~ - [ ] ~Clicking on the upsell takes you to subscription flow~ - [ ] ~Ensure it does, and go back to chat~ - [ ] ~Click on Duck.ai settings (top right)~ - [ ] ~The options "Subscribe to DuckDuckGo" and "I have a subscription" appear~ - [ ] ~Click on "I have a Subscription"~ - [ ] ~Ensure it navigate to activation flow~ - [ ] ~Go back to Duck.ai~ - [x] go to settings, and purchase a subscription (or go there using any upsell link) (after subscription restart the app, this is to avoid Duck.ai chat being restored, something we need to fix in https://app.asana.com/1/137249556945/project/1149059203486286/task/1210671370392466?focus=true) - [x] Open Duck.ai again (from any entry point) - [x] An Duck.ai paid onboarding appears (depending if this is your first visit as subscriber) - [x] Duck.ai is in subscriber mode (background logo has changed "Subscriber" and model selector includes advanced models) - [x] Inside Duck.ai settings now it shows "manage", and if you click there you can navigate to subscription settings | Before | After | | ------ | ----- | !(Upload before screenshot)|(Upload after screenshot)|
Task/Issue URL: https://app.asana.com/1/137249556945/task/1210461583262416?focus=true
Description
Adds integration between duck.ai and subscriptions.
Includes:
Steps to test this PR
Feature 1
Go to models selector, you should see the advance modelsIf you select one, the upsell appears "Unlock with a DuckDuckGo...."Clicking on the upsell takes you to subscription flowEnsure it does, and go back to chatClick on Duck.ai settings (top right)The options "Subscribe to DuckDuckGo" and "I have a subscription" appearClick on "I have a Subscription"Ensure it navigate to activation flowGo back to Duck.ai(after subscription restart the app, this is to avoid Duck.ai chat being restored, something we need to fix in https://app.asana.com/1/137249556945/project/1149059203486286/task/1210671370392466?focus=true)
UI changes