-
Notifications
You must be signed in to change notification settings - Fork 28
Adapt Activity & Privacy Stats widgets for ads and trackers #1621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
[Beta] Generated file diffTime updated: Tue, 15 Apr 2025 22:43:06 GMT Integration
File has changed Windows
File has changed Apple
File has changed New Files
❌ File only exists in new changeset |
✅ Deploy Preview for content-scope-scripts ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
0049864
to
f1e8724
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks excellent to me. The useTrackerType
hook makes it easier to roll back the changes if the experiment is not successful. In fact, I wonder if it's worth creating separate components (e.g. ActivityHeadingAds
and TrackerStatusAds
) to make it easier to commit to one or the other once the experiment is done. We've been doing something similar in Duck Player to good results. Not a request, just a thought.
I agree with the choice of storing trackerType in activity config, but I'd still like to get Shane's sign-off on it when he's back.
I may end up using a |
935fd1c
to
80596e8
Compare
I’ve made some significant changes here. The PR now updates both the Activity and Privacy Stats widgets to support the variation where the browser blocks ads as well as trackers. (Before, only the Activity widget was updated.) This addresses an oversight in the original design, see https://app.asana.com/1/137249556945/project/0/task/1209958041601248. Because more than one type of widget is now affected by this feature flag I think it makes sense to do the flagging in I’ve made those changes, updated tests, and updated the PR description. |
593ae56
to
b12de7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 Over to @shakyShane for an architecture review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work - my only points are the same as the other PR:
- 1: what's the plan with translations?
- 2: the PR should go green once my other fix is merged.
1822ae6
to
97dde26
Compare
- Updates UI text, icons, and styles based on whether the browser blocks just trackers or ads and trackers. - Introduces a `trackerType` config option ('trackersOnly' or 'adsAndTrackers') to control the display. - Adds new translation strings and a green shield icon for the ads and trackers variant. - Updates tests and mock data accordingly.
This reverts commit 0049864.
cabe589
to
135b3f0
Compare
Asana Task/Github Issue: https://app.asana.com/0/1209121419454298/1209865676528005/f
Description
adBlocking.enabled = false
adBlocking.enabled = true
Updates the Activity and Privacy Stats widgets to support a variation where browser protections include ad blocking as well as tracker protection.
adBlocking
feature flag toNewTabPageSettings
to control display.Testing Steps
Navigate to:
Checklist
Please tick all that apply: