-
Notifications
You must be signed in to change notification settings - Fork 971
Conversation
Moving the milestone as #8954 was merged for 0.16.1 |
Fixed class names with 6163ea4, which was squashed. |
</section> | ||
} | ||
|
||
get defaultBraveryPanelHeader () { | ||
const shieldsUp = this.props.braverySettings.shieldsUp | ||
return <section className={css(styles.braveryPanel__header)}> | ||
<div className={css(styles.braveryPanel__header_left)}> | ||
<div className={css(styles.braveryPanel__header__left)}> | ||
<div data-l10n-id='braveryPanelTitle' /> | ||
<div title={this.displayHost} className={css(styles.braveryPanel__header__displayHost)}>{this.displayHost}</div> |
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 should be braveryPanel__header__left__displayHost
. I'm fixing it.
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.
Fixed with 39378e5
sorry for delaying review. could you pls rebase? |
@@ -8,6 +8,7 @@ const Immutable = require('immutable') | |||
// Components | |||
const ImmutableComponent = require('../immutableComponent') | |||
const Dialog = require('../common/dialog') | |||
const Button = require('../common/button') |
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.
any reason why prefer Button over BrowserButton?
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.
no, I have just forgot about that.
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'll replace it!
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.
Fixed with c949c8b
Also: - Add padding around braveryPanel_compact__body__ul Auditors: Test Plan: 1. Visit twitter.com 2. Make sure only counts of blocked resources are clickable
everything works as expected except for a test which is perma failing for me: "Bravery Panel Adblock stats without iframe tests blocks websocket tracking" Can you check what is missing there? At least rebase against master and see if fail persists since it works on the latest I tested (sha cdaee37). Ref: https://travis-ci.org/brave/browser-laptop/jobs/239658304. |
@@ -262,55 +271,63 @@ class BraveryPanel extends ImmutableComponent { | |||
compactBraveryPanel && styles.braveryPanel_compact__stats | |||
)}> | |||
<div data-test-id='adsBlockedStat' | |||
onClick={this.onToggleAdsAndTracking} |
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.
now that onClick handler is set for <span>
the data-test-id should be moved over there as well. Otherwise, some tests that depend on it will perma fail because it is clicking an element that has no listener for changes.
(!shieldsUp || adControl === 'allowAdsAndTracking') && styles.braveryPanel__stats__item_count_disabled, | ||
gridStyles.row1col1, | ||
!compactBraveryPanel && styles.braveryPanel__stats__item, | ||
!compactBraveryPanel && styles.braveryPanel__stats__item_count, | ||
compactBraveryPanel && styles.braveryPanel_compact__stats__item_count | ||
)}>{adsBlockedStat}</div> | ||
)}> | ||
<span onClick={this.onToggleAdsAndTracking} |
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.
based on above, test id should belong to here, i.e. <span data-test-id='adsBlockedStat' onClick={this.onToggleAdsAndTracking} ...
Auditors: Test Plan: make sure the intermittent failures on Travis are fixed
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.
UI is great, test plan works, no regression for automated tests, great work ++
@cezaraugusto nice find, I'll log that. |
I guess there are some missing parts prior to this PR that weren't tagged for 0.17.x which lead to bad UI after pulling these. To avoid regressions I'm pushing back PR changes to 0.18.x |
which isn't this one? #8954 that has been tagged with 0.17 |
It depends on https://github.com/brave/browser-laptop/pull/9043/files#diff-f9e9c72cdac7b145336979a3e76f20ebR195 Cherry-picking #9043 should fix the issue. |
@luixxiul this worked great! I pulled this and the other polish commit into 0.17.x |
thanks! |
great ++ |
Closes #9077
Addresses #9016
Requires #9043 (Remove adblock.less & Rename custom classNames on switchControl.js)
Test Plan:
Submitter Checklist:
git rebase -i
to squash commits (if needed).Reviewer Checklist:
Tests