Bug 1873793 - Add tail fox doodle set default spotlight for existing users to onboarding messages r=omc-reviewers,fluent-reviewers,flod,aminomancer

Differential Revision: https://phabricator.services.mozilla.com/D199442
This commit is contained in:
Jason Prickett 2024-02-01 18:01:46 +00:00
parent e885b58f93
commit dcc1b316b9
4 changed files with 89 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -13,6 +13,7 @@ browser.jar:
# backwards compability is tracked in bug 1866935.
content/activity-stream/data/content/assets/confetti.svg (./assets/confetti.svg)
content/activity-stream/data/content/assets/device-migration.svg (./assets/device-migration.svg)
content/activity-stream/data/content/assets/fox-doodle-tail.png (./assets/fox-doodle-tail.png)
content/activity-stream/data/content/assets/fox-doodle-waving.gif (./assets/fox-doodle-waving.gif)
content/activity-stream/data/content/assets/fox-doodle-waving-static.png (./assets/fox-doodle-waving-static.png)
content/activity-stream/data/content/assets/heart.webp (./assets/heart.webp)

View File

@ -1121,7 +1121,83 @@ const BASE_MESSAGES = () => [
lifetime: 2,
},
targeting:
"source == 'startup' && !isMajorUpgrade && !activeNotifications && !isDefaultBrowser && !willShowDefaultPrompt && (currentDate|date - profileAgeCreated|date) / 86400000 >= 28",
"source == 'startup' && !isMajorUpgrade && !activeNotifications && !isDefaultBrowser && !willShowDefaultPrompt && (currentDate|date - profileAgeCreated|date) / 86400000 >= 28 && userPrefs.cfrFeatures == true",
trigger: {
id: "defaultBrowserCheck",
},
},
{
id: "TAIL_FOX_SET_DEFAULT",
template: "spotlight",
groups: ["eco"],
skip_in_tests: "it fails unrelated tests",
content: {
backdrop: "transparent",
id: "TAIL_FOX_SET_DEFAULT_CONTENT",
screens: [
{
id: "TAIL_FOX_SET_DEFAULT_SCREEN",
content: {
logo: {
height: "140px",
imageURL:
"chrome://activity-stream/content/data/content/assets/fox-doodle-tail.png",
reducedMotionImageURL:
"chrome://activity-stream/content/data/content/assets/fox-doodle-tail.png",
},
title: {
fontSize: "22px",
fontWeight: 590,
letterSpacing: 0,
paddingInline: "24px",
paddingBlock: "4px 0",
string_id: "tail-fox-spotlight-title",
},
subtitle: {
fontSize: "15px",
letterSpacing: 0,
lineHeight: "1.4",
marginBlock: "8px 16px",
paddingInline: "24px",
string_id: "tail-fox-spotlight-subtitle",
},
primary_button: {
action: {
navigate: true,
type: "SET_DEFAULT_BROWSER",
},
label: {
paddingBlock: "0",
paddingInline: "16px",
marginBlock: "4px 0",
string_id: "tail-fox-spotlight-primary-button",
},
},
secondary_button: {
action: {
navigate: true,
},
label: {
marginBlock: "0 -20px",
string_id: "tail-fox-spotlight-secondary-button",
},
},
dismiss_button: {
action: {
navigate: true,
},
},
},
},
],
template: "multistage",
transitions: true,
},
frequency: {
lifetime: 1,
},
targeting:
"source == 'startup' && !isMajorUpgrade && !activeNotifications && !isDefaultBrowser && !willShowDefaultPrompt && (currentDate|date - profileAgeCreated|date) / 86400000 <= 28 && (currentDate|date - profileAgeCreated|date) / 86400000 >= 7 && userPrefs.cfrFeatures == true",
trigger: {
id: "defaultBrowserCheck",
},

View File

@ -260,3 +260,14 @@ launch-on-login-infobar-reject-button = Not now
launch-on-login-infobar-final-message = <strong>Open { -brand-short-name } every time you restart your computer?</strong> To manage your Startup preferences, search “startup” in settings.
launch-on-login-infobar-final-reject-button = No thanks
.accesskey = N
## Tail Fox Set Default Spotlight
# This title is displayed together with the picture of a running fox with a long tail.
# In English, this is a figure of speech meaning 'stop something from following you'.
# If the localization of this message is challenging, consider using a simplified
# alternative as a reference for translation: 'Keep unwanted trackers away'.
tail-fox-spotlight-title = Keep pesky trackers off your tail
tail-fox-spotlight-subtitle = Say goodbye to annoying ad trackers and settle into a safer, speedy internet experience.
tail-fox-spotlight-primary-button = Open my links with { -brand-short-name }
tail-fox-spotlight-secondary-button = Not now