diff --git a/CHANGELOG.md b/CHANGELOG.md index 786e14151..100733f56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,28 @@ changes. - +## [v1.0.26](https://github.com/IntersectMBO/govtool/releases/tag/v1.0.26) 2024-11-07 + +### Added + +- add support for CIP-129 governance identifiers [Issue 2183](https://github.com/IntersectMBO/govtool/issues/2183) +- Add label to supporting links in Governance Action details [Issue 2305](https://github.com/IntersectMBO/govtool/issues/2305) + +### Fixed + +- Fix certificates order where vote delegation cert is before the DRep registration cert [Issue 2333](https://github.com/IntersectMBO/govtool/issues/2333) + +### Changed + +- Change multilanguage support to use json file [Issue 2325](https://github.com/IntersectMBO/govtool/issues/2325) +- Display full Governance Action IDs on desktop +- Support space on given name [Issue 2276](https://github.com/IntersectMBO/govtool/issues/2276) +- Display ADA in 'en-US' format [Issue 2305](https://github.com/IntersectMBO/govtool/issues/2305) + +### Removed + +- + ## [v1.0.25](https://github.com/IntersectMBO/govtool/releases/tag/v1.0.25) 2024-11-04 ### Added diff --git a/govtool/backend/Dockerfile b/govtool/backend/Dockerfile index 06ee2bdf7..c601511c6 100644 --- a/govtool/backend/Dockerfile +++ b/govtool/backend/Dockerfile @@ -4,4 +4,4 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG WORKDIR /src COPY . . RUN cabal build -RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-1.0.25/x/vva-be/build/vva-be/vva-be /usr/local/bin +RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-1.0.26/x/vva-be/build/vva-be/vva-be /usr/local/bin diff --git a/govtool/backend/Dockerfile.qovery b/govtool/backend/Dockerfile.qovery index 5d632f54f..41cf5dfd4 100644 --- a/govtool/backend/Dockerfile.qovery +++ b/govtool/backend/Dockerfile.qovery @@ -4,7 +4,7 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG WORKDIR /src COPY . . RUN cabal build -RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-1.0.25/x/vva-be/build/vva-be/vva-be /usr/local/bin +RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-1.0.26/x/vva-be/build/vva-be/vva-be /usr/local/bin # Expose the necessary port EXPOSE 9876 diff --git a/govtool/backend/vva-be.cabal b/govtool/backend/vva-be.cabal index a3dbffcba..c8fa636c0 100644 --- a/govtool/backend/vva-be.cabal +++ b/govtool/backend/vva-be.cabal @@ -1,6 +1,6 @@ cabal-version: 3.6 name: vva-be -version: 1.0.25 +version: 1.0.26 -- A short (one-line) description of the package. -- synopsis: diff --git a/govtool/frontend/package-lock.json b/govtool/frontend/package-lock.json index 776e24278..395102589 100644 --- a/govtool/frontend/package-lock.json +++ b/govtool/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "@govtool/frontend", - "version": "1.0.25", + "version": "1.0.26", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@govtool/frontend", - "version": "1.0.25", + "version": "1.0.26", "hasInstallScript": true, "dependencies": { "@emotion/react": "^11.11.1", diff --git a/govtool/frontend/package.json b/govtool/frontend/package.json index 219428f83..dc3cb3c1c 100644 --- a/govtool/frontend/package.json +++ b/govtool/frontend/package.json @@ -1,7 +1,7 @@ { "name": "@govtool/frontend", "private": true, - "version": "1.0.25", + "version": "1.0.26", "type": "module", "scripts": { "build": "vite build", @@ -109,5 +109,5 @@ "typescript": "^5.0.2" }, "readme": "ERROR: No README data found!", - "_id": "govtool@1.0.25" + "_id": "govtool@1.0.26" } diff --git a/govtool/frontend/src/components/molecules/GovernanceActionCard.tsx b/govtool/frontend/src/components/molecules/GovernanceActionCard.tsx index c70ede09a..c658b068f 100644 --- a/govtool/frontend/src/components/molecules/GovernanceActionCard.tsx +++ b/govtool/frontend/src/components/molecules/GovernanceActionCard.tsx @@ -11,6 +11,7 @@ import { import { useScreenDimension, useTranslation } from "@hooks"; import { + encodeCIP129Identifier, getFullGovActionId, getProposalTypeLabel, getProposalTypeNoEmptySpaces, @@ -53,6 +54,11 @@ export const GovernanceActionCard: FC = ({ ...props }) => { const { t } = useTranslation(); const govActionId = getFullGovActionId(txHash, index); + const cip129GovernanceActionId = encodeCIP129Identifier( + txHash, + index.toString(16).padStart(2, "0"), + "gov_action", + ); return ( = ({ ...props }) => { /> + diff --git a/govtool/frontend/src/components/molecules/GovernanceActionDetailsCardLinks.tsx b/govtool/frontend/src/components/molecules/GovernanceActionDetailsCardLinks.tsx index 1615a2716..b639c205f 100644 --- a/govtool/frontend/src/components/molecules/GovernanceActionDetailsCardLinks.tsx +++ b/govtool/frontend/src/components/molecules/GovernanceActionDetailsCardLinks.tsx @@ -9,7 +9,7 @@ import { LinkWithIcon } from "@molecules"; export const GovernanceActionDetailsCardLinks = ({ links, }: { - links?: string[]; + links?: Reference[]; }) => { const { isMobile } = useScreenDimension(); const { t } = useTranslation(); @@ -41,21 +41,31 @@ export const GovernanceActionDetailsCardLinks = ({ rowGap: 2, }} > - {links.map((link) => ( - { - openModal({ - type: "externalLink", - state: { - externalLink: link, - }, - }); - }} - icon={link} - cutWithEllipsis - /> + {links.map(({ uri, label }) => ( + + {label && ( + + {label} + + )} + { + openModal({ + type: "externalLink", + state: { + externalLink: uri, + }, + }); + }} + icon={link} + cutWithEllipsis + /> + ))} diff --git a/govtool/frontend/src/components/molecules/GovernanceVotedOnCard.tsx b/govtool/frontend/src/components/molecules/GovernanceVotedOnCard.tsx index e47980920..cb5a4fd54 100644 --- a/govtool/frontend/src/components/molecules/GovernanceVotedOnCard.tsx +++ b/govtool/frontend/src/components/molecules/GovernanceVotedOnCard.tsx @@ -5,6 +5,7 @@ import { Button } from "@atoms"; import { PATHS } from "@consts"; import { useScreenDimension, useTranslation } from "@hooks"; import { + encodeCIP129Identifier, getFullGovActionId, getProposalTypeLabel, getProposalTypeNoEmptySpaces, @@ -43,6 +44,13 @@ export const GovernanceVotedOnCard = ({ votedProposal, inProgress }: Props) => { const { isMobile, screenWidth } = useScreenDimension(); const { t } = useTranslation(); + const govActionId = getFullGovActionId(txHash, index); + const cip129GovernanceActionId = encodeCIP129Identifier( + txHash, + index.toString(16).padStart(2, "0"), + "gov_action", + ); + return ( { /> + @@ -120,15 +135,12 @@ export const GovernanceVotedOnCard = ({ votedProposal, inProgress }: Props) => { >