-
Notifications
You must be signed in to change notification settings - Fork 969
Refactor navigationBar with Aphrodite - first try #9299
Refactor navigationBar with Aphrodite - first try #9299
Conversation
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
height: globalStyles.navigationBar.urlbarForm.height, |
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.
height
, not width
, is the basis.
@@ -134,8 +134,6 @@ const globalStyles = { | |||
switchNubTopMargin: '2px', | |||
switchNubLeftMargin: '2px', | |||
switchNubRightMargin: '2px', | |||
buttonHeight: '25px', | |||
buttonWidth: '25px', |
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.
Please search for buttonHeight
and buttonWidth
in case where they be used on anywhere.
@@ -70,3 +70,5 @@ httpse.leveldb | |||
|
|||
# sync bundle file should be built and copied from the brave/sync repo for now | |||
app/extensions/brave/content/scripts/sync.js | |||
|
|||
package-lock.json |
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.
TODO: drop the commit to remove this.
@@ -14,6 +14,7 @@ branches: | |||
only: | |||
- master | |||
- /\d+\.\d+\.x/ | |||
- navigationBar-aphrodite |
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.
TODO: drop the commit to remove this.
const relativeIcon = this.isAboutPage | ||
|
||
const insecure = isPotentialPhishingUrl(this.props.location) || (this.props.isHTTPPage && !this.props.active && (this.props.isSecure === false || this.props.isSecure === 2)) | ||
const large = isPotentialPhishingUrl(this.props.location) || (this.props.isHTTPPage && !this.props.active) |
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.
These cause a bug on fa-search icon. I'll fix it 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.
Fixed with 4ea852d
@luixxiul are those TODOs made for a follow-up? |
I could work on them on this PR or another one. Still, I think it should be worked on this PR as merging the long names to master branch is not good for contributors (it might look too confusing and complicated for them). Yet since the refactoring with Aphrodite is on lower priority, I have set |
I'm ok either way, up to you ✌(◕‿-)✌ |
@cezaraugusto I wouldn't squash the commits until your review is done, so would you start working on review soon? thanks! |
Resolves #9449 Auditors: @bsclifton @bridiver Test Plan:
This reverts commit 7b0f7d5.
This reverts commit 065b51a.
Fix url parsing bug
check for destroyed before sending to webContents
"Select its parent tab" setting now works as expected
…alues fix #9506 along with brave/muon@4189da5 change is backwards compatible and muon commit is not required for merging
Auditors: @bsclifton Close #9466 Test Plan: covered by automated tests
Convert NoScriptInfo into redux
Create components etc -- navigator.js, navigationBar.js, urlBar.js etc Full changelog: 8997c76 Test Plan: available on #9299 (comment)
Full changelog: 25f02d4 Test Plan: available on #9299 (comment)
- Convert 'buttonSeparator' Full changelog: 25f02d4 Test Plan: available on #9299 (comment)
.navbarMenubarBlockContainer (introduced with f2426f1#diff-303f0b6a297506f2cc18bf7b4cb370c5R789, which no longer exists on the master branch.) .inputbar-wrapper (introduced with 0e57690#diff-02c4b23ad267fe636760179e32fa29ceR141 with no clear reason. Since .inputbar-wrapper has not been used, it can be removed safely.) Test Plan: available on #9299 (comment)
- Add styles.navigator - Add reloadButton testId to .reloadButton - Convert .navigatorWrapper - Convert .navbarMenubarFlexContainer - Convert .urlbarForm - Convert .urlbarIconContainer - Convert #titleBar - Convert bookmarkButton and removeBookmarkButton with Aphrodite - Convert 'navigationButton stopButton' - Convert 'navigationButton reloadButton' - Convert 'navigationButton homeButton' - Convert .bookmarkButtonContainer - Convert .topLevelEndButtons - Convert .endButtons - Rename .backforward to .topLevelStartButtons (as we have already had 'topLevelEndButtons' on the same level) - Convert braveMenu Full changelog: b76f995 Test Plan: available on #9299 (comment)
Setting navigator__buttonContainer_outsideOfURLbar to apply border to the bookmark button and publisher button only, normalize size, placement, draggability etc of - navigator__buttonContainer - navigator__urlbarForm__buttonContainer_showNoScriptInfo - navigator__urlbarForm__urlbarIconContainer Test Plan: available on #9299 (comment)
Full changelog: f81ea52 Test Plan: available on #9299 (comment)
- Increase size of noScriptButton 1px - Add urlbarForm_noScriptEnabled - Add title mode animation with navigator_titleMode - Convert .navigationButtonContainer - Convert topLevelStartButtons - Convert backButton and forwardButton - Confert box-shadow of urlbarForm - Convert input to urlbarForm__input - Convert -webkit-app-region of form and input - Convert urlbarForm_notTitleMode - Convert urlbarForm.isPublisherButtonEnabled - Convert input:focus + legend:before - Convert #navigator .urlbarForm input (for Windows) - Replace .loadTime with urlbarForm__titleBar__loadTime - Replace loadtime data-test-id (urlBar.js etc) - Refactor braveMenuButton - Replace height:24px with height:globalStyles.navigationBar.urlbarForm.height, which is 25px Full changelog: 9b6c22d Test Plan: available on #9299 (comment)
Create components etc -- navigator.js, navigationBar.js, urlBar.js etc Full changelog: 8997c76 Test Plan: available on #9299 (comment)
- Convert 'buttonSeparator' Full changelog: 25f02d4 Test Plan: available on #9299 (comment)
Full changelog: b76f995 Test Plan: available on #9299 (comment)
Setting navigator__buttonContainer_outsideOfURLbar to apply border to the bookmark button and publisher button only, normalize size, placement, draggability etc of - navigator__buttonContainer - navigator__urlbarForm__buttonContainer_showNoScriptInfo - navigator__urlbarForm__urlbarIconContainer Test Plan: available on #9299 (comment)
Full changelog: f81ea52 Test Plan: available on #9299 (comment)
Full changelog: 9b6c22d Test Plan: available on #9299 (comment)
Full changelog: 8997c76 Test Plan: available on #9299 (comment)
- Convert 'buttonSeparator' Full changelog: 25f02d4 Test Plan: available on #9299 (comment)
Full changelog: b76f995 Test Plan: available on #9299 (comment)
Setting navigator__buttonContainer_outsideOfURLbar to apply border to the bookmark button and publisher button only, normalize size, placement, draggability etc of - navigator__buttonContainer - navigator__urlbarForm__buttonContainer_showNoScriptInfo - navigator__urlbarForm__urlbarIconContainer Test Plan: available on #9299 (comment)
Full changelog: f81ea52 Test Plan: available on #9299 (comment)
Full changelog: 9b6c22d Test Plan: available on #9299 (comment)
Full changelog: 8997c76 Test Plan: available on #9299 (comment)
- Convert 'buttonSeparator' Full changelog: 25f02d4 Test Plan: available on #9299 (comment)
Full changelog: b76f995 Test Plan: available on #9299 (comment)
Setting navigator__buttonContainer_outsideOfURLbar to apply border to the bookmark button and publisher button only, normalize size, placement, draggability etc of - navigator__buttonContainer - navigator__urlbarForm__buttonContainer_showNoScriptInfo - navigator__urlbarForm__urlbarIconContainer Test Plan: available on #9299 (comment)
Full changelog: f81ea52 Test Plan: available on #9299 (comment)
Full changelog: 9b6c22d Test Plan: available on #9299 (comment)
Full changelog: 8997c76 Test Plan: available on #9299 (comment)
- Convert 'buttonSeparator' Full changelog: 25f02d4 Test Plan: available on #9299 (comment)
Refactor navigationBar with Aphrodite
Addresses #9283
After first review I
willdid squash commits semantically, before switching the base branch fromnavigationBar-aphrodite
tomaster
. It will likely to create conflicts, so after fixing them I would like to ask @NejcZdovc for another review to check if it would not regress the recent Redux updates which have landed onmaster
already.Test Plans
Test Plan (obsolete styles)
inputbar-wrapper
on your reponavbarMenubarBlockContainer
@siteEVColor
@loadTimeColor
Test Plan (automated tests):
npm run test -- --grep='enables back button on first nav'
npm run test -- --grep='back forward actions'
npm run test -- --grep='loading same URL as current page with changed input'
Since automated tests cannot find visual regressions, please conduct these tests carefully from perspectives of clickability, draggability, animation, color, etc. Thanks!
Test Plan (top panel):
about:preferences#advanced
Always show the URL bar
Test Plan (add bookmark icon)
Test Plan (buttons inside the top panel):
about:preferences#advanced
Always show the URL bar
Test Plan (Publisher Toggle):
Test Plan (navigation buttons):
Test Plan (fullscreen mode)
Test Plan (elements around the URL bar):
.urlbarForm
does not have a white backgroundabout:preferences#advanced
Test plan (loadTime)
Test Plan (URL bar un/lock icon)
Always show the URL bar
if not:a
to the URL barstyles.urlbarIcon
is applied to the amazon favicon.urlbarForm
does not have a white backgroundfTest Plan (NoScript):
Test Plan (bookmark hanger)
arrowUp
appears under the bookmark star iconTest plan (for Windows)
.topLevelStartButtons
has padding-left:5pxTest Plan 8 (for macOS):
.topLevelStartButtons
has padding-left:76pxSubmitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests