-
Notifications
You must be signed in to change notification settings - Fork 976
Visual design: Privacy Shield #6000
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Merged
malmstein
merged 15 commits into
develop
from
feature/david/04-29-visual_design_privacy_shield
May 6, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8aaf1f1
Visual design: Privacy Shield
malmstein 88fe3e9
updated shield icon
malmstein 1e7091e
rebase with experiment
malmstein 3aa4a73
updated privacy shield
malmstein 945cfd1
update privacy shield for visual designs
malmstein 558aa50
clean up logs
malmstein e1a85a6
fix focus trackers test
malmstein 04e95bd
add missing tests for resources
malmstein 66bf2c1
fix last test
malmstein cd33166
clean up tests
malmstein f24d29a
first round of pr feedback
malmstein 6d42771
updated privacy shields
malmstein d4d3232
proper animations being used
malmstein bd2deb9
fix asset reference in test
malmstein bfba565
clean up TODO
malmstein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm not a fan of logic like this baked into the view (mainly for clarity and ease of testing reasons) - we make one if-check here and then another in
BrowserLottieTrackersAnimatorHelper.kt
to finally select the animation.What do you think about turning
OmnibarLayoutViewModel.LeadingIconState
into a sealed class? That way, the view model could provide something likeOmnibarLayoutViewModel.LeadingIconState.PRIVACY_SHIELD.resourceType
, whereresourceType
defines which animation to use (out of production, sense of protection, or the new visual update).I'm not going to block the PR over this, but if you agree this is a worthwhile improvement, it’d be great to incorporate here or as a follow up.
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.
I don’t like this logic either, and ideally we’d refactor
BrowserLottieTrackersAnimatorHelper.kt
but that’s not something I want to do now.The problem is that now we have 3 different tracker animations and 2 of them have different layouts. This is far from optimal, but it solves the issue now knowing that this will be cleaned up once the experiments finish.