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

Multiple bugs on Delegation flow #920

Closed
m-i-k-e opened this issue May 1, 2024 · 5 comments · Fixed by #952
Closed

Multiple bugs on Delegation flow #920

m-i-k-e opened this issue May 1, 2024 · 5 comments · Fixed by #952
Labels
🐛 Bug Something isn't working

Comments

@m-i-k-e
Copy link

m-i-k-e commented May 1, 2024

Context & versions

staging.sanchonet

Note: there are 6 bugs in this flow. I put them in one issue because they all happen in this (Drep Delegation) flow. It is much easier to understand how they come up by watching the video

Loom Video: https://www.loom.com/share/892c8ac698274c12b081ff8f3f37a3ae?sid=c1d7ff50-cf10-4715-9d90-4bfac649c15c

Bug 1 - on Video from 0:00 to 1:08

Steps to reproduce

  1. Have ada in wallet, and not be delegated to any Drep
  2. Pick a Drep and delegate

Actual behavior

Toast immediately says "Your voting power has been successfully delegated" - but this is not true

Expected behavior

Toast is showing up in the wrong order. I expect that this message should say something like "Delegation in progress"

image

Bug 2 - on Video from 1:09 to 2:11

Steps to reproduce

  1. After delegation above has initiated, and while it's in progress, click "Dashboard" in the menu.
  2. Go to the dashboard
  3. Click the arrow next to the 'Drep_name" in the "Delegation in Progress" card
  4. You will go to the DRep detail page of the Drep to whom you are currently delegating
  5. Click the "Back to the List" link in the upper right corner of the screen
  6. You will go back to the DRep list

Actual behavior

User is sent to the Drep list, however, they didn't come from there. While the page is called 'the list' the user can't go 'back' to it, as they have not come from it.

Expected behavior

Links will have the proper context for users, and will 'know' where they came from. A possible solution would be just to have the links say "Back", and then GovTool would be able to take the users back to where they came from.

Bug 3 - on Video from 2:12 to 3:13

Steps to reproduce

  1. Go to Dashboard, refresh the screen a few times

Actual behavior

Repeated showing of 'toasts', including 'wallet connected', Transaction Pending, etc. These look strange, and there is no need to remind users that their wallet is connected. This is a bug

Expected behavior

Users will see the "Wallet Connected" toast only when appropriate" i.e. just after the wallet has successfully connected to GovTool

Bug 4 - on Video from 3:07 to 3:13

Steps to reproduce

  1. Go to Dashboard, refresh the screen a few times

Actual behavior

Toast shows that the delegation transaction has failed

Expected behavior

Transaction has gone through ok, and error messages are correct. What I mean is at this time, I can't tell if:

  1. The error is that the transaction has failed
  2. or the system is showing me an incorrect toast - as there were several incorrect toasts already shown

Bug 5 - on Video from 3:19 to 3:13

Steps to reproduce

  1. STay on dashboard, wait until you see the 'transaction failed' toast
  2. look at Drep ID in Delegated card
  3. It is not the same as the one delegated to
  4. It is truncated and is not a proper DRep ID
  5. When you click on it, you go to a page where nothing happens (this is a seperate bug due to no '404' page)

Actual behavior

Drep ID has changed from one that has been delegated to
Link does not take you to the Drep that you've delegated to
Link does not take you to an existing page

Expected behavior

Link has the correct DRep ID
Link, when clicked, takes you to the correct page, which is the DRep you delegated to.

Bug 6 on video after 3:13

Steps to reproduce

  1. Click link to DRep on dashboard

Actual behavior

The page changes to Drep Directory, and a spinner spins endlessly

Expected behavior

There should be a page not found error - as there is no DREp with this ID. This happens if any bad url is passed to this page

@pmbinapps
Copy link

  • Other issue: 'Back to list issue' -
    Delegation error tracked here

@JanJaroszczak JanJaroszczak self-assigned this May 7, 2024
@JanJaroszczak JanJaroszczak moved this to In progress in Govtool all May 7, 2024
@pmbinapps
Copy link

'Wallet connected' info - rather should stay:

Bug 3 - on Video from 2:12 to 3:13
Steps to reproduce
Go to Dashboard, refresh the screen a few times

@JanJaroszczak
Copy link
Contributor

@JanJaroszczak JanJaroszczak moved this from In progress to In review in Govtool all May 7, 2024
JanJaroszczak added a commit that referenced this issue May 8, 2024
JanJaroszczak added a commit that referenced this issue May 8, 2024
…tion-flow

[#920 - bug 2] DRep details page Back button fix
@github-project-automation github-project-automation bot moved this from In review to Done in Govtool all May 8, 2024
@JanJaroszczak JanJaroszczak moved this from Done to In QA in Govtool all May 8, 2024
@pmbinapps
Copy link

pmbinapps commented May 8, 2024

Transaction related errors and corresponding updates on Drep explorer and Dashboard are fixed by:

#865
#875
#897

No showing 'Wallet connected' was decided to keep on review meeting - THIS TO DECIDE

This issue not merged yet

@pmbinapps
Copy link

Duplicate of some symptoms mentioned here #920

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants