-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add user toggle to control tracker animation #7492
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
Add user toggle to control tracker animation #7492
Conversation
78eb66c to
4901fcd
Compare
app/src/main/java/com/duckduckgo/app/browser/BrowserTabViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/duckduckgo/app/appearance/AppearanceViewModel.kt
Outdated
Show resolved
Hide resolved
379ed62 to
06384f5
Compare
d94a071 to
33bdf88
Compare
|
Privacy Review task: https://app.asana.com/0/69071770703008/1212857118626392 |
4f3344c to
88222b3
Compare
44c3964 to
dd0ed19
Compare
dd0ed19 to
d2a656b
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.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
d2a656b to
84e29f6
Compare
|
I think we should remove |
app/src/main/java/com/duckduckgo/app/appearance/AppearanceViewModel.kt
Outdated
Show resolved
Hide resolved
84e29f6 to
7e93e73
Compare
Translations for: #7492 Task/Issue URL: https://app.asana.com/1/137249556945/project/1212608036467427/task/1212746115452340 ### Description ### Steps to test this PR _Feature 1_ - [ ] - [ ] ### UI changes | Before | After | | ------ | ----- | !(Upload before screenshot)|(Upload after screenshot)| <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Adds localized strings for the tracker-blocked count animation and related settings across many locales, and updates EN resources accordingly. > > - Introduces `trackerBlockedInTheLast7days` plus labels for the feature (`settingsTrackersBlockedAnimationHeaderTitle`, `showTrackerCountInAddressBar`, `showWeeklyTrackerCountInTabSwitcher`) in `values-*.xml` > - Removes these keys from `values/donottranslate.xml` and adds them to `values/strings.xml` (EN), replacing the old `showTrackerCountInTabSwitcher` > - Minor copy/format adjustments per locale (bold tags, placeholders) > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit a36f05b. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Dax The Translator <daxmobile@duckduckgo.com>
mikescamell
left a comment
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.
LGTM 🚢 🇮🇹
Feel free to merge after tests pass 👍
Task/Issue URL: https://app.asana.com/1/137249556945/project/1212608036467427/task/1212695169153020?focus=true
Description
Create a user controlled settings toggle to disable tracker animation in address bar.
Steps to test this PR
UI changes
recording.mp4
Note
Introduces a user-controlled setting to enable/disable the address bar trackers animation and reorganizes related Appearance settings.
showTrackersCountInAddressBarpreference inSettingsDataStore(default true) with UI toggle inactivity_appearance.xmlunder a new "Trackers Blocked Animation" section; strings and translations addedAppearanceViewModel: exposesisAddressBarTrackersAnimationEnabledandshouldShowAddressBarTrackersAnimationItem(gated byAddressBarTrackersAnimationManager.isFeatureEnabled()), persists changes, and fires pixelm_appearance_settings_is_tracker_count_in_address_bar_toggledBrowserTabViewModel: respects the new setting inisTrackersAnimationEnabled;OmnibarLayoutViewModeluses view state flag forisAddressBarTrackersAnimationEnabledPixelParamRemovalInterceptorupdated to strip params for the new pixel; pixel definition added inPixelDefinitions/pixels/appearance_settings.json5Written by Cursor Bugbot for commit 9810d76. This will update automatically on new commits. Configure here.