You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cleanup the code to remove the experiments and use new feature flags (#6777)
Task/Issue URL:
https://app.asana.com/1/137249556945/project/1200581511062568/task/1210824886441068?focus=true
### Description
Refactored the widget-related experiment implementation by replacing the
experiment-based approach with feature toggles.
1. Removing `OnboardingHomeScreenWidgetExperiment` and
`PostCtaExperienceExperiment` classes and their implementations
2. Updating the `OnboardingHomeScreenWidgetToggles` and
`PostCtaExperienceToggles` interfaces to use simple feature toggles
3. Removing experiment-related pixel tracking and metrics collection
4. Updating the widget-related functionality to use the new toggle-based
approach
5. Renaming and moving files for clarity
The PR removes complex experiment tracking code and replaces it with a
more straightforward feature toggle implementation, making the codebase
more maintainable and easier to understand.
### Steps to test this PR
- [x] Fresh install from this branch.
- [x] Don't skip onboarding. Go through the pre-onboarding and once you
can access the Settings, override the privacy config with this one:
https://www.jsonblob.com/api/1415374897584201728
- [x] Continue with onboarding until you see the last Dax dialog (the
one with the wings). Close it.
- [x] Open a new tab and confirm you see the widget prompt as in the
left screenshot (Onboarding widget prompt).
- [x] Go to Settings.
- [x] Tap on the "Home Screen Widget", last option in the "Protections"
section at the top. Confirm you see the widget prompt as in the right
screenshot (Settings widget prompt).
### NO UI changes, reference screenshots
| Onboarding widget prompt | Settings widget prompt |
| ------ | ----- |
|<img width="1080" height="2340" alt="Screenshot_20250910_173903"
src="https://github.com/user-attachments/assets/11fb2145-0c63-48f5-9f24-50a42b089e71"
/>|<img width="1080" height="2340" alt="Screenshot_20250910_174312"
src="https://github.com/user-attachments/assets/af14164c-472c-430b-9cf1-edcb521b4036"
/>|
Copy file name to clipboardExpand all lines: app/src/main/java/com/duckduckgo/app/browser/defaultbrowsing/prompts/ui/experiment/OnboardingHomeScreenWidgetExperiment.kt
0 commit comments