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] Add Celo Lite toggle (UI only, zeroSync on/off in other PR) #1369

Merged
merged 37 commits into from
Oct 17, 2019

Conversation

annakaz
Copy link
Contributor

@annakaz annakaz commented Oct 16, 2019

Description

Add CeloLite page with a toggle for zeroSync mode plus associated saga.
The actual turning on/off of zeroSync mode is coming in a future PR (see TODO in switchZeroSyncMode()) , so the CeloLite page is hidden for now- wanted to put this up now to avoid too large of a PR, as I also did some cleanup/added snapshot tests in the account page

Tested

Added and ran snapshot test for CeloLite, ran yarn run test
Also uncommented out CeloLite in account page, ran the app on device and confirmed that the toggle was dispatching an action.

Other changes

Related issues

Backwards compatibility

Yes

Screenshot_20191016-133336
Screenshot_20191016-133333
Screenshot_20191016-133327

@codecov
Copy link

codecov bot commented Oct 16, 2019

Codecov Report

Merging #1369 into master will increase coverage by 0.47%.
The diff coverage is 84.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1369      +/-   ##
==========================================
+ Coverage   66.43%   66.91%   +0.47%     
==========================================
  Files         264      265       +1     
  Lines        7744     7780      +36     
  Branches      445      445              
==========================================
+ Hits         5145     5206      +61     
+ Misses       2499     2474      -25     
  Partials      100      100
Flag Coverage Δ
#mobile 66.91% <84.21%> (+0.47%) ⬆️
Impacted Files Coverage Δ
packages/mobile/src/account/Analytics.tsx 100% <ø> (+100%) ⬆️
packages/mobile/src/account/Invite.tsx 82.35% <ø> (ø) ⬆️
packages/mobile/src/account/Profile.tsx 100% <ø> (ø) ⬆️
packages/mobile/src/account/EditProfile.tsx 81.25% <ø> (ø) ⬆️
packages/mobile/src/account/Education.tsx 92.85% <ø> (ø) ⬆️
packages/mobile/src/navigator/Navigator.tsx 0% <0%> (ø) ⬆️
packages/mobile/src/account/Account.tsx 67.07% <0%> (-0.83%) ⬇️
packages/mobile/src/web3/selectors.ts 100% <100%> (ø) ⬆️
packages/mobile/src/account/CeloLite.tsx 100% <100%> (ø)
packages/mobile/src/redux/sagas.ts 84% <100%> (+0.66%) ⬆️
... and 7 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 f9a72a6...060d0c5. Read the comment docs.

@ashishb
Copy link
Contributor

ashishb commented Oct 16, 2019

Since this is primarily a UI change, can you add a screenshot here?

@annakaz
Copy link
Contributor Author

annakaz commented Oct 16, 2019

Updated PR description with screenshots

@annakaz annakaz assigned ashishb and unassigned annakaz Oct 16, 2019
@annakaz annakaz assigned jeanregisser and unassigned ashishb Oct 17, 2019
Copy link
Contributor

@cmcewen cmcewen left a comment

Choose a reason for hiding this comment

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

woot woot loving all the tests 👍

@annakaz annakaz added the automerge Have PR merge automatically when checks pass label Oct 17, 2019
@celo-ci-bot-user celo-ci-bot-user merged commit 72ffef8 into master Oct 17, 2019
@celo-ci-bot-user celo-ci-bot-user deleted the annakaz/zero-sync-toggle branch October 17, 2019 19:51
aaronmgdr added a commit that referenced this pull request Oct 23, 2019
* master: (37 commits)
  [Wallet] Add support for social wallet (Safeguards) import  (#1414)
  [Wallet] Implement new backup flows including social backup (#1399)
  Use validator set precompiles in Attestations (#1248)
  E2E Attestations test + various e2e improvements (#1417)
  Update Footer (#1331)
  [Wallet] New camera permission flow (#1398)
  [Wallet] Enable push notifications on iOS (#1389)
  [Wallet] Add Celo Lite toggle (UI only, zeroSync on/off in other PR) (#1369)
  Document npm inter-repo dependencies instructions (#1370)
  [wallet]Add more documentation on ZeroSync mode (#1367)
  [wallet]Add documentation for jndcrash (#1364)
  Point end-to-end tests back to master (#1372)
  Alfajores changes & comment on unlocking accounts (#1297)
  Reconfigure terraform local configuration during init to allow multiple envs (#773)
  Implement proof-of-stake changes (#1177)
  [Celotool] Update blockchain-api deploy script to automatically update faucet address (#1347)
  Allow most recently reporting oracle to report again (#1288)
  [wallet]Add documentation for ZeroSync mode (#1361)
  Fix Metadata registration during contract deploy (#1346)
  [Wallet] Enable firebase on iOS (#1344)
  ...
aaronmgdr added a commit that referenced this pull request Oct 23, 2019
* master: (128 commits)
  [Wallet] Add support for social wallet (Safeguards) import  (#1414)
  [Wallet] Implement new backup flows including social backup (#1399)
  Use validator set precompiles in Attestations (#1248)
  E2E Attestations test + various e2e improvements (#1417)
  Update Footer (#1331)
  [Wallet] New camera permission flow (#1398)
  [Wallet] Enable push notifications on iOS (#1389)
  [Wallet] Add Celo Lite toggle (UI only, zeroSync on/off in other PR) (#1369)
  Document npm inter-repo dependencies instructions (#1370)
  [wallet]Add more documentation on ZeroSync mode (#1367)
  [wallet]Add documentation for jndcrash (#1364)
  Point end-to-end tests back to master (#1372)
  Alfajores changes & comment on unlocking accounts (#1297)
  Reconfigure terraform local configuration during init to allow multiple envs (#773)
  Implement proof-of-stake changes (#1177)
  [Celotool] Update blockchain-api deploy script to automatically update faucet address (#1347)
  Allow most recently reporting oracle to report again (#1288)
  [wallet]Add documentation for ZeroSync mode (#1361)
  Fix Metadata registration during contract deploy (#1346)
  [Wallet] Enable firebase on iOS (#1344)
  ...
aaronmgdr added a commit that referenced this pull request Oct 23, 2019
* master: (37 commits)
  [Wallet] Add support for social wallet (Safeguards) import  (#1414)
  [Wallet] Implement new backup flows including social backup (#1399)
  Use validator set precompiles in Attestations (#1248)
  E2E Attestations test + various e2e improvements (#1417)
  Update Footer (#1331)
  [Wallet] New camera permission flow (#1398)
  [Wallet] Enable push notifications on iOS (#1389)
  [Wallet] Add Celo Lite toggle (UI only, zeroSync on/off in other PR) (#1369)
  Document npm inter-repo dependencies instructions (#1370)
  [wallet]Add more documentation on ZeroSync mode (#1367)
  [wallet]Add documentation for jndcrash (#1364)
  Point end-to-end tests back to master (#1372)
  Alfajores changes & comment on unlocking accounts (#1297)
  Reconfigure terraform local configuration during init to allow multiple envs (#773)
  Implement proof-of-stake changes (#1177)
  [Celotool] Update blockchain-api deploy script to automatically update faucet address (#1347)
  Allow most recently reporting oracle to report again (#1288)
  [wallet]Add documentation for ZeroSync mode (#1361)
  Fix Metadata registration during contract deploy (#1346)
  [Wallet] Enable firebase on iOS (#1344)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants