Open Bug 2027870 Opened 1 month ago Updated 1 month ago

Update Privacy Metrics Widget Styling to Nova Design

Categories

(Core :: Preferences: Backend, task, P2)

task

Tracking

()

People

(Reporter: jhan, Assigned: jhan, Mentored)

References

Details

Attachments

(1 file, 2 obsolete files)

The privacy metrics widget (Bug 2010369) currently lives on about:protections. To surface tracker-blocking stats where users actually see them, we move the widget to the new tab page and update the visual design to match the Nova spec.

Figma: https://www.figma.com/design/i8wWurQ8yn9y5hCjnf8BYu/HNT---Nova?node-id=5151-14116&p=f&t=0E7sOVBdqKBDiCvO-0

The widget should be configurable via prefs so product can test different insight messages and mascot variants without code changes. Integration uses the External Component Registry (same pattern as the search handoff bar) since this is the supported path for non-React components on the new tab.

Implements a configurable tracker-blocking stats widget showing daily
protection counts with pref-driven insight messages and mascot variants.
The card is a pure prop-based Lit component rendered on both about:protections
(demo grid) and the new tab page (via External Component Registry).

Display logic lives in PrivacyMetricsService.getDisplayState() which
combines TrackingDBService data with insight/mascot prefs. A Redux feed
dispatches the state to the new tab, and ExternalComponentWrapper mounts
the web component with props flowing down.

Includes xpcshell tests for all display state branches and browser tests
for all card rendering variants.

Attachment #9562290 - Attachment is obsolete: true
Attachment #9565395 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: