Skip to content
Merged

Dev #347

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b1559f7
chore: Update version to 1.0.9-beta and add changelog entry for IPFS …
MihajlovicMilos1995 Jul 3, 2025
00f15a6
Merge pull request #330 from IntersectMBO/chore--bump-version-to-1.0.…
MihajlovicMilos1995 Jul 3, 2025
a046b3b
feat: Enhance URL handling for IPFS links in InformationStorageStep a…
MihajlovicMilos1995 Jul 29, 2025
0b81cf2
chore: Update version to 1.0.10-beta and add changelog entry for IPFS…
MihajlovicMilos1995 Jul 29, 2025
89b0975
Merge pull request #331 from IntersectMBO/fix/-Submitting-Governance-…
MihajlovicMilos1995 Jul 29, 2025
9f5325f
feat: Implement proxy data fetching and enhance error handling in Inf…
MihajlovicMilos1995 Jul 31, 2025
206895d
Merge pull request #332 from IntersectMBO/fix/-Submitting-Governance-…
MihajlovicMilos1995 Jul 31, 2025
3637183
chore: Update version to 1.0.11-beta and add changelog entries for ne…
MihajlovicMilos1995 Jul 31, 2025
24f24aa
Merge pull request #333 from IntersectMBO/fix/-Submitting-Governance-…
MihajlovicMilos1995 Jul 31, 2025
361be4d
feat: Add currency symbol to withdrawal amounts and update amount han…
MihajlovicMilos1995 Aug 8, 2025
830cf6c
chore: Bump version to 1.0.12-beta and update changelog for Treasury …
MihajlovicMilos1995 Aug 8, 2025
e86970a
Merge pull request #334 from IntersectMBO/feat-Update-Treasury-Propos…
MihajlovicMilos1995 Aug 8, 2025
8258140
chore: Bump version to 1.0.13-beta and update changelog; modify label…
MihajlovicMilos1995 Aug 11, 2025
86be937
Merge pull request #335 from IntersectMBO/feat-Update-Treasury-Propos…
MihajlovicMilos1995 Aug 11, 2025
53ac284
fix: simplify handling of proposal constitution content in handleUrlC…
MihajlovicMilos1995 Sep 10, 2025
f1ac1f0
chore: update version to 1.0.14-beta and add changelog entry for prop…
MihajlovicMilos1995 Sep 10, 2025
c4439d0
Merge pull request #336 from IntersectMBO/fix/Proposal-form-resets-gu…
MihajlovicMilos1995 Sep 10, 2025
ac233a8
chore: update version to 1.0.15-beta and add changelog entry for incr…
MihajlovicMilos1995 Sep 22, 2025
ed0ff1a
Merge pull request #337 from IntersectMBO/fix/Proposal-form-resets-gu…
MihajlovicMilos1995 Sep 22, 2025
6bd5266
fix:vulnerabilities
dquadrantdev Apr 15, 2026
0c26f07
Merge pull request #341 from cardanoapi/chore/fix-vulnerabilities-dev
aaboyle878 Apr 17, 2026
8ccc126
fixes(version) npm publish version
dquadrantdev Jun 3, 2026
054761f
Merge pull request #345 from cardanoapi/dev/pdf-ui
mesudip Jun 3, 2026
0da64e7
Merge main into dev
mesudip Jun 11, 2026
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
2 changes: 1 addition & 1 deletion backend/src/api/proxy/controllers/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
method = "GET",
data = {},
params = {},
headers = {},
headers = { "User-Agent": "govtool-proxy" },
} = ctx.request.body;
const response = await axios({ url, method, data, params, headers });
ctx.send({ status: response.status, data: response.data });
Expand Down
37 changes: 36 additions & 1 deletion pdf-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,52 @@ 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

## [v1.0.13-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.13-beta) 2025-08-11

- Add # to Proposal Details WithdrawalsManager

## [v1.0.12-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.12-beta) 2025-08-08

- feat: Update Treasury Proposal Amount Field to Accept ADA Instead of Lovelace #4000

## [v1.0.11-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.11-beta) 2025-07-31

- feat: Implement proxy data fetching and enhance error handling in InformationStorageStep
- feat: Add getViaProxy function to facilitate API requests through the proxy
- fix: Update User-Agent header in proxy controller for consistency
- refactor: Improve proposal data handling in ConstitutionManager and EditProposalDialog

## [v1.0.10-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.10-beta) 2025-07-29

- Submitting Governance Action with IPFS Metadata URL Fails Due to Unsupported URL Scheme #3979

## [v1.0.9-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.9-beta) 2025-07-03

- Support IPFS Links for Governance Action Submissions #3851

## [v1.0.8-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.8-beta) 2025-06-30

- Align Vote link

## [v1.0.7-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.7-beta) 2025-06-30

- Align Vote link
- Fix: "Verify Yourself to submit" Message Displayed on Already Submitted Proposals #3857
- Fix: "Verify Yourself to submit" Message Displayed on Already Submitted Proposals #3857

## [v1.0.6-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.6-beta) 2025-06-30

- Align Vote link

## [v1.0.5-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.5-beta) 2025-06-30

- Align Vote link

## [v1.0.4-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.4-beta) 2025-06-30
Expand Down
26,586 changes: 6,634 additions & 19,952 deletions pdf-ui/package-lock.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions 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.8-beta",
"version": "1.0.16-beta",
"description": "Proposal discussion ui",
"main": "./src/index.js",
"exports": {
Expand Down Expand Up @@ -42,11 +42,13 @@
"web-vitals": "^2.1.4"
},
"devDependencies": {
"@babel/preset-env": "^7.29.2",
"@babel/preset-react": "^7.28.5",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-terser": "^1.0.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand All @@ -61,7 +63,6 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.23.1",
"react-scripts": "5.0.1",
"sass": "^1.77.2"
},
"prettier": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ const ConstitutionManager = ({
}) => {
const theme = useTheme();

console.log(proposalData);

useEffect(() => {
if (proposalData?.proposal_constitution_content?.data?.attributes) {
setProposalData({
...proposalData,
proposal_constitution_content:
proposalData.proposal_constitution_content.data.attributes,
});
} else {
return;
}
}, [proposalData]);

const togglePropHhaveGuScript = (checked) => {
let pk = proposalData.proposal_constitution_content;
pk.prop_have_guardrails_script = checked;
Expand Down Expand Up @@ -40,9 +54,7 @@ const ConstitutionManager = ({
};
const handleUrlChange = (url_text) => {
constcheckLinkValue(url_text, 'prop_constitution_url');
let pk = { ...proposalData.proposal_constitution_content }
? { ...proposalData.proposal_constitution_content }
: {};
let pk = proposalData.proposal_constitution_content || {};
pk.prop_constitution_url = url_text;
setProposalData({ ...proposalData, proposal_constitution_content: pk });
};
Expand Down Expand Up @@ -88,7 +100,9 @@ const ConstitutionManager = ({
};

useEffect(() => {
let pk = proposalData.proposal_constitution_content;
let pk =
proposalData.proposal_constitution_content ||
proposalData.data?.attributes?.proposal_constitution_content;
if (pk != undefined) {
if (Boolean(pk.prop_constitution_url))
constcheckLinkValue(
Expand Down
52 changes: 23 additions & 29 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 Down Expand Up @@ -207,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
2 changes: 1 addition & 1 deletion pdf-ui/src/components/CreationGoveranceAction/Step3.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const Step3 = ({
gutterBottom
data-testid={`amount-${index}-content`}
>
{withdrawal.prop_amount}
{withdrawal.prop_amount}
</Typography>
</Box>
</Box>
Expand Down
Loading
Loading