-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Weighted voting UI #10858
base: develop
Are you sure you want to change the base?
feat: Weighted voting UI #10858
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
28b88b0
to
e4de362
Compare
7f32c08
to
13d7ffd
Compare
PR-Codex overview
This PR introduces significant enhancements to the voting system, including support for both single-choice and weighted voting types. It refines state management, updates interfaces, and improves user interactions, ensuring a more robust and user-friendly voting experience.
Detailed summary
SingleVoteState
andWeightedVoteState
interfaces for vote state management.ProposalTypeName
enum for proposal types.Proposal
interface to includetype
,scores
, andscores_total
.Vote
component to handle both voting types.SingleVote
andWeightedVote
components for respective voting methods.CastVoteModal
to manage different vote types effectively.VoteRow
to display voting percentages for weighted votes.