GoogleChromeLabs / ps-analysis-tool

Privacy Sandbox Analysis Chrome Extension and CLI for analysis and understanding of cookie usage on web pages, and new privacy-preserving Chrome APIs
https://www.privacysandbox.com
Apache License 2.0
90 stars 18 forks source link

Feature: Show Exempted Cookies in CLI Dashboard #694

Closed mayan-000 closed 3 weeks ago

mayan-000 commented 1 month ago

Description

This PR adds support for -

  1. Obtaining the exemption reason for cookies in the CLI
  2. Displaying these exempted cookies in the CLI Dashboard

Relevant Technical Choices

  1. In the CLI, the exemptionReason is obtained from the ResponseReceivedExtraInfoEvent network event.
  2. In the CLI Dashboard, ExemptedCookiesSection is used to display these exempted cookies on the landing page.
  3. Table filters for the same have also been added.

Testing Instructions

Additional Information:

puppeteer package's newer version has multiple breaking changes, so therefore importing types from the devtools-protocol package. Thus, it has been added as a dependency to the cli package.

Screenshot/Screencast

https://github.com/GoogleChromeLabs/ps-analysis-tool/assets/58820001/53a95724-eba5-49b9-b2fa-57936a25d12e


Checklist

Fixes #

mohdsayed commented 3 weeks ago

Closing as a fresh PR will be created for this task