From c51806fee957aa3f498667c70fb8ba0f98058eca Mon Sep 17 00:00:00 2001 From: nebojsajsimic <6024893+nebojsajsimic@users.noreply.github.com> Date: Mon, 2 Dec 2024 14:43:29 +0100 Subject: [PATCH 1/3] Change address and amount to be an array --- .../Steps/InformationStorageStep.jsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pdf-ui/src/components/SubmissionGovernanceAction/Steps/InformationStorageStep.jsx b/pdf-ui/src/components/SubmissionGovernanceAction/Steps/InformationStorageStep.jsx index 2d39335..8aa181a 100644 --- a/pdf-ui/src/components/SubmissionGovernanceAction/Steps/InformationStorageStep.jsx +++ b/pdf-ui/src/components/SubmissionGovernanceAction/Steps/InformationStorageStep.jsx @@ -140,10 +140,7 @@ const InformationStorageStep = ({ proposal, handleCloseSubmissionDialog }) => { await walletAPI.buildTreasuryGovernanceAction({ hash: hashData, url: fileURL, - amount: proposal?.attributes?.content?.attributes?.prop_amount?.toString(), - receivingAddress: - proposal?.attributes?.content?.attributes - ?.prop_receiving_address, + withdrawals: getWithdrawalsArray() }); } @@ -183,6 +180,15 @@ const InformationStorageStep = ({ proposal, handleCloseSubmissionDialog }) => { } }; + const getWithdrawalsArray = () => { + let withdrawalsArray = []; + let x = proposal?.attributes?.content?.attributes?.proposal_withdrawals.forEach((withdrawal) => + { + withdrawalsArray.push({receivingAddress:withdrawal.prop_receiving_address,amount:withdrawal.prop_amount.toString()}) + }); + return withdrawalsArray; + } + const handleDownloadJsonLD = () => { const blob = new Blob([JSON.stringify(jsonLdData, null, 2)], { type: 'application/ld+json', From ea1e1fe30064ecda1138629317bb297ac8435980 Mon Sep 17 00:00:00 2001 From: nebojsajsimic <6024893+nebojsajsimic@users.noreply.github.com> Date: Mon, 2 Dec 2024 14:52:16 +0100 Subject: [PATCH 2/3] BugFix 2264 - After successeful subbmition of GA yo uwill be redirected to dashboard --- .../Modals/GovernanceActionSubmittedModal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf-ui/src/components/SubmissionGovernanceAction/Modals/GovernanceActionSubmittedModal.jsx b/pdf-ui/src/components/SubmissionGovernanceAction/Modals/GovernanceActionSubmittedModal.jsx index cc66d18..528fb69 100644 --- a/pdf-ui/src/components/SubmissionGovernanceAction/Modals/GovernanceActionSubmittedModal.jsx +++ b/pdf-ui/src/components/SubmissionGovernanceAction/Modals/GovernanceActionSubmittedModal.jsx @@ -39,7 +39,7 @@ const GovernanceActionSubmittedModal = ({ open, onClose }) => { alignItems={'center'} > navigate('/proposal_discussion')} data-testid='ga-submitted-modal-close-button' > From 6f4de8ca903b8e119e6ce12e964676484bed39e2 Mon Sep 17 00:00:00 2001 From: nebojsact <44401716+nebojsact@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:09:07 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md --- pdf-ui/CHANGELOG.md | 51 ++++++++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/pdf-ui/CHANGELOG.md b/pdf-ui/CHANGELOG.md index d0515ca..dd10b16 100644 --- a/pdf-ui/CHANGELOG.md +++ b/pdf-ui/CHANGELOG.md @@ -8,20 +8,37 @@ 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. -## [tag-xxxx](https://github.com/IntersectMBO/govtool-proposal-pillar/releases/tag/xxxx) 2024-xx-xx - -### Added - -- - -### Fixed - -- - -### Changed - -- - -### Removed - -- \ No newline at end of file +## [v0.5.2](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.5.2) 2024-12-02 + +### Added - +### Fixed - + - Changed params for submitting GA so now it is change to multiple addresses. [issue #2447](https://github.com/IntersectMBO/govtool/issues/2447) + - After successful submission of GA modal close button will redirect to dashboard instead of allowing to submit again.[issue #2264](https://github.com/IntersectMBO/govtool/issues/2264) +### Changed - +### Removed - + +## [v0.5.1](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.5.1) 2024-11-29 + +### Added - +### Fixed - + - Added validation for Receiving Stake Address and Amount on creating Treasury Proposal [Issue #2435](https://github.com/IntersectMBO/govtool/issues/2435) + - Fixed test id to match suggested format [Issue #2437](https://github.com/IntersectMBO/govtool/issues/2437) + - Fixed review Stake Addresses and Amounts in Treasury Proposal Review Step and Draft [Issue #2438](https://github.com/IntersectMBO/govtool/issues/2438) + - Fixed edit Stake Addresses and Amounts in Treasury Proposal Review edit form +### Changed - +### Removed - + +## [v0.5.0](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.5.1) 2024-11-26 + +### Added - +### Fixed - +### Changed + - Allows withdrawal of Ada funds from the Cardano treasury to one or many reward accounts (reward/stake addresses) [Issue #2378](https://github.com/IntersectMBO/govtool/issues/2378) +### Removed - + +## [tag-xxxx](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/xxxx) 202x-xx-xx + +### Added - +### Fixed - +### Changed - +### Removed -