Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wallet] Implement new import wallet flow designs #1209

Merged
merged 5 commits into from
Oct 7, 2019

Conversation

jmrossy
Copy link
Contributor

@jmrossy jmrossy commented Oct 4, 2019

Description

  • Implement new import wallet flow designs including empty wallet warning
  • Improve responsiveness of import wallet screen
  • More robust error handling for import saga
  • Add tests for import saga
  • Cleanup redundant web3 zerosync mocks introduced here: [wallet]Run geth in an infura-like mode #1108

Tested

Ran through import flow with valid wallet
Ran through import flow with invalid wallet
Ran through import flow with empty wallet

Related issues

Backwards compatibility

Yes

wa-import-v3
wa-import-v3-error
wa-import-empty

@codecov
Copy link

codecov bot commented Oct 4, 2019

Codecov Report

Merging #1209 into master will increase coverage by 0.36%.
The diff coverage is 86.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1209      +/-   ##
==========================================
+ Coverage   66.09%   66.45%   +0.36%     
==========================================
  Files         261      262       +1     
  Lines        7618     7647      +29     
  Branches      440      440              
==========================================
+ Hits         5035     5082      +47     
+ Misses       2487     2466      -21     
- Partials       96       99       +3
Flag Coverage Δ
#mobile 66.45% <86.36%> (+0.36%) ⬆️
Impacted Files Coverage Δ
packages/mobile/src/redux/store.ts 96% <ø> (ø) ⬆️
packages/mobile/src/web3/actions.ts 81.48% <0%> (ø) ⬆️
packages/mobile/src/import/actions.ts 100% <100%> (ø) ⬆️
packages/mobile/src/tokens/saga.ts 92.59% <100%> (+1.1%) ⬆️
packages/mobile/src/redux/reducers.ts 100% <100%> (ø) ⬆️
packages/mobile/src/invite/saga.ts 81.5% <100%> (-0.73%) ⬇️
packages/mobile/src/app/ErrorMessages.ts 100% <100%> (ø) ⬆️
packages/mobile/src/home/saga.ts 90% <100%> (+0.25%) ⬆️
packages/mobile/src/import/reducer.ts 37.5% <37.5%> (ø)
packages/mobile/src/import/ImportWallet.tsx 92.3% <86.36%> (ø) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31a8633...b42c311. Read the comment docs.

Copy link
Contributor

@ashishb ashishb left a comment

Choose a reason for hiding this comment

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

Approving the cleanup part where you removed all the duplicate mocks I introduced in #1108

Copy link
Contributor

@jeanregisser jeanregisser left a comment

Choose a reason for hiding this comment

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

Nice work! 👍


describe('Import wallet saga', () => {
it('imports a valid phrase', async () => {
// @ts-ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

What is it ignoring?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems like a bug with expectSaga's typings for saga parameters

@jmrossy jmrossy merged commit 25feb78 into master Oct 7, 2019
@jmrossy jmrossy deleted the rossy/wa-import-empty branch October 7, 2019 10:20
aaronmgdr added a commit that referenced this pull request Oct 8, 2019
* master: (35 commits)
  [Wallet] Fix top of emojis cut off in the activity feed (#1243)
  Adding a contract to store minimum required client version (#1081)
  Revert "Feature #909 proxy delegatecall (#1152)" (#1241)
  Use ContractKit to get addresses for Blockchain API (#1175)
  Feature #909 proxy delegatecall (#1152)
  Fix Faucet done message (#1217)
  Updated SETUP.md with new yarn process (#1224)
  Adding `increaseAllowance` and `decreaseAllowance` methods (#1196)
  extracting function signatures (#1061)
  Fix integration hardcode (#1208)
  Fixing flaky governance test (#1155)
  Restore CI branch (#1223)
  [wallet] e2e back to green (#1210)
  [Wallet] Implement new import wallet flow designs (#1209)
  [Wallet] Fix disable conditions for butons on Enter Invite screen (#1214)
  [protocol] Rename infrastructureFraction to proposerFraction (#1174)
  [ck] Proper promise treatment to avoid UnhandledPromises (#1219)
  [ck] Transform StableToken parameters from fixidity format (#1218)
  [wallet]Store encrypted local signing key (#1188)
  2019-10-03 alfajores deployment (#1200)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show error when redeeming empty invite code / backup phrase
6 participants