Closed Bug 2060787 Opened 2 months ago Closed 2 months ago

Migrate the Stocks widget telemetry to the shared useWidgetTelemetry hook

Categories

(Firefox :: New Tab Page, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: nina-py, Assigned: nina-py)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Move the New Tab Stocks widget off its inline WIDGETS_IMPRESSION / WIDGETS_USER_EVENT / WIDGETS_ERROR dispatches onto the shared
useWidgetTelemetry hook already used by Picture of the Day, Lists, and Clocks widgets.

No user-facing or telemetry change - same events, routing, threshold, and payloads.

Also wires the Stocks feed into the ASRouter devtools "Expire Cache" button so the load-error state can be tested without waiting out the cache TTL.

Depends on: 2060749

Move the Stocks widget off its inline WIDGETS_IMPRESSION, WIDGETS_USER_EVENT,
and WIDGETS_ERROR dispatches onto the shared useWidgetTelemetry hook already
used by Picture of the Day, Lists, and Clocks. Stocks.jsx calls the hook once
for the impression observer, the context-menu user events, and the load error
(passed down to StocksError); the now-unused USER_ACTION_TYPES constant is
removed. The events, message routing, impression threshold, and payloads are
unchanged, so there is no user-facing or telemetry change.

Also wire the Stocks feed into the ASRouter devtools "Expire Cache" button so
the load-error state can be exercised without waiting out the cache TTL.

Severity: S1 → N/A
Priority: P1 → --
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: