Update Privacy Metrics Widget Styling to Nova Design
Categories
(Core :: Preferences: Backend, task, P2)
Tracking
()
People
(Reporter: jhan, Assigned: jhan, Mentored)
References
Details
Attachments
(1 file, 2 obsolete files)
|
48 bytes,
text/x-phabricator-request
|
Details |
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.
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.
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Description
•