Skip to content

Add DAO voting flow preview UI#1440

Draft
dnlbui wants to merge 4 commits into
issue-1421-committee-review-backend-integrationfrom
issue-1422-voting-flow-ui
Draft

Add DAO voting flow preview UI#1440
dnlbui wants to merge 4 commits into
issue-1421-committee-review-backend-integrationfrom
issue-1422-voting-flow-ui

Conversation

@dnlbui

@dnlbui dnlbui commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

What Changed

This PR adds the Phase 5.A DAO voting preview experience before vote submission is wired in a follow-up phase.

  • proposalInfoModal now renders voting status, deadline, current totals, option allocation inputs, and a spend amount input for eligible voting proposals.
  • Vote preview math now applies the DAO vote weight precision constant and displays normalized voting power plus per-option percentages so users are not exposed to raw backend-scale numbers.
  • The voting preview UI explains allocation ratios, shows an inline voting power help disclosure, keeps preview rows aligned in fixed columns, and leaves submission disabled for Phase 5.B.

Fixed Flow

  1. A user opens a proposal that is in the voting phase.
  2. The modal shows vote options, allocation weights, and the LIB spend amount.
  3. The preview calculates estimated voting power and option percentages locally.
  4. The submit button remains disabled until transaction submission is implemented in Phase 5.B.

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_vote transaction.

Validation

  • node --check app.js
  • git diff --check 112c8234d232a546a342e501f62acdaf82493a54

Closes #1422

dnlbui added 4 commits July 3, 2026 12:45
…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.
@dnlbui dnlbui linked an issue Jul 6, 2026 that may be closed by this pull request
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase 5.A: Voting Flow UI

1 participant