Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Refactors Navigator and BrowserAction into redux components #8658

Merged
merged 1 commit into from
May 5, 2017

Conversation

NejcZdovc
Copy link
Contributor

@NejcZdovc NejcZdovc commented May 3, 2017

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Resolves #8651

Auditors: @bsclifton @bridiver

Test Plan:

  • test if navigation buttons are working correctly
  • test if extension icon are displayed correctly and text is working for them

@NejcZdovc
Copy link
Contributor Author

note: tests are still WIP, but other can be reviewed

@NejcZdovc
Copy link
Contributor Author

unit tests fixed 🎉

if (activeTab && activeTab.get(navCheckProp)) {
appActions.tabCloned(activeTabId, {
if (e && eventUtil.isForSecondaryAction(e) && this.props.isNavigable) {
if (this.props.get(navCheckProp)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be this.props[navCheckProp]? Is there a test that covers this because I think this would cause an exception

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct. Fixed.

@@ -25,7 +25,10 @@ class ReduxComponent extends ImmutableComponent {
}

checkForUpdates () {
if (!this.dontCheck && this.shouldComponentUpdate(this.props, this.buildProps())) {
// TODO @bridiver only temp solution
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be @NejcZdovc instead of @bridiver?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed, so its fine 😄

Copy link
Collaborator

@bridiver bridiver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ++

@NejcZdovc
Copy link
Contributor Author

I have one more failing unit test that I just added. Don't merge yet

Resovles brave#8651

Auditors: @bsclifton @bridiver

Test Plan:
- test if navigation buttons are working correctly
- test if extension icon are displayed correctly and text is working for them
@NejcZdovc
Copy link
Contributor Author

Unit test fixed, thanks @bsclifton. Let's wait for travis and then merge it

@NejcZdovc NejcZdovc merged commit 88b3708 into brave:master May 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants