Skip to content
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

Use ProposalBuilder on Create Proposal page #1525

Conversation

mudrila
Copy link
Contributor

@mudrila mudrila commented Apr 8, 2024

This PR completely removes CreateProposal components and leverages ProposalBuilder on "Create Proposal" page. This is interim PR that doesn't target final "clean" state but rather accumulates bunch of deletes of CreateProposal components and adjusts ProposalBuilder to have better UI in proposal creation mode.

Depends on #1529

@mudrila mudrila added enhancement New feature or request maintenance Keep the lights on labels Apr 8, 2024
@mudrila mudrila requested review from adamgall and Da-Colon April 8, 2024 13:26
@mudrila mudrila self-assigned this Apr 8, 2024
@mudrila mudrila requested a review from DarksightKellar April 9, 2024 10:53
Copy link
Contributor

@Da-Colon Da-Colon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One minor thing that doesn't really matter.

src/hooks/DAO/proposal/useGetMetadata.ts Outdated Show resolved Hide resolved
Comment on lines 20 to 22
isValidUrl(parameter.value!.trim())
? encodeURIComponent(parameter.value!.trim()) // If parameter.value is valid URL with special symbols like ":" or "?" - decoding might fail, thus we need to encode URL
: parameter.value!.trim(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O interesting. good edge case catch.

mudrila added 2 commits April 9, 2024 17:40
…that-just-sends-assets

Allow creating proposal with no function name / signature specified
@mudrila mudrila merged commit c2b60ee into feature/#1363-generic-templates-builder Apr 9, 2024
3 checks passed
@mudrila mudrila deleted the feature/#1363-use-proposal-builder-for-create-proposal-page branch April 9, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maintenance Keep the lights on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants