Skip to content

Commit

Permalink
Bug 1831144 - Added fox doodle set default spotlight to onboarding me…
Browse files Browse the repository at this point in the history
…ssages r=omc-reviewers,aminomancer

Differential Revision: https://phabricator.services.mozilla.com/D177388
  • Loading branch information
jwayn committed May 31, 2023
1 parent 7f89872 commit 709c0a7
Showing 3 changed files with 74 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions browser/components/newtab/lib/OnboardingMessageProvider.jsm
Original file line number Diff line number Diff line change
@@ -1072,6 +1072,80 @@ const BASE_MESSAGES = () => [
},
targeting: `'cookiebanners.ui.desktop.enabled'|preferenceValue == true && 'cookiebanners.service.detectOnly'|preferenceValue == true`,
},
{
id: "FOX_DOODLE_SET_DEFAULT",
template: "spotlight",
groups: ["eco"],
content: {
backdrop: "transparent",
id: "FOX_DOODLE_SET_DEFAULT",
screens: [
{
content: {
logo: {
height: "125px",
imageURL:
"chrome://activity-stream/content/data/content/assets/fox-doodle-waving.gif",
reducedMotionImageURL:
"chrome://activity-stream/content/data/content/assets/fox-doodle-waving-static.png",
},
title: {
fontSize: "22px",
fontWeight: 590,
letterSpacing: 0,
paddingInline: "24px",
paddingBlock: "4px 0",
string_id: "fox-doodle-pin-headline",
},
subtitle: {
fontSize: "15px",
letterSpacing: 0,
lineHeight: "1.4",
marginBlock: "8px 16px",
paddingInline: "24px",
string_id: "fox-doodle-pin-body",
},
primary_button: {
action: {
navigate: true,
type: "SET_DEFAULT_BROWSER",
},
label: {
paddingBlock: "0",
paddingInline: "16px",
marginBlock: "4px 0",
string_id: "fox-doodle-pin-primary",
},
},
secondary_button: {
action: {
navigate: true,
},
label: {
marginBlock: "0 -20px",
string_id: "fox-doodle-pin-secondary",
},
},
dismiss_button: {
action: {
navigate: true,
},
},
},
},
],
template: "multistage",
transitions: true,
},
frequency: {
lifetime: 2,
},
targeting:
"source == 'startup' && !isMajorUpgrade && !activeNotifications && !isDefaultBrowser && !willShowDefaultPrompt && (currentDate|date - profileAgeCreated|date) / 86400000 >= 28",
trigger: {
id: "defaultBrowserCheck",
},
},
];

// Eventually, move Feature Callout messages to their own provider

0 comments on commit 709c0a7

Please sign in to comment.