Skip to content

Commit 9b99aef

Browse files
authored
Merge pull request #2523 from IntersectMBO/test
GovTool - v2.0.1
2 parents 2402453 + 56b2534 commit 9b99aef

20 files changed

+91
-26
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,28 @@ changes.
1616

1717
### Fixed
1818

19+
-
20+
21+
### Changed
22+
23+
-
24+
25+
### Removed
26+
27+
-
28+
29+
## [v2.0.1](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.1) 2024-12-16
30+
31+
### Added
32+
33+
- Integrate matomo analytics
34+
35+
### Fixed
36+
1937
- Fix mzero parsing error on fetching the /proposal/list [Issue 2446](https://github.com/IntersectMBO/govtool/issues/2446)
38+
- Fix scaling gov action votes on lower resolutions
39+
- Fix storing url missing length validation [Issue 2044](https://github.com/IntersectMBO/govtool/issues/2044)
40+
- Fix governance action details page crash on missing data [Issue 2511](https://github.com/IntersectMBO/govtool/issues/2511)
2041

2142
### Changed
2243

govtool/backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
44
WORKDIR /src
55
COPY . .
66
RUN cabal build
7-
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.0/x/vva-be/build/vva-be/vva-be /usr/local/bin
7+
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.1/x/vva-be/build/vva-be/vva-be /usr/local/bin

govtool/backend/Dockerfile.qovery

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
44
WORKDIR /src
55
COPY . .
66
RUN cabal build
7-
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.0/x/vva-be/build/vva-be/vva-be /usr/local/bin
7+
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.1/x/vva-be/build/vva-be/vva-be /usr/local/bin
88

99
# Expose the necessary port
1010
EXPOSE 9876

govtool/backend/vva-be.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 3.6
22
name: vva-be
3-
version: 2.0.0
3+
version: 2.0.1
44

55
-- A short (one-line) description of the package.
66
-- synopsis:

govtool/frontend/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

govtool/frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@govtool/frontend",
33
"private": true,
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"type": "module",
66
"scripts": {
77
"build": "vite build",
@@ -113,5 +113,5 @@
113113
"nth-check": "^2.0.1",
114114
"postcss": "^8.4.31"
115115
},
116-
"_id": "[email protected].0"
116+
"_id": "[email protected].1"
117117
}

govtool/frontend/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ import {
3939
import { PublicRoute } from "./pages/PublicRoute";
4040
import { TopBanners } from "./components/organisms/TopBanners";
4141
import { DashboardHome } from "./pages/DashboardHome";
42+
import { useMatomo } from "./hooks/useMatomo";
4243

4344
export default () => {
45+
useMatomo();
4446
const { isProposalDiscussionForumEnabled } = useFeatureFlag();
4547
const { enable, isEnabled } = useCardano();
4648
const navigate = useNavigate();

govtool/frontend/src/components/molecules/GovernanceActionDetailsCardLinks.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@ export const GovernanceActionDetailsCardLinks = ({
3434
>
3535
{t("govActions.supportingLinks")}
3636
</Typography>
37-
{links.map(({ uri, label }) => (
38-
<Box display="flex" flexDirection="column" overflow="hidden">
37+
{links?.map(({ uri, label }) => (
38+
<Box
39+
key={`${label}-${uri}-label`}
40+
display="flex"
41+
flexDirection="column"
42+
overflow="hidden"
43+
>
3944
{label && (
4045
<Typography
4146
data-testid={`${label}-${uri}-label`}

govtool/frontend/src/components/molecules/GovernanceActionDetailsCardVotes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type GovernanceActionCardVotesProps = {
1313
isDashboard?: boolean;
1414
isInProgress?: boolean;
1515
isVoter?: boolean;
16-
vote?: ProposalVote;
16+
vote?: ProposalVote | null;
1717
proposal: ProposalData;
1818
};
1919

govtool/frontend/src/components/molecules/GovernanceVotedOnCard.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,12 @@ export const GovernanceVotedOnCard = ({ votedProposal, inProgress }: Props) => {
121121
isCopyButton
122122
isSliderCard
123123
/>
124-
<GovernanceActionCardMyVote voteTxHash={vote.txHash} vote={vote.vote} />
124+
{vote && (
125+
<GovernanceActionCardMyVote
126+
voteTxHash={vote.txHash}
127+
vote={vote.vote}
128+
/>
129+
)}
125130
</Box>
126131
<Box
127132
bgcolor="white"

0 commit comments

Comments
 (0)