Add DAO voting flow preview UI#1440
Draft
dnlbui wants to merge 4 commits into
Draft
Conversation
…t calculation * Introduced a new constant for DAO vote weight precision to enhance calculation accuracy. * Updated the total applied weight formula in the Proposal Info Modal to incorporate the new precision constant, improving the reliability of weight estimates. These changes enhance the accuracy of voting weight calculations, contributing to more precise proposal evaluations.
* Introduced functions to format and display voting power and percentages, improving clarity in the voting process. * Updated the Proposal Info Modal to include a new help section explaining voting power, enhancing user understanding. * Refactored the vote preview section to better present estimated voting power and allocation ratios, improving the overall user experience. These changes significantly enhance the functionality and usability of the Proposal Info Modal, providing users with clearer insights into their voting power and options.
* Simplified the calculation of voting power by removing unnecessary type checks in the formatDaoVotingPower function. * Updated the Proposal Info Modal to replace the previous help section with a more user-friendly details element explaining voting power. * Removed unused variables and event listeners related to the voting power help, streamlining the code and improving performance. These changes enhance the clarity and usability of the voting power display in the Proposal Info Modal, providing users with a more straightforward understanding of their voting power.
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
This PR adds the Phase 5.A DAO voting preview experience before vote submission is wired in a follow-up phase.
proposalInfoModalnow renders voting status, deadline, current totals, option allocation inputs, and a spend amount input for eligible voting proposals.Fixed Flow
Why
Phase 5.A needs users to understand how weighted voting will behave before backend vote submission is connected. The preview keeps the UI scoped to allocation and power estimation while preserving the follow-up boundary for the actual
dao_votetransaction.Validation
node --check app.jsgit diff --check 112c8234d232a546a342e501f62acdaf82493a54Closes #1422