Closed Bug 2010369 Opened 7 months ago Closed 5 months ago

Create privacy metrics card Lit component

Categories

(Firefox :: Protections UI, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: jhan, Assigned: jhan)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 2 obsolete files)

Build a user-facing widget that displays tracking protection statistics:

  • privacy-metrics-card Lit component following Firefox design system
  • Display blocked count with breakdown by category
  • "View Full Report" link to about:protections
  • Localization strings (FTL) for all user-facing text
  • Basic rendering tests
  • Wire up to PrivacyMetricsService via actor messages
Assignee: nobody → jhan
Summary: Bug 2: Create privacy metrics card Lit component for new tab → Create privacy metrics card Lit component for new tab
Depends on: 2010368
Blocks: 2010373

Adds a reusable privacy-metrics-card web component that displays weekly
tracking protection statistics. The component:

  • Fetches stats via PrivacyMetrics JSWindowActor
  • Shows total blocked count and top 3 categories with icons
  • Handles loading, error, and private browsing states

Integrates the component into about:newtab with responsive positioning:

  • Full card on large screens (>1600px)
  • Shield icon button on smaller screens
Attachment #9538594 - Attachment description: Bug 2010369 - Add privacy-metrics-card Lit component for newtab. r?emz → Bug 2010369 - Add privacy-metrics-card Lit component. r?emz
Attachment #9538594 - Attachment description: Bug 2010369 - Add privacy-metrics-card Lit component. r?emz → Bug 2010369 - Add privacy-metrics-card Lit component for newtab. r?emz
Attached image Component

Adds a reusable privacy-metrics-card web component that displays weekly
tracking protection statistics. The component:

  • Fetches stats directly via PrivacyMetrics JSWindowActor
  • Shows total blocked count and top 3 categories with icons
  • Handles loading and error states

Integrates the component into about:newtab with responsive positioning:

  • Full card on large screens (>1600px)
  • Shield icon button on smaller screens
Attachment #9540734 - Attachment is obsolete: true

Since tracking cookies are no longer actively blocked, remove the category
from the privacy metrics card display while TrackingDBService still records
those events for historical data.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Attachment #9543945 - Attachment is obsolete: true
Summary: Create privacy metrics card Lit component for new tab → Create privacy metrics card Lit component
Attachment #9538594 - Attachment description: Bug 2010369 - Add privacy-metrics-card Lit component for newtab. r?emz → Bug 2010369 - Add privacy-metrics-card Lit component to about:protections. r?emz
Pushed by ezuehlcke@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/24199d8ccf40 https://hg.mozilla.org/integration/autoland/rev/5912b9438e3b Add privacy-metrics-card Lit component to about:protections. r=emz,fluent-reviewers,flod
Pushed by imoraru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1f7620aefea2 https://hg.mozilla.org/integration/autoland/rev/388f7862a41f Revert "Bug 2010369, Bug 2010368 - Add privacy-metrics-card Lit component to about:protections. r=emz,fluent-reviewers,flod" for causing linting failures on privacy-metrics-card.css.

Revert for causing linting failures on privacy-metrics-card.css.
This is also causing bc failures like these: https://treeherder.mozilla.org/logviewer?job_id=553536646&repo=autoland&task=Gld_H9muSZSdgOcdNRGAHQ.0&lineNumber=2935

Flags: needinfo?(jhan)
Pushed by ezuehlcke@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ad0e9c71c983 https://hg.mozilla.org/integration/autoland/rev/ad0f00f25d96 Add privacy-metrics-card Lit component to about:protections. r=emz,fluent-reviewers,desktop-theme-reviewers,flod,jules
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
QA Whiteboard: [qa-triage-done-c151/b150]
Flags: needinfo?(jhan)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: