snapshot-labs / sx-monorepo

Snapshot X monorepo
https://docs.snapshotx.xyz
MIT License
11 stars 10 forks source link

feat: add progress to vote modal #443

Open wa0x6e opened 1 week ago

wa0x6e commented 1 week ago

Summary

Closes: #386

This PR adds a few new features on top the previous vote modal PR:

How to test

  1. Vote on an offchain proposal
  2. You should see the various steps of the progress modal: test with multiple scenario (vote and confirm the tx, vote but reject the tx signature, trying to vote with no vp)
  3. Vote on an onchain proposal
  4. You should see one additional step while confirming the tx
  5. On tx confirmation, you should see the success step, else will see the error step
  6. When a tx fail, it should also remove the vote from the pendingVotes list, so it shows the form to vote again

To-Do