-
Notifications
You must be signed in to change notification settings - Fork 891
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
Moved Adblock page to settings #12827
Conversation
3f99c4e
to
dd43dcf
Compare
5d52d3e
to
39db460
Compare
251c036
to
ddfc1f3
Compare
9be7c2d
to
5ab41d9
Compare
a029354
to
854b6d6
Compare
854b6d6
to
f00b93d
Compare
ca02829
to
a3fc8d9
Compare
a3fc8d9
to
1f9a690
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.
chromium_src lgtm
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.
This is really good - an advanced UI in polymer nicely done with clean logic, binding and styles.
It could have been nice to see the commits separated in to 2 - one for the refactor to move from html imports to es imports for the existing code, and the other to introduce the new filter list subpage. But that's ok since it's still somewhat manageable to review because of the file separation.
I only have minor feedback I think.
edit: I also tested out all 3 sections of features and all the sub-features worked well!
browser/resources/settings/default_brave_shields_page/components/brave_adblock_editor.js
Outdated
Show resolved
Hide resolved
browser/resources/settings/default_brave_shields_page/brave_adblock_browser_proxy.js
Outdated
Show resolved
Hide resolved
browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.js
Outdated
Show resolved
Hide resolved
browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.js
Outdated
Show resolved
Hide resolved
browser/resources/settings/default_brave_shields_page/components/brave_adblock_editor.html
Show resolved
Hide resolved
browser/resources/settings/default_brave_shields_page/components/brave_adblock_editor.html
Show resolved
Hide resolved
browser/resources/settings/default_brave_shields_page/components/brave_adblock_editor.js
Outdated
Show resolved
Hide resolved
...sources/settings/default_brave_shields_page/components/brave_adblock_subscribe_dropdown.html
Outdated
Show resolved
Hide resolved
browser/resources/settings/default_brave_shields_page/default_brave_shields_page.html
Outdated
Show resolved
Hide resolved
c62f906
to
f869a5c
Compare
@@ -113,3 +113,18 @@ | |||
</defs> | |||
</svg> | |||
</iron-iconset-svg> | |||
<iron-iconset-svg name="brave_lion" size="16"> |
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.
This is promising but I'm confused about a couple of things:
- brave lion refers to the brave logo. Did you mean Brave Leo for the design system code name?
- These are 16x16 icons but all brave design system icons are 24x24 at https://www.figma.com/file/g8Z0q6TMPYDq6zXh9Y7LWD/%F0%9F%8C%8E-Universal?node-id=61%3A30937
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.
yes, this is suppose to be brave_leo
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.
browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.js
Outdated
Show resolved
Hide resolved
f869a5c
to
798342c
Compare
798342c
to
925e48a
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.
Some design issues when I compare to the figma:
-
"Filter lists" search input is missing the search icon.
cr-input
seems to support asuffix
slot, which may be what you want. Actually, probablyinline-suffix
. -
Missing the link on "Annoyances"
-
Missing the "Brave's tracking filters" title and subtitle content
-
Heading titles are 16px in the design but 13.65px in the code
-
Spacing seems off after first subtitle due to double margin (container and paragraph). Same for before the "Enter url" input in the custom filter lists section, and the textarea in the Custom filters section
-
Custom filter lists should have a title, a subtitle and a note. Looks like you've combined the subtitle and the note to one item, missing the new paragraph and the different styling for the note.
-
Missing the "Custom lists" table title
-
Subscribe menu icons don't seem vertical-center-aligned to the text
Other issues (that can come with follow-up if you prefer):
- "Fade out" of filter lists at the bottom is not implemented.
- Missing "Reset to defaults" button. Do we have an API for that, or would we need to create it?
- Colors in custom lists aren't added:
Note that the change to Poppins is coming in this PR so I wouldn't neccessarily focus on that, but if you wanted to make sure any custom text not part of components (i.e. not buttons) matched the design, you could put font-family: Poppins
in your custom filters subpage.
925e48a
to
7697b46
Compare
637fff5
to
97cb916
Compare
I'm still seeing an issue with icon alignment. I also see a few of the other items of feedback aren't addressed yet. @nullhook please could you post a comment mentioning which issues should be fixed and which aren't for whatever reason? |
The following issues are not addressed in this PR and will be resolved separately:
The |
97cb916
to
f0dc2e2
Compare
@@ -990,6 +990,7 @@ | |||
<part file="wallet_strings.grdp" /> | |||
<part file="tor_strings.grdp" /> | |||
<part file="brave_shields_strings.grdp" /> | |||
<part file="brave_adblock_strings.grdp" /> |
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.
Just noticed this, but strings for the settings page go in app/brave_settings_strings.grdp
. You can probably just move the grdp and reference it from that. This is not a resource for components (and also shouldn't be included on android or ios).
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.
moved adblocked related strings to app/brave_settings_strings
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, but please move the strings and have CI pass before merge.
Let's ensure we action or create follow-up issue(s) for the following:
- Subtitles get their different color style
- First title of the page should be "Content filters" and not "Content Filtering"
- Casing inconsistencies - "Custom Filters" -> "Custom filters"
- "Custom lists" table section title should be 14px not 12px
- Table colors
- "Download failed" error color
- Last updated should show time last updated even if latest try was failure
- Basic url validation when clicking "Add" on custom filter lists input
2eea596
to
8892782
Compare
8892782
to
4c5b27a
Compare
Follow up issues thread created: brave/brave-browser#23222 |
Resolves brave/brave-browser#8838
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Go to:
brave://settings/shields/content-filters
Content filtering
Toggle on/off items, refresh the page, and see if your selection/s persist
Type keywords that includes in the list and ensure the list if the display is being filtered or not. "Show full list" button should hide in filtered state.
Add Custom Filter Lists
Test url: https://raw.githubusercontent.com/DandelionSprout/adfilt/master/Anti-'Custom%20cursors'%20List.txt
Add CSS selectors and test if they're being blocked