Conversation
4927804 to
69f0f9f
Compare
d43b8ae to
fbd04ba
Compare
7cd7b46 to
ba02896
Compare
e168d4d to
95c9691
Compare
Sirmorrison
left a comment
There was a problem hiding this comment.
The vote button should not be visible for finished vote.
Also, use a shadow widget for the agendas when they are hovered so the background is not hidden when hovered.
Something similar was done for the more page and the security page.

|
ffc22cf to
04ef2d9
Compare
56299ae to
caf49ae
Compare
232bb01 to
2da1908
Compare
itswisdomagain
left a comment
There was a problem hiding this comment.
First pass. General feedback from testing.
- Do you really need to have live tickets to be able to set voting preferences? Remember that locally saved preferences are applied to new tickets, so I suppose it is fine to let users save preferences locally only, if there's no ticket purchased yet.
- Governance page -> Proposals tab shows one prop in discussion. Decrediton has none.
- Governance page -> Consensus tab shows 4 in progress agendas, Decrediton has none in progress. Also, the link to the voting dashboard for testnet should be
https://voting.decred.org/testnet.
Lastly, and this may be something for after this PR is merged. The green tick icon for finished agendas is meant to show that the agenda voting passed. Decrediton uses dcrdata API to get this info.
itswisdomagain
left a comment
There was a problem hiding this comment.
Haven't looked too deep, but here's for now.
|
"Governance page -> Proposals tab shows one prop in discussion. Decrediton has none.", can't replicate this, there are no proposals in discussion on godcr |
|
"Governance page -> Consensus tab shows 4 in progress agendas,", looking into this |
update with dcrlibwallet
- use dcrlibwallet agenda status constants
- document StakeToTransactionItems() - update dcrlibwallet dep - change vote text on agenda button"
- cleanup code
- change "Voting wallet" to selected "wallet" - use an array instead of a map for the vote choices
There was a problem hiding this comment.
Would have left review comments but did some tinkering while testing and want to share the thoughts in this commit instead: itswisdomagain@4d1dfeb.
That should resolve the slowness issue @Sirmorrison experienced, must have been due to the network call being made on the UI thread.
Also bump the dcrlibwallet mod version to master once the related dcrlibwallet PR is merged.
|
LGTM @itswisdomagain kindly review before we merge. |
itswisdomagain
left a comment
There was a problem hiding this comment.
I changed the status of one of the agendas to upcoming in order to test how updating the voting preference works, noticed this slight issue (may not even be an issue).
When my wallet launched, it showed I had 2 immature tickets, although they had actually voted but my wallet isn't synced yet, so it doesn't know. When I tried to update voting preferences for the agenda I modified to upcoming, it gave an error about ticket already voted. The issue resolved itself when the wallet finished syncing.
I'm currently unable to buy another ticket to test with, to ensure the vsp associated with the ticket gets the correct voting preference set. But this should be good to merge after the go mod tidy stuff below. There'd be more testing to be done after this hits master, such as ensuring that tickets purchased before and after setting the vote preference gets the correct preference set with the vsp.
* add tab to governance page to switch between proposal and consensus pages * implement consensus page * add consensus listeners - implement vote for consensus - cleanup code * remove notification listeners implementations * remove syncing section * reload page after voting * add dcrlibwallet PR requirement * fix bug where agenda page wasn't reloaded after voting * add ticket dropdown * fix bug where ticket list wasn't gotten per wallet, but gotten for all wallets * fix error where pubkey was 0 length - handle getting agenda status from dcrlibwallet * fix bug where the vote modal voting options wasn't - updating based on the selected wallet * remove validation check for if a ticket is selected while trying to vote on agendas * use proper background color for agenda status * update UI for voting modal * adjust governance page tab UI * update dcrlibwallet implementation * move vsp selector to components file - delete vsp.go file - cleanup code * code cleanup * simplified code structure - remove unwanted comments - cleanup code * add hover effect to icon on consensus page * fix vote button wrapping * remove redundant boolean call * change H6 to Label * add shadow to agenda items * add open in browser section * Rearrange widget position, label font size and code clean up * implement shadow on clickable_list widget - remove redundant lines of codes - fix excess padding and general code clean up * move consensus and proposal handle properties to individual pages. - clean up and optimize code * some modifications were made to dcrlibwallet on how some consensus -methods were called, the necessary changes were implemented in this commit; - mainly changing the consensus methods from multiwallet methods to wallet methods * show modal when the info icons on the governance page is clicked - make the voting dashboard redirect to the correct URL - fix crash that occurred when navigating from the governance page * update dcrlibwallet dep * update dcrlibwallet dep * add testnet host for the voting dashboard * remove vsp selector from the agenda vote modal update with dcrlibwallet * rename AgendaList to AgendaItemWidget - use dcrlibwallet agenda status constants * move WalletLiveTickets() method to dcrlibwallet - document StakeToTransactionItems() - update dcrlibwallet dep - change vote text on agenda button" * fix update preference button width * fix bug where voting options were being re-arranged cleanup code * update agenda status call * don't store cl.shadow property * give variables in agenda modal proper names - change "Voting wallet" to selected "wallet" - use an array instead of a map for the vote choices * use call back to reload agenda list after updating the voting preference * move stakeToTransactionItems back to staking utils page * fix delay while opening consensus tab * bump dcrlibwallet dep * allow users vote for upcoming agendas Co-authored-by: sirmorrison <edonomorrison@gmail.com>






Requires planetdecred/dcrlibwallet#216
resolves #655
Fix #776