Set up the Nightly Labs experiment for custom widgets in Experimenter
Categories
(Firefox :: Widgets, task)
Tracking
()
People
(Reporter: nina-py, Assigned: nina-py)
References
(Depends on 2 open bugs, Blocks 3 open bugs)
Details
(Whiteboard: [hnt][hnt-wattle])
Attachments
(1 file)
|
5.51 KB,
text/plain
|
Details |
Create the Labs recipe in Experimenter that offers custom widgets in Nightly Labs, using the Nimbus feature from bug 2089908.
Acceptance criteria:
- The entry shows in Nightly Labs, in the "Widgets on Firefox Home" group, and in no other channel.
- Ticking it enrols the user and shows the Widget Studio panel, without a restart.
- Unticking it, or blocking AI while enrolled, unenrols the user and leaves their widgets running.
- The entry is shown whether or not AI is blocked, and has no sign-in or Smart Window requirement.
- The recipe has one branch, sets
isRolloutexplicitly and setsfirefoxLabsDescriptionLinksto null until the Mozilla Connect post exists. - The minimum version is the first Nightly with the Labs strings, the Nimbus feature, the AI Controls row and the widget creation UI.
- It is checked in Nightly with a user who opts in, opts out, and blocks AI while enrolled.
Updated•20 days ago
|
Comment 1•12 days ago
|
||
Nina, note that this should only be available to users in:
- region = US or CA
- locale = EN-US, EN-CA, or EN-GB
| Assignee | ||
Comment 2•8 days ago
|
||
I've drafted the recipe for the Widget Studio callout, to go out alongside the Labs recipe. It replaces the in-tree message from bug 2091267: OMC advised delivering messages through Experimenter, so nothing needs to land in the tree.
Settings
- Firefox Desktop, rollout, one branch (
treatment-a) - Feature:
fxms-message, because it supports co-enrolment.featureCalloutallows one rollout at a time, so it could collide with other OMC callouts. - Channel: Nightly, minimum version 162
- Audience: region US or CA, locales en-US, en-CA or en-GB
- Population: 100%
- Localization: not used yet. The strings are plain English. Final strings and the localisation steps will go in a follow-up bug.
- Required experiments: empty. The callout fires when the pref flips at opt-in, and a recipe that requires the Labs one would enrol after it, so the message wouldn't be loaded in time. The targeting in the message (
browser.widgets.generated.enabledis true) limits it to people who opted in.
Feature value
{
"id": "WIDGET_STUDIO_CALLOUT",
"template": "feature_callout",
"groups": [],
"content": {
"id": "WIDGET_STUDIO_CALLOUT",
"template": "multistage",
"backdrop": "transparent",
"transitions": false,
"disableHistoryUpdates": true,
"screens": [
{
"id": "WIDGET_STUDIO_CALLOUT_SCREEN",
"force_hide_steps_indicator": true,
"anchors": [
{
"selector": "sidebar-main::%shadow%moz-button[view='viewWidgetsSidebar']",
"panel_position": {
"anchor_attachment": "rightcenter",
"callout_attachment": "topleft"
}
},
{
"selector": "#sidebar-button",
"panel_position": {
"anchor_attachment": "rightcenter",
"callout_attachment": "topleft"
}
}
],
"content": {
"position": "callout",
"autohide": true,
"width": "352px",
"padding": 20,
"logo": {
"imageURL": "https://firefox-settings-attachments.cdn.mozilla.net/main-workspace/ms-images/20261117000831--custom-widgets-callout--6730f30f-a856-428b-91a9-0a136be767ee.svg",
"width": "190px",
"height": "168.5px"
},
"title": "Dream up a custom widget",
"subtitle": "Just describe it and Firefox builds it. Try a recipe scaler, a plant tracker, a movie quiz, or anything else you can put into words.",
"primary_button": {
"label": "Create widget",
"action": {
"type": "OPEN_SIDEBAR",
"data": "viewWidgetsSidebar",
"dismiss": true
}
},
"dismiss_button": {
"action": {
"dismiss": true
}
}
}
}
]
},
"trigger": {
"id": "preferenceObserver",
"params": [
"browser.widgets.generated.enabled",
"browser.ai.control.generatedWidgets",
"browser.ai.control.default"
]
},
"targeting": "'browser.widgets.generated.enabled' | preferenceValue && 'sidebar.revamp' | preferenceValue && !('browser.ai.control.generatedWidgets' | preferenceValue == 'blocked' || ((!('browser.ai.control.generatedWidgets' | preferenceValue) || 'browser.ai.control.generatedWidgets' | preferenceValue == 'default') && 'browser.ai.control.default' | preferenceValue == 'blocked'))",
"frequency": {
"lifetime": 1
}
}
Testing locally
I tested it with the attached snippet, which imports this recipe and a copy of the Labs one. Start Firefox with a fresh profile (./mach run --temp-profile) and paste the snippet into the Browser Console. Then tick "Custom widgets" on about:preferences#paneExperimental. You will see the callout on the Widget Studio button in the launcher, or on the toolbar sidebar button when the launcher is hidden. Clicking "Create widget" opens Widget Studio.
| Assignee | ||
Comment 3•8 days ago
|
||
Comment 4•8 days ago
|
||
Update: this will initially be limited to signed-in users with a @mozilla.com FxA account
Comment 5•12 hours ago
|
||
Notably, I think this will also need to set extensions.widgets.generated.enabled to true.
Comment 6•12 hours ago
|
||
And browser.newtabpage.activity-stream.widgets.generated.enabled to true
Description
•