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

feature(ui-ux): redesign token breakdown #2787

Merged
merged 23 commits into from
May 18, 2022

Conversation

kyleleow
Copy link
Contributor

@kyleleow kyleleow commented May 17, 2022

What kind of PR is this?:

/kind feature

What this PR does / why we need it:

  • To remove available percentage and breakdown details for token list card
  • To display available balance and not amount added with locked token
  • To display UTXO and token breakdown percentage in DFI balance card
  • To move CTA to convert DFI screen from breakdown details to dfi balance card
  • To not display locked token amount if it is zero

Which issue(s) does this PR fixes?:

Fixes #2615

Additional comments?:

Developer Checklist:

  • Read your code changes at least once
  • Tested on iOS/Android device (e.g, No crashes, library supported etc.)
  • No console errors on web
  • Tested on Light mode and Dark mode*
  • Your UI implementation visually matched the rendered design*
  • Unit tests*
  • Added e2e tests*
  • Added translations*

@kyleleow kyleleow self-assigned this May 17, 2022
@vercel
Copy link

vercel bot commented May 17, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
wallet ✅ Ready (Inspect) Visit Preview May 18, 2022 at 6:56AM (UTC)

@github-actions github-actions bot added kind/feature New feature request area/ui-ux labels May 17, 2022
@codeclimate
Copy link

codeclimate bot commented May 17, 2022

Code Climate has analyzed commit b753fc7 and detected 0 issues on this pull request.

View more on Code Climate.

@defichain-bot
Copy link
Contributor

defichain-bot commented May 17, 2022

Missing Translations Report

The following translations are missing for this pull request.

{
    "missingLanguageItems": {
        "zh-Hans": {
            "missingCount": 0,
            "labels": {},
            "totalCount": 1111,
            "allLabels": "{}"
        },
        "zh-Hant": {
            "missingCount": 0,
            "labels": {},
            "totalCount": 1111,
            "allLabels": "{}"
        },
        "fr": {
            "missingCount": 0,
            "labels": {},
            "totalCount": 1111,
            "allLabels": "{}"
        },
        "es": {
            "missingCount": 0,
            "labels": {},
            "totalCount": 1111,
            "allLabels": "{}"
        },
        "it": {
            "missingCount": 0,
            "labels": {},
            "totalCount": 1111,
            "allLabels": "{}"
        }
    },
    "totalMissingCount": 0
}

@netlify
Copy link

netlify bot commented May 17, 2022

Deploy Preview for mobile-wallet-preview ready!

Name Link
🔨 Latest commit b753fc7
🔍 Latest deploy log https://app.netlify.com/sites/mobile-wallet-preview/deploys/6284988d8785fb0007a5cd36
😎 Deploy Preview https://deploy-preview-2787--mobile-wallet-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented May 17, 2022

Codecov Report

Merging #2787 (b753fc7) into main (501e9a5) will increase coverage by 17.02%.
The diff coverage is 96.15%.

@@             Coverage Diff             @@
##             main    #2787       +/-   ##
===========================================
+ Coverage   64.82%   81.85%   +17.02%     
===========================================
  Files         359      359               
  Lines        7932     7923        -9     
  Branches     2018     2012        -6     
===========================================
+ Hits         5142     6485     +1343     
+ Misses       2782     1418     -1364     
- Partials        8       20       +12     
Impacted Files Coverage Δ
...eens/Balances/components/TokenBreakdownDetails.tsx 100.00% <ø> (ø)
...gator/screens/Balances/hooks/TokenLockedBalance.ts 70.83% <ø> (-25.00%) ⬇️
...s/Balances/components/TokenBreakdownPercentage.tsx 90.00% <75.00%> (-10.00%) ⬇️
...s/AppNavigator/screens/Balances/BalancesScreen.tsx 90.14% <100.00%> (+6.56%) ⬆️
...igator/screens/Balances/components/BalanceCard.tsx 100.00% <100.00%> (ø)
...igator/screens/Balances/components/BalanceText.tsx 100.00% <100.00%> (ø)
...tor/screens/Balances/components/DFIBalanceCard.tsx 100.00% <100.00%> (ø)
...ens/Dex/components/PoolPairCards/PoolPairCards.tsx 98.34% <0.00%> (+0.82%) ⬆️
... and 70 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 501e9a5...b753fc7. Read the comment docs.

@defichain-bot
Copy link
Contributor

defichain-bot commented May 17, 2022

Build preview for DeFiChain Wallet is ready!

Built with commit c2050e6

https://expo.io/@defichain/wallet?release-channel=pr-preview-2787

@vercel vercel bot temporarily deployed to Preview May 17, 2022 09:16 Inactive
@cypress
Copy link

cypress bot commented May 17, 2022



Test summary

415 11 1 32


Run details

Project wallet
Status Failed
Commit c2050e6 ℹ️
Started May 18, 2022 6:59 AM
Ended May 18, 2022 7:31 AM
Duration 31:56 💡
OS Linux Ubuntu - 20.04
Browser Chrome 101

View run in Cypress Dashboard ➡️


Failures

auctions/auctions.spec.ts Failed
1 Wallet - Auctions > Min. Next Bid > should display USD values in batch card
2 Wallet - Auctions > Min. Next Bid > should display USD values in quick bid bottom sheet in auction home screen
3 Wallet - Auctions > Min. Next Bid > should display USD values in place bid screen
4 Wallet - Auctions > Min. Next Bid > should display USD values in auction details screen
5 Wallet - Auctions > Min. Next Bid > should display USD values in quick bid bottom sheet in auction details screen
6 Wallet - Auctions Feature Gated > should not have auctions tab if feature flag api failed
loans/loans.spec.ts Failed
1 Wallet - Loans - Payback DUSD Loans > should add collateral
2 Wallet - Loans Payback Non-DUSD Loans > should add collateral
3 Wallet - Loans - Take Loans using DFI and DUSD as 50% vault share > should add loan using DFI and DUSD as 50% vault share
loans/collateral.spec.ts Failed
1 Wallet - Loans - 50% valid collateral token ratio > should display warning message while taking loan
This comment includes only the first 10 test failures. See all 11 failures in the Cypress Dashboard.

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@vercel vercel bot temporarily deployed to Preview May 17, 2022 09:32 Inactive
@vercel vercel bot temporarily deployed to Preview May 17, 2022 09:38 Inactive
@vercel vercel bot temporarily deployed to Preview May 18, 2022 03:28 Inactive
@vercel vercel bot temporarily deployed to Preview May 18, 2022 03:34 Inactive
@vercel vercel bot temporarily deployed to Preview May 18, 2022 03:36 Inactive
Fix alignment in mobile view
@vercel vercel bot temporarily deployed to Preview May 18, 2022 04:31 Inactive
Use 8dp if token value is <=0.1
@vercel vercel bot temporarily deployed to Preview May 18, 2022 04:50 Inactive
@vercel vercel bot temporarily deployed to Preview May 18, 2022 06:09 Inactive
@vercel vercel bot temporarily deployed to Preview May 18, 2022 06:14 Inactive
@vercel vercel bot temporarily deployed to Preview May 18, 2022 06:56 Inactive
@kyleleow kyleleow marked this pull request as ready for review May 18, 2022 07:32
@thedoublejay thedoublejay merged commit 5ba1629 into main May 18, 2022
@thedoublejay thedoublejay deleted the kengye/redesign-token-breakdown branch May 18, 2022 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

portfolio - update display of token card
3 participants