Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pdf-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pdf-ui/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
54 changes: 23 additions & 31 deletions pdf-ui/src/components/CreationGoveranceAction/LinkManager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -108,8 +106,6 @@ const LinkManager = ({
});
};

console.log('linksErrors', linksErrors);

return (
<Box>
{proposalData?.proposal_links?.map((link, index) => (
Expand Down Expand Up @@ -209,27 +205,23 @@ const LinkManager = ({
</Box>
</Box>
))}
{proposalData?.proposal_links?.length < maxLinks && (
<Box
sx={{
display: 'flex',
justifyContent: 'center',
mt: 2,
}}
<Box
sx={{
display: 'flex',
justifyContent: 'center',
mt: 2,
}}
>
<Button
variant='text'
mt={2}
startIcon={<IconPlus fill={theme.palette.primary.main} />}
onClick={handleAddLink}
data-testid='add-link-button'
>
<Button
variant='text'
mt={2}
startIcon={
<IconPlus fill={theme.palette.primary.main} />
}
onClick={handleAddLink}
data-testid='add-link-button'
>
Add link
</Button>
</Box>
)}
Add link
</Button>
</Box>
</Box>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -206,7 +210,7 @@ const InformationStorageStep = ({ proposal, handleCloseSubmissionDialog }) => {
prop_submission_tx_hash: tx,
}
);
setShowGovernanceActionSubmittedModal(true);
setShowGovernanceActionSubmittedModal(true);
}
}
} else {
Expand Down Expand Up @@ -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}`);
}
Expand Down