-
Notifications
You must be signed in to change notification settings - Fork 98
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
Fabo/1294 undelegation modal #1367
Conversation
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.
looooks real goood.
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.
Left comments on modal and submitDelegation
@fedekunze i appreciate all of your ux suggestions! 💪 |
Codecov Report
@@ Coverage Diff @@
## develop #1367 +/- ##
===========================================
+ Coverage 94.79% 94.95% +0.15%
===========================================
Files 84 85 +1
Lines 1673 1703 +30
Branches 83 87 +4
===========================================
+ Hits 1586 1617 +31
+ Misses 78 77 -1
Partials 9 9
|
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.
Looking good. I left some comments on the CannotUnstake
modal and class color
test/unit/specs/components/staking/__snapshots__/LiValidator.spec.js.snap
Outdated
Show resolved
Hide resolved
test/unit/specs/components/staking/__snapshots__/TabValidators.spec.js.snap
Outdated
Show resolved
Hide resolved
test/unit/specs/components/staking/__snapshots__/TabValidators.spec.js.snap
Outdated
Show resolved
Hide resolved
test/unit/specs/components/staking/__snapshots__/TabValidators.spec.js.snap
Outdated
Show resolved
Hide resolved
test/unit/specs/components/staking/__snapshots__/TabValidators.spec.js.snap
Outdated
Show resolved
Hide resolved
test/e2e/staking.js
Outdated
t.end() | ||
}) | ||
|
||
t.test(`Unstake`, async t => { |
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.
👍 @NodeGuy
Conflicts: app/src/renderer/components/staking/LiValidator.vue app/src/renderer/components/staking/PageValidator.vue test/unit/specs/components/staking/PageValidator.spec.js test/unit/specs/components/staking/__snapshots__/PageValidator.spec.js.snap
…app/src/renderer/components/staking/LiValidator.vue app/src/renderer/components/staking/PageValidator.vue test/unit/specs/components/staking/PageValidator.spec.js test/unit/specs/components/staking/__snapshots__/PageValidator.spec.js.snap
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.
utACK. Left some minor comments. Please proceed with merging in case you feel that they are not relevant for this PR
|
||
//- To | ||
tm-form-group.delegation-modal-form-group( | ||
field-id='to' field-label='To') |
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.
I'd change the label to say Wallet
or Your Wallet
(something like that)
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.
what do you mean?
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.
@jbibla because you always unbond to your address (i.e your wallet), so imo there's no point on having a To
label
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.
We just had an offline convo: To, could also be used for redelegations (undelegate to another Validator) in the future. Currently it isn't.
// add .green .yellow or .red class to this span to trigger inidication by color | ||
span {{ slashes }} | ||
.li-validator__value.your-votes | ||
span {{ yourVotes }} |
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.
@faboweb we should replicate the same condition being used in PageValidator.vue
with the myBonds()
function to show < 0.01
when the bond amount is low
@@ -206,7 +206,7 @@ exports[`PageValidator has the expected html structure 1`] = ` | |||
My Bonded Steak | |||
</dt> | |||
<dd> | |||
< 0.01 | |||
0.00 |
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.
is this supposed to be 0 ?
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.
It was, I changed it now to something show another value.
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.
Tested the functionality and a couple of things are failing for me:
Modal Undelegation
- Click outside and
x
(close) button not working - DONE Amount
label in wrong positionUndelegate
button is not disabled when amount = 0 - DONE- Can’t increase amount to undelegate (add the number) when 0 < bond < 1
- Modal not closing after successful undelegation - DONE
Denom
(eg.stake
) not displayed in the amount input field (see delegation modal) - DONE
LiValidator
- Status color dot covers numbers > 9
PageValidator
- Error Undelegation modal not displaying - DONE
Undelegation works and the transaction is displayed correctly in the tx history 👍 |
nice QA @fedekunze ! |
addressed logic, opening issues for remaining UI comments
Should be good to go now |
Closes #1294
Closes #1397
Closes #1325
Missing:
❤️ Thank you!