diff --git a/pdf-ui/CHANGELOG.md b/pdf-ui/CHANGELOG.md index 0b7f8ee..c35996f 100644 --- a/pdf-ui/CHANGELOG.md +++ b/pdf-ui/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 As a minor extension, we also keep a semantic version for the `UNRELEASED` changes. +## [v1.0.15-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.15-beta) 2025-09-22 + +- Increase Reference Links Limit per Proposal in Proposal Discussion Forum #4087 + ## [v1.0.14-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.14-beta) 2025-09-10 - fix: Proposal form resets guardrails script data on Constitution URL change. #4041 diff --git a/pdf-ui/package.json b/pdf-ui/package.json index 05c5c16..d0215fd 100644 --- a/pdf-ui/package.json +++ b/pdf-ui/package.json @@ -1,6 +1,6 @@ { "name": "@intersect.mbo/pdf-ui", - "version": "1.0.14-beta", + "version": "1.0.15-beta", "description": "Proposal discussion ui", "main": "./src/index.js", "exports": { diff --git a/pdf-ui/src/components/CreationGoveranceAction/LinkManager.jsx b/pdf-ui/src/components/CreationGoveranceAction/LinkManager.jsx index d45a7ca..fe5b53b 100644 --- a/pdf-ui/src/components/CreationGoveranceAction/LinkManager.jsx +++ b/pdf-ui/src/components/CreationGoveranceAction/LinkManager.jsx @@ -81,15 +81,13 @@ const LinkManager = ({ }; const handleAddLink = () => { - if (proposalData?.proposal_links?.length < maxLinks) { - setProposalData({ - ...proposalData, - proposal_links: [ - ...proposalData?.proposal_links, - { prop_link: '' }, - ], - }); - } + setProposalData({ + ...proposalData, + proposal_links: [ + ...proposalData?.proposal_links, + { prop_link: '' }, + ], + }); }; const handleRemoveLink = (index) => { @@ -108,8 +106,6 @@ const LinkManager = ({ }); }; - console.log('linksErrors', linksErrors); - return ( {proposalData?.proposal_links?.map((link, index) => ( @@ -209,27 +205,23 @@ const LinkManager = ({ ))} - {proposalData?.proposal_links?.length < maxLinks && ( - + - - )} + Add link + + ); }; diff --git a/pdf-ui/src/components/SubmissionGovernanceAction/Steps/InformationStorageStep.jsx b/pdf-ui/src/components/SubmissionGovernanceAction/Steps/InformationStorageStep.jsx index 4ee8528..c3fb081 100644 --- a/pdf-ui/src/components/SubmissionGovernanceAction/Steps/InformationStorageStep.jsx +++ b/pdf-ui/src/components/SubmissionGovernanceAction/Steps/InformationStorageStep.jsx @@ -134,6 +134,10 @@ const InformationStorageStep = ({ proposal, handleCloseSubmissionDialog }) => { hash: hashData, url: fileURL, }); + console.log( + '🚀 ~ handleGASubmission ~ walletAPI:', + walletAPI + ); } else if (parseInt(proposalGATypeId) === 2) { govActionBuilder = await walletAPI.buildTreasuryGovernanceAction({ @@ -206,7 +210,7 @@ const InformationStorageStep = ({ proposal, handleCloseSubmissionDialog }) => { prop_submission_tx_hash: tx, } ); - setShowGovernanceActionSubmittedModal(true); + setShowGovernanceActionSubmittedModal(true); } } } else { @@ -261,7 +265,6 @@ const InformationStorageStep = ({ proposal, handleCloseSubmissionDialog }) => { throw new Error('url is not defined or null'); } const response = await getViaProxy('', { url: url, method: 'GET' }); - console.log('🚀 ~ getHashFromUrl ~ response:', response); if (response.status !== 200) { throw new Error(`HTTP error! Status: ${response.status}`); }