-
Notifications
You must be signed in to change notification settings - Fork 37
Conversation
This works definitely well thank a lot for that. There a warning for the href:
Check the |
front-end/src/components/Post/GovernanceSideBar/Referenda/VoteReferendum.tsx
Outdated
Show resolved
Hide resolved
front-end/src/components/Post/GovernanceSideBar/Referenda/VoteReferendum.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much better now thanks. Just 2 things left and we're good.
Sorry, misinterpreted a comment. Api check is back. |
* Added vote tables * Added permissions * Added votes post relationship * Added UI * Added Offchain Poll * Everything works * onchain only * removed console * using default address field * removed span * Split useEffect * Using encoded address * && instead of ? * Using use callback * Box shadow * conditional component dispaly * comment * Using enum * Added own vote * Added check of has_poll on create post itself * Added check of has_poll on create post itself * box-shadow fix * Update front-end/src/ui-components/CouncilSignalBar.tsx Co-authored-by: Michel Erler <7072141+erler@users.noreply.github.com> * Update front-end/src/components/Post/Poll/CouncilSignals.tsx Co-authored-by: Michel Erler <7072141+erler@users.noreply.github.com> * Update front-end/src/ui-components/OffChainSignalBar.tsx Co-authored-by: Michel Erler <7072141+erler@users.noreply.github.com> * Adding address of council if it exist * checking defaultAddress not empty string * renamed OffChainSignals -> GeneralSignals * Commented poll * lint * Update front-end/src/ui-components/CouncilSignalBar.tsx Co-authored-by: Michel Erler <7072141+erler@users.noreply.github.com> * fix table setup * < 2 check * Signal percentage * Helpertooltip next to title * Update front-end/src/components/Post/Poll/CouncilSignals.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update front-end/src/components/Post/Poll/GeneralSignals.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Added checkbox * fix * Fix ayes nays * Cancel poll vote interaction (#815) * Cancel poll vote interaction * remove apiReady and revert AyeNayButtons * ownVote css styling * space * Use ButtonLink * fix percentage decimal display * api check * use type guard and avoid over fetching * comment out Poll * lint * Added isReferendum Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Co-authored-by: erler <mail@michelerler.com> Co-authored-by: Michel Erler <7072141+erler@users.noreply.github.com> Co-authored-by: thib <thibaut.sardan@gmail.com>
* Added vote tables * Added permissions * Added votes post relationship * Added UI * Added Offchain Poll * Everything works * onchain only * removed console * using default address field * removed span * Split useEffect * Using encoded address * && instead of ? * Using use callback * Box shadow * conditional component dispaly * comment * Using enum * Added own vote * Added check of has_poll on create post itself * Added check of has_poll on create post itself * box-shadow fix * Update front-end/src/ui-components/CouncilSignalBar.tsx Co-authored-by: Michel Erler <7072141+erler@users.noreply.github.com> * Update front-end/src/components/Post/Poll/CouncilSignals.tsx Co-authored-by: Michel Erler <7072141+erler@users.noreply.github.com> * Update front-end/src/ui-components/OffChainSignalBar.tsx Co-authored-by: Michel Erler <7072141+erler@users.noreply.github.com> * Adding address of council if it exist * checking defaultAddress not empty string * renamed OffChainSignals -> GeneralSignals * Commented poll * lint * Update front-end/src/ui-components/CouncilSignalBar.tsx Co-authored-by: Michel Erler <7072141+erler@users.noreply.github.com> * fix table setup * Using council members from chain db rather than onchain. Showing old council of poll closing time has passed * < 2 check * Signal percentage * Helpertooltip next to title * Update front-end/src/components/Post/Poll/CouncilSignals.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update front-end/src/components/Post/Poll/GeneralSignals.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Added checkbox * fix * Fix ayes nays * Cancel poll vote interaction (#815) * Cancel poll vote interaction * remove apiReady and revert AyeNayButtons * ownVote css styling * space * Use ButtonLink * fix percentage decimal display * api check * use type guard and avoid over fetching * comment out Poll * lint * changed block_number to poll_block_number_end * extracted reused code in function * Uncommented poll * removed twoWeekBlocks * Calculating end block * fix * Added blocktime context * using hook instead of context for getting block time * not using default 0 * showing error on no block number * Moved poll table * timestamps and permissions * added relationship * added @ardatan/graphql-tools * added permission * removed unused relationship * prevent poll vote when finished (#878) Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Co-authored-by: erler <mail@michelerler.com> Co-authored-by: Michel Erler <7072141+erler@users.noreply.github.com> Co-authored-by: thib <thibaut.sardan@gmail.com>
To indicate whether and how a user has voted on a poll, the respective button mimics
hover
style while the other button is disabled. Clicking on the link below cancels the vote.I also tried out keeping both buttons active so that clicking the other option would cancel the previous vote and cast a new one, but that felt a bit unintuitive.