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

Adds transition overlay #11395

Merged
merged 1 commit into from
Oct 10, 2017
Merged

Conversation

NejcZdovc
Copy link
Contributor

@NejcZdovc NejcZdovc commented Oct 9, 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 #11389
Resolves #11340
Resolves #11333
Resolves #11338

Auditors:

Test Plan:

  1. Create wallet with 0.18 version
  2. With this profile switch to version 0.19
  3. You should see transition overlay with additional settings disabled
  4. After transition is done, overlay should hide and additional settings should be re-enabled

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

animationName: [loaderAnimation],
animationDuration: '.6s',
animationDelay: '.1s',
animationIterationCount: 'infinite'
Copy link
Contributor

Choose a reason for hiding this comment

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

please don't forget to dedupe the animation properties later

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

loader__line: {
    display: 'inline-block',
    width: '15px',
    height: '15px',
    borderRadius: '15px',
    animationName: [loaderAnimation],
    animationDuration: '.6s',
    animationIterationCount: 'infinite'
 },

 loader__line_1: {
    backgroundColor: '#FF5000',
    animationDelay: '.1s'
}

and so on

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

const inTranstion = !(ledgerData.getIn(['migration', 'btc2BatTransitionDone']))

return <section className={css(styles.enabledContent)}>
<div className={css(styles.loader, inTranstion && styles.loader_show)}>
Copy link
Contributor

Choose a reason for hiding this comment

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

styles.enabledContent__loader, inTranstion && styles.enabledContent__loader_show. please change elements' className accordingly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

<div className={css(styles.loader__line, styles.loader__line_3)} />
</div>
</div>
</div>
<div className={css(styles.walletBar)} data-test-id='walletBar'>
Copy link
Contributor

Choose a reason for hiding this comment

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

styles.walletBar -> styles.enabledContent__walletBar

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is not part of this PR

Copy link
Contributor

Choose a reason for hiding this comment

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

@codecov-io
Copy link

codecov-io commented Oct 9, 2017

Codecov Report

Merging #11395 into master will increase coverage by 0.03%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##           master   #11395      +/-   ##
==========================================
+ Coverage   52.52%   52.55%   +0.03%     
==========================================
  Files         267      267              
  Lines       24994    24987       -7     
  Branches     3995     4001       +6     
==========================================
+ Hits        13127    13133       +6     
+ Misses      11867    11854      -13
Flag Coverage Δ
#unittest 52.55% <88.88%> (+0.03%) ⬆️
Impacted Files Coverage Δ
app/browser/tabs.js 26.64% <0%> (+0.55%) ⬆️
app/browser/reducers/ledgerReducer.js 47.05% <100%> (+0.36%) ⬆️
app/renderer/components/preferences/paymentsTab.js 76.92% <100%> (+2.37%) ⬆️
app/renderer/components/styles/animations.js 100% <100%> (ø) ⬆️
app/browser/api/ledger.js 30.78% <100%> (+0.18%) ⬆️
...r/components/preferences/payment/enabledContent.js 91.24% <91.66%> (+0.54%) ⬆️
js/stores/appStoreRenderer.js 91.17% <0%> (-8.83%) ⬇️
app/renderer/components/reduxComponent.js 84.37% <0%> (-6.25%) ⬇️
js/stores/windowStore.js 27.27% <0%> (-0.31%) ⬇️
... and 5 more

@@ -274,6 +289,18 @@ const gridStyles = StyleSheet.create({
}
})

const loaderAnimation = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I know still WIP but please move this to animations.js file which is avail in 0.19.x too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@NejcZdovc NejcZdovc force-pushed the hotfix/#11389-overlay branch 2 times, most recently from f39a18a to 624d39c Compare October 10, 2017 03:39
@NejcZdovc NejcZdovc force-pushed the hotfix/#11389-overlay branch 2 times, most recently from eae3582 to d9bd125 Compare October 10, 2017 04:11
<div className={css(styles.loader__line, styles.loader__line_3, !inTranstion && styles.loader__line_off)} />
</div>
</div>
</div>
<div className={css(styles.walletBar)} data-test-id='walletBar'>
Copy link
Contributor

Choose a reason for hiding this comment

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

styles.walletBar -> styles.enabledContent__walletBar. See L175.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@NejcZdovc NejcZdovc force-pushed the hotfix/#11389-overlay branch from d9bd125 to 44800cd Compare October 10, 2017 04:18
</div>
</div>
</div>
<div className={css(styles.enabledContent__walletBar)} data-test-id='walletBar'>
<div className={css(gridStyles.row1col1, styles.walletBar__title)} data-l10n-id='monthlyBudget' />
Copy link
Contributor

@luixxiul luixxiul Oct 10, 2017

Choose a reason for hiding this comment

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

enabledConent__walletBar__title. please change every element under enabledContent__walletBar, thanks. See L175.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

Sweet thanks!

@@ -198,6 +199,7 @@ const updateAboutDetails = (tab, tabValue) => {
.merge(synopsis)
.merge(preferencesData)
.set('wizardData', wizardData)
.set('migration', migration)
Copy link
Member

Choose a reason for hiding this comment

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

Love this! Great use of the new migration element

Resolves brave#11389
Resolves brave#11340
Resolves brave#11333
Resolves brave#11338

Auditors: @bsclifton

Test Plan:
@bsclifton bsclifton force-pushed the hotfix/#11389-overlay branch from 3e7bd2f to c7cbee1 Compare October 10, 2017 18:44
Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

LGTM! I ran through the process and verified each of the issues was covered. I fixed some variable misspellings while reviewing the code. Great job 😄 👍

@bsclifton bsclifton merged commit 1d4edf4 into brave:master Oct 10, 2017
bsclifton added a commit that referenced this pull request Oct 10, 2017
bsclifton added a commit that referenced this pull request Oct 10, 2017
@bsclifton
Copy link
Member

master 1d4edf4
0.20.x 371ccf5
0.19.x bb8be0d

@NejcZdovc since there were conflicts, would you mind checking my conflict resolution? I manually tested the following on each:

  • use fresh profile with 0.18.x branch
  • create bitcoin wallet
  • update branch
  • run and confirm transition shows

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.

5 participants