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

Fabo/1294 undelegation modal #1367

Merged
merged 36 commits into from
Oct 5, 2018
Merged

Fabo/1294 undelegation modal #1367

merged 36 commits into from
Oct 5, 2018

Conversation

faboweb
Copy link
Collaborator

@faboweb faboweb commented Sep 26, 2018

Closes #1294
Closes #1397
Closes #1325

Missing:

  • E2E tests

❤️ Thank you!

jbibla
jbibla previously approved these changes Sep 26, 2018
Copy link
Collaborator

@jbibla jbibla left a comment

Choose a reason for hiding this comment

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

looooks real goood.

Copy link
Contributor

@fedekunze fedekunze left a 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

app/src/renderer/components/staking/ModalUnstake.vue Outdated Show resolved Hide resolved
app/src/renderer/components/staking/ModalUnstake.vue Outdated Show resolved Hide resolved
app/src/renderer/components/staking/ModalUnstake.vue Outdated Show resolved Hide resolved
app/src/renderer/components/staking/ModalUnstake.vue Outdated Show resolved Hide resolved
app/src/renderer/components/staking/ModalUnstake.vue Outdated Show resolved Hide resolved
app/src/renderer/components/staking/PageValidator.vue Outdated Show resolved Hide resolved
@jbibla
Copy link
Collaborator

jbibla commented Sep 27, 2018

@fedekunze i appreciate all of your ux suggestions! 💪

@codecov
Copy link

codecov bot commented Sep 28, 2018

Codecov Report

Merging #1367 into develop will increase coverage by 0.15%.
The diff coverage is 100%.

@@             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
Impacted Files Coverage Δ
app/src/renderer/components/common/TmModal.vue 100% <ø> (ø) ⬆️
...pp/src/renderer/components/staking/LiValidator.vue 100% <100%> (ø) ⬆️
.../src/renderer/components/staking/PageValidator.vue 98.76% <100%> (+0.28%) ⬆️
.../renderer/components/staking/UndelegationModal.vue 100% <100%> (ø)
...rc/renderer/components/staking/DelegationModal.vue 100% <100%> (ø) ⬆️
app/src/renderer/vuex/getters.js 96.77% <0%> (+3.22%) ⬆️

Copy link
Contributor

@fedekunze fedekunze left a 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

t.end()
})

t.test(`Unstake`, async t => {
Copy link
Collaborator Author

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
@faboweb faboweb changed the title WIP: Fabo/1294 undelegation modal Fabo/1294 undelegation modal Oct 1, 2018
…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
fedekunze
fedekunze previously approved these changes Oct 1, 2018
Copy link
Contributor

@fedekunze fedekunze left a 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')
Copy link
Contributor

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)

Copy link
Collaborator

Choose a reason for hiding this comment

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

what do you mean?

Copy link
Contributor

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

Copy link
Collaborator Author

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.

test/unit/helpers/console_error_throw.js Outdated Show resolved Hide resolved
test/unit/helpers/console_error_throw.js Outdated Show resolved Hide resolved
test/unit/helpers/console_error_throw.js Outdated Show resolved Hide resolved
// add .green .yellow or .red class to this span to trigger inidication by color
span {{ slashes }}
.li-validator__value.your-votes
span {{ yourVotes }}
Copy link
Contributor

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>
&lt; 0.01
0.00
Copy link
Contributor

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 ?

Copy link
Collaborator Author

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.

@faboweb faboweb mentioned this pull request Oct 2, 2018
Copy link
Contributor

@fedekunze fedekunze left a 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



  1. Click outside and x (close) button not working - DONE
  2. Amount label in wrong position

  3. Undelegate button is not disabled when amount = 0
 - DONE
  4. Can’t increase amount to undelegate (add the number) when 0 < bond < 1

  5. Modal not closing after successful undelegation

 - DONE
  6. Denom (eg. stake) not displayed in the amount input field (see delegation modal) - DONE

screen shot 2018-10-04 at 11 06 26 am

LiValidator

  1. Status color dot covers numbers > 9

screen shot 2018-10-04 at 11 05 09 am

PageValidator

  1. Error Undelegation modal not displaying - DONE

@fedekunze
Copy link
Contributor

Undelegation works and the transaction is displayed correctly in the tx history 👍

@jbibla
Copy link
Collaborator

jbibla commented Oct 4, 2018

nice QA @fedekunze !

@fedekunze fedekunze dismissed their stale review October 5, 2018 16:58

addressed logic, opening issues for remaining UI comments

@fedekunze
Copy link
Contributor

Should be good to go now

@NodeGuy NodeGuy merged commit fbd3d51 into develop Oct 5, 2018
@NodeGuy NodeGuy deleted the fabo/1294-undelegation-modal branch October 5, 2018 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants