Repository
Repo: https://github.com/steemit/wallet
Pull request: https://github.com/steemit/wallet/pull/41
Context
The official Steemit Witnesses page, contains several bugs and limitations that sometimes leads to users removing a witness vote when they actually wanted to cast a vote for the witness. This pull request is adding more visibility on such action.
Bug fixes
Tooltip bubble on vote removal chevron icon
I added a tooltip (info bubble) that shows on mouse over on the chevron icon. Initially, the tooltip was displaying "Vote" regardless of if the click would vote or actually remove the vote on the witness. This fixes it and will show "Vote" or "Remove Vote" accordingly.
New features
Witness vote removal confirmation modal
The tooltip mentioned above has a delay before displaying, so users can still accidentally click on the chevron icon thinking they need to click on it to apply their vote. This is especially true for witnesses not displayed in the list at the top of the Witnesses page.
Upon click on the chevron, a new modal window will popup asking for confirmation before actually performing the action and broadcasting it to the blockchain.
- What feature(s) did you add?
Describe briefly and add screenshots/recordings if applicable. - How did you implement it/them?
Link to relevant lines in the code on GitHub and explain briefly what you added/changed.
Code changes
The code changes are quite simple but adds value to the Witnesses page.
https://github.com/steemit/wallet/pull/41/files
GitHub Account
Paste here the full url to your GitHub account. E.g. https://github.com/quochuy