Open wa0x6e opened 1 week ago
@Sekhmet I got this working on offchain, but will need some help indexing the vote for evm, and also maybe starknet
@bonustrack The vote reason is now working for offchain, and you can start testing the UI and UX.
Main testing area will be the UI/UX on the modal when the user don't have enough voting power, or failing to fetch voting power.
Summary
Closes: #386
This PR moves the vote UI inside a vote modal, similar to v1, and allow attaching a reason to a vote.
Features
reason
field has been added in the vote modal, where the voter can attach a reason to his vote.getVotingPower
logic into a store and composable, similar to how we handleSpace
, enabling caching and avoid code duplicateHow to test
CONFIRM
button should be disabled if you don't have sufficient voting power to votemetadataUri
(onchain) orreason
(offchain) field if setRETRY
button to refetch the voting power, in case of fetching errorTODO
Future