Skip to content

Phase 2.B: Add Proposal Form Data Integration#1435

Draft
dnlbui wants to merge 4 commits into
issue-1416-add-proposal-form-uifrom
issue-1417-add-proposal-data-integration
Draft

Phase 2.B: Add Proposal Form Data Integration#1435
dnlbui wants to merge 4 commits into
issue-1416-add-proposal-form-uifrom
issue-1417-add-proposal-data-integration

Conversation

@dnlbui

@dnlbui dnlbui commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

What Changed

This PR connects the DAO Add Proposal form to live DAO data sources and builds the draft payload used by the next confirmation phase.

  • daoRepo now loads proposal list data from DAO backend query endpoints and removes the production dependency on generated mock proposals.
  • AddProposalModal loads current DAO parameter values from the network account or /netconfig, loads the proposal fee as read-only DAO data, and validates option/change form state.
  • buildDaoProposalCreateDraft maps the validated form state into a dao_proposal_create draft while leaving generated-at-submit fields out of the form.
  • DAO list and filter rendering were adjusted around the server proposal statuses and backend-loaded proposal shape.

Why

Phase 2.B needs the Add Proposal flow to stop relying on mock/local-only form data and produce the transaction draft that Phase 3 can review before signing.

Validation

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

Closes #1417
Parent: #1413

dnlbui added 4 commits July 2, 2026 10:09
* Added a new input field for proposal fee in the modal, displaying dynamic values based on emergency status.
* Introduced functions to load and refresh the proposal fee, ensuring accurate display and validation.
* Enhanced proposal creation draft logic to include proposal fee validation and handling.
* Updated the DAO repository with new utility functions for normalizing proposal options and changes.

This update improves the functionality and user experience of the DAO proposal modal by providing clear fee information and validation.
* Removed duplicate proposal fee input field from the form.
* Ensured the proposal fee field is consistently displayed and integrated within the modal layout.

This update streamlines the proposal fee handling in the DAO proposal modal, enhancing clarity and user experience.
* Added alignment for grid items in the proposal modal to start, improving layout consistency.

This change enhances the visual structure of the DAO proposal modal, contributing to a better user experience.
* Included a comment to indicate the need for a title field in the DAO proposal draft when supported by the DaoProposalCreate function.

This change serves as a reminder for future enhancements to the proposal creation process, ensuring completeness of the draft information.
@dnlbui dnlbui changed the base branch from main to issue-1416-add-proposal-form-ui July 2, 2026 16:05
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 2.B: Add Proposal Form Data Integration

1 participant