governance-ui/.husky
agrippa a1a33b92a6
Veto UI (#1295)
* useVetoingPop

* show and dis/enable veto button

* refactor to hook

* tc

* refactor action to accept all vote kinds

* refactor: let components handle undefined data

* add vetos to useProposalVotes

* .

* version proposalVotes results

* refactor ApprovalQuorum

* generalize quorum component

* rename file

* exh-deps

* [unrelated] always show multi vote ui

* show veto progress

* kill unused UI

* rename file to match component

* add assertUnreachable for exhaustive switches

* vetoed proposal badge

* show veto progress on card iff there are any vetos

* ProposalSelectCard always shows veto

* always show multi vote

* consolidate some duplicate code

* search for exhaustive logic involving proposal state and add Vetoed

* proposal result shows veto

* [wip] refactor vote panel components, break them up

* .

* break up files

* add vetoed filter

* fix imports

* rename files

* refine logic

* more refactor

* refactor

* correct some max vote weight logic

* lint

* comments

* exhaustive YouVoted display

* use react query to efficiently grab vote records

* .

* refactor our old ownVoteRecord hook

* show both veto and electoral vote status

* incorporate new voterecord hooks

* handle not-found accounts

* add react query devtools

* fix

* fix typescript

* murder husky

* delete accidental paren

* clearer language

* invalidate voteRecord upon voting

* Fix oversight for checking if a token is the council mint while doing some maths

* remove debug console logs

* exclude vetos from vote explorer
2022-12-13 17:36:19 +00:00
..
.gitignore install husky 2021-04-27 12:15:05 +03:00
pre-commit Veto UI (#1295) 2022-12-13 17:36:19 +00:00