Skip to content

Implement new widget prompt in onboarding #6185

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

anikiki
Copy link
Contributor

@anikiki anikiki commented Jun 5, 2025

Task/Issue URL:https://app.asana.com/1/137249556945/project/1200581511062568/task/1210403485354664?focus=true

Description

Added an experimental home screen widget bottom sheet dialog to promote adding the DuckDuckGo search widget to the user's home screen. The dialog includes a visual preview of the widget, explanatory text, and two action buttons: "Add Widget" and "Not Now".

Steps to test this PR

Home Screen Widget Promotion

  • Install from this branch.
  • Apply the patch attached to the Asana task.
  • Go through the Onboarding until you reach the Widget Promo step.
  • Verify the experimental home screen widget bottom sheet appears when triggered.
  • Confirm the "Add Widget" button dismisses the dialog and launches the widget addition flow.
  • Verify the "Not Now" button properly dismisses the dialog.
  • Check that the dialog shows a preview image of the widget and explanatory text.

UI changes

Light Dark
Screenshot_20250607_115414 Screenshot_20250607_120058

Copy link
Contributor Author

anikiki commented Jun 5, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@anikiki anikiki changed the title Added new bottomsheet to be used in Add Homescreen Widget experiment. Implement new widget prompt in onboarding Jun 6, 2025
@anikiki anikiki marked this pull request as ready for review June 7, 2025 11:02
Comment on lines +4195 to +4197
fun onExperimentalHomeScreenWidgetBottomSheetDialogNotNowClicked() {
logcat { "Not Now clicked on the Experimental Home Screen Widget bottom sheet" }
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When testing, the widget dialog keeps reappearing every time I open a new tab after dismissing it. You need to ensure that you call ctaViewModel.onUserDismissedCta() to make sure it's recorded in the dismissed CTA database.
Same for other callbacks that dismiss the CTA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants