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] Protect Backup Key and Safeguards with PIN #1556

Merged
merged 8 commits into from
Nov 4, 2019

Conversation

i1skn
Copy link
Contributor

@i1skn i1skn commented Oct 31, 2019

Description

When a user tries to open Backup Key or Safeguards screens
she should be asked to confirm PIN before proceeding.

See the video - https://drive.google.com/open?id=1--tRRChcnbivpPvIftAdF0_6M89xIq5z

Tested

Ran on Android device

Other changes

This PR introduces APP/NAVIGATE_PIN_PROTECTED action, which can be used to navigate to a screen, which should be protected by PIN.

Related issues

Backwards compatibility

Yes

i1skn added 2 commits October 31, 2019 19:20
When a user tries to open Backup Key or Safeguards screens
she should be asked to confirm PIN before proceeding.
@i1skn i1skn force-pushed the protect-backup-with-pin branch from 02585e1 to cffd515 Compare October 31, 2019 18:20
@codecov
Copy link

codecov bot commented Nov 1, 2019

Codecov Report

Merging #1556 into master will increase coverage by 0.03%.
The diff coverage is 69.81%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1556      +/-   ##
==========================================
+ Coverage   73.61%   73.64%   +0.03%     
==========================================
  Files         277      277              
  Lines        7443     7480      +37     
  Branches      956      667     -289     
==========================================
+ Hits         5479     5509      +30     
- Misses       1852     1858       +6     
- Partials      112      113       +1
Flag Coverage Δ
#mobile 73.64% <69.81%> (+0.03%) ⬆️
Impacted Files Coverage Δ
packages/mobile/test/schemas.ts 100% <ø> (ø) ⬆️
packages/mobile/src/app/actions.ts 96.77% <100%> (+0.77%) ⬆️
packages/mobile/src/app/reducers.ts 42.1% <42.85%> (-0.76%) ⬇️
packages/mobile/src/backup/BackupIntroduction.tsx 75.92% <50%> (+0.45%) ⬆️
packages/mobile/src/backup/BackupSocialIntro.tsx 78.94% <55.55%> (-5.43%) ⬇️
packages/mobile/src/account/saga.ts 92.1% <75%> (+8.32%) ⬆️
packages/mobile/src/app/saga.ts 69.41% <80.95%> (+2.24%) ⬆️

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 1deb1dd...7e1b21f. Read the comment docs.

@jmrossy jmrossy requested review from jeanregisser and removed request for jmrossy November 1, 2019 09:41
@jmrossy jmrossy requested review from jmrossy and removed request for timmoreton November 1, 2019 09:41
Copy link
Contributor

@jmrossy jmrossy 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!! Just a few comments to address

packages/mobile/src/app/actions.ts Outdated Show resolved Hide resolved
packages/mobile/test/schemas.ts Outdated Show resolved Hide resolved
@jmrossy jmrossy assigned i1skn and unassigned jmrossy Nov 1, 2019
@i1skn i1skn assigned jmrossy and unassigned i1skn Nov 1, 2019
Copy link
Contributor

@jmrossy jmrossy left a comment

Choose a reason for hiding this comment

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

Ship it! 💯

@jmrossy jmrossy assigned i1skn and unassigned jmrossy Nov 1, 2019
@i1skn i1skn merged commit d4b8c38 into celo-org:master Nov 4, 2019
@i1skn i1skn deleted the protect-backup-with-pin branch November 4, 2019 10:33
aaronmgdr added a commit that referenced this pull request Dec 5, 2019
* master: (73 commits)
  Fix Ethstats Image reference (#1577)
  EU Cookies Behavior Change (#1447)
  [verifier] Upgrade to RN 61 (#1572)
  [Wallet] Update link styles and Implement VerificationEducationScreen (#1565)
  [wallet] Added native phone picker (#1310)
  [Wallet] Set up new verification screen skeletons (#1563)
  Bump e2e test migrate numbers where needed (#1567)
  [Wallet] Create new carousel component (#1555)
  [Wallet] Protect Backup Key and Safeguards with PIN (#1556)
  Increase ganache gas limit (#1569)
  Re-work locked gold requirements for validators and groups (#1474)
  Fix e2e on CI (#1537)
  Allow a specified address to disable/enable the Exchange  (#1467)
  Avoid re-encrypting key files with yarn keys:encrypt command (#1560)
  Support protocol hotfixing (#613)
  Point e2e tests back (#1562)
  Refactor to Accounts.sol (#1392)
  Add selectIssuers Transaction (#1327)
  [Wallet] Get React Native Hot Reloading Working (#1551)
  Unify to prefix messages for signing (#1473)
  ...
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.

Backup flow should request pin confirmation before showing backup key
4 participants