Repository navigation
Commit 3c5729c
Ship the onboarding widget prompt and remove the Add to Dock experiment (#9857)
Task/Issue URL:
https://app.asana.com/1/137249556945/project/72649045549333/task/1217068101576174
Tech Design URL (if applicable):
API Proposals URL(s) (if applicable): None
### Description
The `onboardingPrompts` / `addToDockAndWidgetExperimentJul25` experiment
concluded with the widget-only variant winning. This PR ships that
variant and cleans up the experiment:
- The widget prompt (`widget_prompt` + `add_widget` steps, right after
the default browser prompt) is now a default step of the linear
onboarding plan for every user without an installed widget, reinstallers
included.
- Removed `OnboardingPromptsExperimentManager`,
`OnboardingPromptsToggles` and `OnboardingPromptsExperimentMetrics`,
along with the metric calls in `WidgetAddedReceiver`,
`SystemSearchViewModel` and `OnboardingCompletedMetricObserver`, and the
prerequisite check in `SegmentedOnboardingExperimentManager`. The
`onboardingPrompts` feature is also removed from the bundled
`privacy_config.json`.
- Removed everything Add to Dock related: step, dialog, step id, dialog
type, `onboarding_add-to-dock` pixel, both welcome-page branches, the
config-driven resolver/binder/controller entries, the tutorial video,
sketch-frame drawable, include layout, `AspectRatioTextureView`, dimen,
lint-baseline entry, and the English and translated strings (lint-vital
fails release builds on `ExtraTranslation` otherwise).
- Maestro: the widget prompt is now a mandatory step in
`pre_onboarding.yaml`; the `linearWidgetPromptShown` output flag is gone
and `onboarding_dismiss_all_dialogs.yaml` asserts the in-context widget
CTA is not shown.
### Steps to test this PR
_Fresh install, no widget_
- [x] Install a fresh build and go through onboarding
- [x] After the default browser prompt, verify the "Try our Home screen
widget" page shows with a step indicator
- [x] Tap "Add widget" and verify the system pin dialog appears, then
the flow continues to the address bar position page
- [x] Complete onboarding, open a New Tab Page and verify the widget
bottom sheet is NOT shown
_Fresh install, skip widget_
- [x] Go through onboarding and tap "Not Now" on the widget page
- [x] Verify the flow continues to the address bar position page and the
widget bottom sheet is NOT shown afterwards
_Widget already installed_
- [x] Add a DuckDuckGo widget to the home screen before the widget page
is reached and verify the widget page is skipped
_Reinstall_
- [x] Install the app as a reinstallers, choose to go through full
onboarding, and verify the widget page is shown
_Add to Dock_
- [x] Verify no "Add me to your favorites row" page appears anywhere in
onboarding
_Automated_
- [ ] Maestro `onboarding/onboarding.yaml` and
`onboarding/onboarding_dismiss_all_dialogs.yaml` pass
### UI changes
| Before | After |
| ------ | ----- |
Widget prompt only for the `treatmentWidgetOnly` /
`treatmentDockAndWidget` cohorts; Add to Dock page for dock
cohorts|Widget prompt for everyone without a widget; no Add to Dock
page|
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>1 parent 0435707 commit 3c5729c
69 files changed
Lines changed: 44 additions & 1519 deletions
File tree
- .maestro
- onboarding
- PixelDefinitions/pixels/definitions
- app
- src
- main
- java/com/duckduckgo/app
- onboarding
- orchestrator
- ui/page
- configdriven
- binders
- engine
- pixels
- systemsearch
- widget
- res
- drawable
- layout
- raw
- values-bg
- values-cs
- values-da
- values-de
- values-el
- values-es
- values-et
- values-fi
- values-fr
- values-hr
- values-hu
- values-it
- values-lt
- values-lv
- values-nb
- values-nl
- values-pl
- values-pt
- values-ro
- values-ru
- values-sk
- values-sl
- values-sv
- values-tr
- values
- test/java/com/duckduckgo/app
- onboarding
- orchestrator
- ui/page
- configdriven
- systemsearch
- privacy-config/privacy-config-impl/src/main/res/raw
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
| |||
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
58 | 32 | | |
59 | 33 | | |
60 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 135 | | |
151 | 136 | | |
152 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5709 | 5709 | | |
5710 | 5710 | | |
5711 | 5711 | | |
5712 | | - | |
5713 | | - | |
5714 | | - | |
5715 | | - | |
5716 | | - | |
5717 | | - | |
5718 | | - | |
5719 | | - | |
5720 | | - | |
5721 | | - | |
5722 | | - | |
5723 | 5712 | | |
5724 | 5713 | | |
5725 | 5714 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| |||
Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 0 additions & 106 deletions
This file was deleted.
Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||


0 commit comments