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

Implement new delegation design. #1219

Closed
17 tasks done
NodeGuy opened this issue Aug 30, 2018 · 20 comments · Fixed by #1310
Closed
17 tasks done

Implement new delegation design. #1219

NodeGuy opened this issue Aug 30, 2018 · 20 comments · Fixed by #1310
Assignees

Comments

@NodeGuy
Copy link
Contributor

NodeGuy commented Aug 30, 2018

To Do

David

  • rewrite so that it doesn't use TmModal
  • align left side of fields with Atom logo
  • write unit tests
  • E2E test
  • warning dialog when user has zero atoms
    • Put space between warning icon and "Cannot Stake"
    • remove x button
    • remove horizontal line above footer
    • clicking on OK button without releasing shows outline larger than button
  • move Amount to bottom of form

Fede

  • write { bondDenom } within Amount field
  • make To field read-only
    - [x] allow selection of previously-staked validators in From field MOVED to Implement redelegation #1293.
  • abbreviate From address
  • avoid redelegating to the same address
  • close window when clicking outside of it
  • autofocus Amount field
  • make Stake button greyed-out when amount is invalid

@jbibla , please link your design files here.

@NodeGuy NodeGuy added this to the staking milestone Aug 30, 2018
@jbibla
Copy link
Collaborator

jbibla commented Sep 4, 2018

https://zpl.io/bWL0krn - Staking
https://zpl.io/VxlvdWk - Restaking

@faboweb faboweb assigned fedekunze and NodeGuy and unassigned jbibla and fedekunze Sep 4, 2018
@NodeGuy
Copy link
Contributor Author

NodeGuy commented Sep 4, 2018

Please remove issues from the backlog when moving them into Scrumptious.

@NodeGuy
Copy link
Contributor Author

NodeGuy commented Sep 4, 2018

Hold on cowboys, this is dependent on #1171 which is also part of this sprint.

@NodeGuy NodeGuy added the blocked ✋ issues blocked by other implementations/issues label Sep 4, 2018
@jbibla
Copy link
Collaborator

jbibla commented Sep 5, 2018

it doesn't need to be dependent on #1171 - we can add a button to the existing profile page and work on the new modal ...

@faboweb
Copy link
Collaborator

faboweb commented Sep 5, 2018

I agree with Jordan. I would see this as a replacement for PageBond. We can add the 2 buttons to the old PageValidator for now and replace the checkboxes (and shoppingCart logic) already.

@jbibla
Copy link
Collaborator

jbibla commented Sep 5, 2018

yes, let's please get rid of shoppingCart.

🛒 🛒 🛒

@NodeGuy
Copy link
Contributor Author

NodeGuy commented Sep 5, 2018

OK

@NodeGuy
Copy link
Contributor Author

NodeGuy commented Sep 5, 2018

After looking at the designs it seems this isn't about redelegation—it's about delegation and undelegation, right? I'm going to rename the title.

@NodeGuy NodeGuy changed the title Delegation / Redelegation Stake and Unstake Sep 5, 2018
@NodeGuy NodeGuy changed the title Stake and Unstake Delegation and Undelegation Sep 5, 2018
@faboweb
Copy link
Collaborator

faboweb commented Sep 6, 2018

https://zpl.io/VxlvdWk - Restaking

This treats redelegation.

@jbibla
Copy link
Collaborator

jbibla commented Sep 6, 2018

we have to account for

delegation / staking / bonding
undelegation / unstaking / unbonding
redelegation / restaking / rebonding

@faboweb
Copy link
Collaborator

faboweb commented Sep 6, 2018

Follow up for redelegation: #1293

@NodeGuy
Copy link
Contributor Author

NodeGuy commented Sep 6, 2018

Our standard modals have a darker background for the header:

screen shot 2018-09-06 at 3 37 52 pm

There's no such distinction in the design. Do you care or should I reimplement TmModal for this one?

@NodeGuy NodeGuy changed the title Delegation and Undelegation Implement new delegation design. Sep 6, 2018
@NodeGuy
Copy link
Contributor Author

NodeGuy commented Sep 6, 2018

Split out undelegation to #1294 and removing PageBond to #1295.

@faboweb
Copy link
Collaborator

faboweb commented Sep 7, 2018

the design for staking is actually not the same modal we have already. It is more a pop-over on the bottom like when you write a new email in google inbox. maybe it should still have the same layout. @jbibla can you help out?

@NodeGuy
Copy link
Contributor Author

NodeGuy commented Sep 10, 2018

Oh, OK. I see another difference: With TmModal the rest of the window is darkened but that's not happening here. I won't use it.

@NodeGuy NodeGuy removed the blocked ✋ issues blocked by other implementations/issues label Sep 11, 2018
@fedekunze
Copy link
Contributor

close window when clicking outside of it

@NodeGuy do we need this point if we are already adding the "Close" and X buttons ?

@fedekunze
Copy link
Contributor

fedekunze commented Sep 12, 2018

allow selection of previously-staked validators in From field

So that would basically turn the delegation into a redelegation, right ? I'm asking because eventually we'll end up splitting that POST endpoint to submit delegations (see cosmos/cosmos-sdk#2191). So will have add this logic here as well

@NodeGuy
Copy link
Contributor Author

NodeGuy commented Sep 13, 2018

@NodeGuy do we need this point if we are already adding the "Close" and X buttons ?

@faboweb requested it and I think it's a good idea.

So that would basically turn the delegation into a redelegation, right ? I'm asking because eventually we'll end up splitting that POST endpoint to submit delegations (see cosmos/cosmos-sdk#2191). So will have add this logic here as well

I guess so but haven't seen a spec for any of this. @faboweb is there a spec?

@faboweb
Copy link
Collaborator

faboweb commented Sep 13, 2018

So that would basically turn the delegation into a redelegation, right ?

Yep. Maybe do delegation first and then do redelegation in another PR.

I'm asking because eventually we'll end up splitting that POST endpoint to submit delegations

Let's not handle problems we do not yet have. When the split happens, the logic on our hand probably can be easily changed.

@NodeGuy
Copy link
Contributor Author

NodeGuy commented Sep 17, 2018

Created new issue about warning dialog: #1321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants