World Clocks widget is missing the widgets.clocks.interaction pref and interaction tracking entirely
Categories
(Firefox :: New Tab Page, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: maxx, Assigned: chimaifeanyi29)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Issue:
Every other New Tab widget tracks user engagement via a widgets.<widget>.interaction pref, set through handleUserInteraction(widgetName) in Widgets.jsx. Prefs exist for lists, focusTimer, weatherForecast, and sportsWidget (defined in lib/ActivityStream.sys.mjs).
The World Clocks widget has none of this:
- There is no widgets.clocks.interaction pref.
- Clocks.jsx / ClocksRow.jsx / AddClockForm.jsx never call handleUserInteraction, even though Widgets.jsx already passes it to the widget as a prop.
As a result, we have no engagement signal for Clocks, and it's inconsistent with the
other widgets.
What to do:
- Add a
widgets.clocks.interactionpref alongside the others in lib/ActivityStream.sys.mjs. - Wire
handleUserInteraction("clocks")into the genuine interactions in Clocks.jsx, following the rule established in bug 2044456: every interaction flips it except "Hide widget." - Add unit tests asserting each of those flips the pref and that hide does not.
Candidate handlers:
- handleToggleHourFormat,
- handleChangeSize,
- handleLearnMore,
- handleShowAddClock,
- handleShowEditClocks,
- handleSaveClock (add/edit),
- handleRemoveClock.
Acceptance criteria:
Interacting with the Clocks widget (e.g. adding a clock, toggling 12/24h, resizing) sets browser.newtabpage.activity-stream.widgets.clocks.interaction to true; hiding it does not.
| Reporter | ||
Updated•2 months ago
|
Updated•1 month ago
|
Updated•1 month ago
|
| Reporter | ||
Comment 2•29 days ago
|
||
Comment 5•15 days ago
|
||
Backed out for causing failures at Clocks.test.jsx
Backout link: https://hg.mozilla.org/integration/autoland/rev/85848fb2b334
Failure log: https://treeherder.mozilla.org/logviewer?job_id=579989666&repo=autoland&task=OkqCjpLdQbm8Au3N5M9jrA.0&lineNumber=3089
Hi, how can I bring this to your attention that the patch got reverted for failing tests.
| Reporter | ||
Comment 7•10 days ago
|
||
japandi - If you can rebase the stack again (be sure to use --reapply-cherry-picks) and I can rebase and can push again. Thanks!
Comment 10•5 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e0eac6f3e57b
https://hg.mozilla.org/mozilla-central/rev/d675cc2d709f
| Reporter | ||
Updated•8 hours ago
|
Description
•