-
Notifications
You must be signed in to change notification settings - Fork 29
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/dapp switch eth balance according to account #2273
Feature/dapp switch eth balance according to account #2273
Conversation
The AccountContent view is displaying a single ETH balance. It gives no information from which account this balance is. Moreover does this balance depend on if the Raiden account has a balance or not. To improve this view and do not confuse the user there are two improvements. First should the balance not switch dependent on if there is a Raiden account balance or not, but rather when a Raiden account is in use or not. But actually it is more informative for the user to just show both balances. In case no Raiden account is used, the main account balance is sufficient.
The UDC screen in the account router shows an ETH balance during the withdrawal procedure. The relevant balance depends on if a Raiden account is used. So far it always shows the main account balance. This can be confusing, when the Raiden account has no balance, the transaction to withdrawal fails, but the UI displays a positive (and high enough) ETH balance. Therefore this balance must always relate to the correct account that is relevant for this transaction.
Codecov Report
@@ Coverage Diff @@
## master #2273 +/- ##
===========================================
+ Coverage 58.00% 94.79% +36.79%
===========================================
Files 61 156 +95
Lines 4460 6264 +1804
Branches 936 1160 +224
===========================================
+ Hits 2587 5938 +3351
+ Misses 1860 261 -1599
- Partials 13 65 +52
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks @weilbith 👍
We don't understand what CodeCov wants to tell us here. Looks pretty broken. The changed/added tests are pretty good. Therefore this gets merged now. |
Fixes #2224
Short description
In addition to the origin issue, I agreed with @taleldayekh that showing both ETH balances on the main account screen is another helpful addition for the user. This is ofc only the case if a Raiden account is in use.
Definition of Done
Steps to manually test the change (dApp)