Onboarding Brand Design Update: Update visit-site-options dialog#8291
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit dbfbbe3. Configure here.
dbfbbe3 to
3826740
Compare
3826740 to
871fd0c
Compare
d73c03b to
a32fc81
Compare
871fd0c to
6553911
Compare
6553911 to
ca3ecd2
Compare
a32fc81 to
b2fe3e2
Compare
|
@mikescamell when I reach the "visit a site step", I just get an empty background: |
ca3ecd2 to
d98cc78
Compare
Thanks Lukasz, this was a bug in the try-a-search intial implementation and is now fixed 👍 |
d98cc78 to
b03578b
Compare
b03578b to
bd91a52
Compare
d5c7548 to
94d3175
Compare
LukasPaczos
left a comment
There was a problem hiding this comment.
The "try search" and "try site" classes have identical body. Might be worth considering squashing that down to:
// Inside DaxBubbleCta.BrandDesignUpdateBubbleCta
abstract class OptionsBubbleCta(
ctaId: CtaId,
@StringRes title: Int,
@StringRes description: Int,
options: List<DaxDialogIntroOption>?,
@DrawableRes backgroundRes: Int,
ctaPixelParam: String,
onboardingStore: OnboardingStore,
appInstallStore: AppInstallStore,
isLightTheme: Boolean,
) : BrandDesignUpdateBubbleCta(...) {
override val activeIncludeId = R.id.optionsContent
override fun configureContentViews(view: View) { /* the shared body */ }
override fun setOnOptionClicked(...) { /* the shared body */ }
}
data class DaxTryASearchBrandDesignUpdateBubbleCta(...) : OptionsBubbleCta(
ctaId = CtaId.DAX_INTRO,
title = R.string.onboardingSearchDaxDialogTitle,
// ...differing values only
)
data class DaxVisitSiteOptionsBrandDesignUpdateBubbleCta(...) : OptionsBubbleCta(
ctaId = CtaId.DAX_INTRO_VISIT_SITE,
// ...differing values only
) bd91a52 to
919e5fd
Compare
94d3175 to
4aeee32
Compare
Create DaxVisitSiteOptionsBrandDesignUpdateBubbleCta extending BrandDesignUpdateBubbleCta. Reuses the existing optionsContent include layout with site visit options from OnboardingStore.getSitesOptions(). - New CTA class in its own file - CtaViewModel toggle check (isBrandDesignUpdateEnabled) - BrowserTabViewModel pixel check for ONBOARDING_VISIT_SITE_CUSTOM - Toggle tests in CtaViewModelTest - TODO for background image Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ogic Pulls the identical configureContentViews and setOnOptionClicked implementations out of DaxTryASearchBrandDesignUpdateBubbleCta and DaxVisitSiteOptionsBrandDesignUpdateBubbleCta into a shared OptionsBubbleCta base so both subclasses reduce to their differing constructor values. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2a7beed to
e416b21
Compare




Task/Issue URL: https://app.asana.com/1/137249556945/project/1207908166761516/task/1214072694520134?focus=true
Description
Adds the brand design update variant of the DaxIntroVisitSiteOptionsCta dialog. This follows the same pattern as the DaxTryASearchBrandDesignUpdateBubbleCta — an options-style dialog using the existing optionsContent include layout.
When the brand design update feature toggle is enabled, the new
DaxVisitSiteOptionsBrandDesignUpdateBubbleCtais shown instead of the legacyDaxIntroVisitSiteOptionsCta.Background image is not yet included (TODO added).
Steps to test this PR
Designs
Apply patch
Note if you want to see the dialog consistently from app close and open then apply this patch to force the dialog
Brand design update visit site options dialog
UI changes
See here for screenshots
Note
Low Risk
Low risk: scoped to onboarding CTA selection and UI wiring, with behavior gated behind the brand design update toggle and covered by updated unit tests.
Overview
Adds a brand design update variant of the onboarding “visit site options” bubble (
DaxVisitSiteOptionsBrandDesignUpdateBubbleCta) and switchesCtaViewModelto serve it when the brand design update toggle is enabled (otherwise falling back to the legacyDaxIntroVisitSiteOptionsCta).Introduces
OptionsBubbleCtato centralize the shared option-button binding/click handling for brand-design option-style bubbles, and refactorsDaxTryASearchBrandDesignUpdateBubbleCtato use this new base. Pixel firing for custom visit-site entries is updated inBrowserTabViewModel, andCtaViewModelTestadds coverage for the new toggle-driven visit-site CTA selection.Reviewed by Cursor Bugbot for commit e416b21. Bugbot is set up for automated code reviews on this repo. Configure here.