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

Converts UpdateBar into redux component #9516

Merged
merged 1 commit into from
Jun 21, 2017

Conversation

NejcZdovc
Copy link
Contributor

@NejcZdovc NejcZdovc commented Jun 16, 2017

Submitter Checklist:

  • 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).
  • Tagged reviewers and labelled the pull request as needed.

Resolves #9450

Auditors: @bsclifton @bridiver

Test Plan:

  • click check update in the menu and check if notification with no update is shown
  • downgrade browser version and check if notification with update is shown

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

@NejcZdovc NejcZdovc added this to the 0.19.x (Nightly Channel) milestone Jun 16, 2017
@NejcZdovc NejcZdovc self-assigned this Jun 16, 2017
@NejcZdovc NejcZdovc requested review from bridiver and bsclifton June 16, 2017 11:59
@NejcZdovc NejcZdovc mentioned this pull request Jun 16, 2017
51 tasks
@@ -0,0 +1,44 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
Copy link
Collaborator

Choose a reason for hiding this comment

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

this one owns appStore.updates so it would make sense as a state helper.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved to state

* You can obtain one at http://mozilla.org/MPL/2.0/. */

const Immutable = require('immutable')
const updateStatus = require('../../../js/constants/updateStatus')
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should probably merge updateStatus into this file and make it updateState

Copy link
Contributor Author

@NejcZdovc NejcZdovc Jun 19, 2017

Choose a reason for hiding this comment

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

updateStatus + updateUtil -> updateState ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would leave updateStatus in constants folder, because that's what we have there. What we can do is rename this file and move it into state folder. What do you think?

@NejcZdovc NejcZdovc force-pushed the redux/updateBar branch 2 times, most recently from f1a862a to bbd0f38 Compare June 20, 2017 07:16
@NejcZdovc NejcZdovc requested a review from bridiver June 20, 2017 07:22
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.

++

@bridiver
Copy link
Collaborator

just waiting on ci to merge

@NejcZdovc NejcZdovc merged commit f1c5efb into brave:master Jun 21, 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.

2 participants