Closed Bug 2050969 Opened 2 months ago Closed 2 months ago

Set up boilerplate Picture of the Day widget (prefs/basic UI)

Categories

(Firefox :: New Tab Page, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: maxx, Assigned: dgrant)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.

Registers a new New Tab "Picture of the day" widget: the registry entry, the
three widget prefs, the component, and the customize-panel + about:preferences
toggles. It renders the "hidden picture" fallback state - a CSS sunrise gradient
with the context menu, an eye button, and a hover-revealed empty-state message.

The actual picture, localized description, set-as-wallpaper, and dismiss/restore
behaviors arrive with the Merino feed (Bug 2050976) and the follow-ups (Bug
2050975 / 2050973 / 2050972). For now the "Manage wallpaper" and "Hide today's
picture" context-menu items and the eye button are present but only emit
telemetry. The "small" size is deferred (Bug 2050970).

Telemetry uses the shared useWidgetTelemetry hook (generic widgets_* events; no
metrics.yaml change). Stacks on the strings patch (Bug 2050971 / D309659).

Risk: gated behind widgets.system.enabled (off by default) and Nova; no change
to existing widgets. Regenerated css/activity-stream.css and
data/content/activity-stream.bundle.js are included.

Validation: ./mach lint (clean), newtab jest (PictureOfTheDay 7/7 and the
WidgetsRegistry order arrays), and manual about:newtab with the widget prefs +
nova.enabled.

Assignee: nobody → dgrant
Status: NEW → ASSIGNED
Attachment #9603233 - Attachment description: Bug 2050969 - Add the Picture of the Day widget boilerplate. r?#home-newtab-reviewers → Bug 2050969 - Add the Picture of the Day widget scaffolding. r?#home-newtab-reviewers
Attachment #9603233 - Attachment description: Bug 2050969 - Add the Picture of the Day widget scaffolding. r?#home-newtab-reviewers → Bug 2050969 - Add the Picture of the Day widget boilerplate. r?#home-newtab-reviewers
Attachment #9603233 - Attachment description: Bug 2050969 - Add the Picture of the Day widget boilerplate. r?#home-newtab-reviewers → Bug 2050969 - Picture of the Day: Add widget boilerplate. r?#home-newtab-reviewers
Attachment #9603233 - Attachment description: Bug 2050969 - Picture of the Day: Add widget boilerplate. r?#home-newtab-reviewers → Bug 2050969 - Add the Picture of the Day widget boilerplate. r?#home-newtab-reviewers
Pushed by csabou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/bfada93d590e https://hg.mozilla.org/integration/autoland/rev/09d347fbe860 Revert "Bug 2050969 - Add the Picture of the Day widget boilerplate. r=fluent-reviewers,bolsson,Dre" for causing node failures.

Backed out for causing node failures.

Push with failures

Failure log

Backout link

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: