-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Introduce DaxCta interface #680
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
Conversation
…m:duckduckgo/Android into feature/marcos/cta_helper # Conflicts: # app/src/androidTest/java/com/duckduckgo/app/cta/ui/CtaTest.kt # app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt # app/src/main/java/com/duckduckgo/app/cta/ui/Cta.kt
cmonfortep
left a comment
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.
A few comments, I may be missing some context and understanding of our CTAs, but hope they can help a bit. I didn't have time to test this tho. I will check again tomorrow.
app/src/androidTest/java/com/duckduckgo/app/cta/CtaDaxHelperTest.kt
Outdated
Show resolved
Hide resolved
app/src/androidTest/java/com/duckduckgo/app/cta/CtaDaxHelperTest.kt
Outdated
Show resolved
Hide resolved
app/src/androidTest/java/com/duckduckgo/app/browser/BrowserTabViewModelTest.kt
Outdated
Show resolved
Hide resolved
subsymbolic
left a comment
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.
Looks good!
#679 has to be merged first
Task/Issue URL: https://app.asana.com/0/1125189844152671/1154748750174829 and https://app.asana.com/0/1125189844152671/1158928566141343
Tech Design URL:
CC:
Description:
Some of the code for each CTA was duplicated and it seemed the logic could be extracted to a different class. This PR introduces a new cta helper that does that job previously done on each CTA.
It also addresses an issue with the cta pixels sent so we don't send any days greater than 3.
Lastly it fixes an issue where the pixel for the bubble ctas were not being sent at the right time.
NOTE: Currently the PR tries to merge into
feature/marcos/cta_new_interfacesthe reason is because the branch is based on that one and to avoid having changes here that are part of a different PR. Once the other PR gets merged I'll change to point to develop.Steps to test this PR:
CTAs work as usual
meMax pixel day is 3
Change the method
AppInstallStore.daysInstalled()to always return 4.mem_odc_s with params: {cta=i:3}Send pixel asap and do not sent same pixel twice
mem_odc_s with params: {cta=i:1}and is sent as soon as the cta shows without having to wait.m_odc_sis not sent this time.Internal references:
Software Engineering Expectations
Technical Design Template