Skip to content

Commit 0b75dff

Browse files
authored
Merge pull request #2902 from IntersectMBO/test
GovTool - v2.0.11
2 parents 8796f74 + 349f244 commit 0b75dff

File tree

18 files changed

+85
-46
lines changed

18 files changed

+85
-46
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,37 @@ changes.
1616

1717
### Fixed
1818

19+
-
20+
21+
### Changed
22+
23+
-
24+
25+
### Removed
26+
27+
-
28+
29+
## [v2.0.11](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.11) 2025-02-04
30+
31+
### Added
32+
33+
-
34+
35+
### Fixed
36+
1937
- Fix displaying DRep with doNotList property as string
2038
- Handle exception when no index is provided to /proposal/get endpoint [Issue 1841](https://github.com/IntersectMBO/govtool/issues/1841)
2139
- Fix displaying vote pill on voted on cards
40+
- Fix incorrect link to learn more about direct voters [Issue 2647](https://github.com/IntersectMBO/govtool/issues/2647)
41+
- Fix missing No DRep found message on DRep Directory [Issue 2889](https://github.com/IntersectMBO/govtool/issues/2889)
42+
- Fix displaying givenName placeholder instead of actual value on DRep card [Issue 2888](https://github.com/IntersectMBO/govtool/issues/2888)
43+
- Fix executing insertBefore on undefined node [Issue 2878](https://github.com/IntersectMBO/govtool/issues/2878)
2244

2345
### Changed
2446

2547
- Change votes representation on Governance Actions [Issue 2880](https://github.com/IntersectMBO/govtool/issues/2880)
48+
- Change vote rationale character limit to 10000 [Issue 2891](https://github.com/IntersectMBO/govtool/issues/2891)
49+
- Move ratification threshold label below the voter type [Issue 2893](https://github.com/IntersectMBO/govtool/issues/2893)
2650

2751
### Removed
2852

@@ -79,6 +103,7 @@ changes.
79103
- Fix usage of trim on missing label
80104
- Fix blank screen when registering as a DRep [Issue 2408](https://github.com/IntersectMBO/govtool/issues/2408)
81105
- Fix type mismatch between sql and haskell code for stake key address
106+
- Handle missing api key exception [Issue 2683](https://github.com/IntersectMBO/govtool/issues/2683)
82107

83108
### Changed
84109

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.10/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.11/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.10/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.11/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.10
3+
version: 2.0.11
44

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

govtool/frontend/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@
4242
s = d.getElementsByTagName("script")[0];
4343
g.async = true;
4444
g.src = u + "matomo.js";
45-
s.parentNode.insertBefore(g, s);
45+
if (s && s.parentNode) {
46+
s.parentNode.insertBefore(g, s);
47+
} else {
48+
d.head.appendChild(g);
49+
}
4650
})();
4751
</script>
4852
<div id="root"></div>

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@govtool/frontend",
33
"private": true,
4-
"version": "2.0.10",
4+
"version": "2.0.11",
55
"type": "module",
66
"scripts": {
77
"build": "vite build",

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -226,27 +226,6 @@ const VotesGroup = ({
226226
>
227227
{t(`govActions.${type}`)}
228228
</Typography>
229-
<Vote
230-
type={type}
231-
vote="yes"
232-
percentage={yesVotesPercentage}
233-
value={yesVotes}
234-
/>
235-
<Vote type={type} vote="abstain" value={abstainVotes} />
236-
<Vote
237-
type={type}
238-
vote="no"
239-
percentage={noVotesPercentage}
240-
value={noVotes}
241-
/>
242-
{typeof notVotedVotes === "number" && (
243-
<Vote
244-
type={type}
245-
vote="notVoted"
246-
percentage={notVotedPercentage}
247-
value={notVotedVotes}
248-
/>
249-
)}
250229
{threshold !== undefined && threshold !== null && (
251230
<Box
252231
display="flex"
@@ -279,6 +258,27 @@ const VotesGroup = ({
279258
</Typography>
280259
</Box>
281260
)}
261+
<Vote
262+
type={type}
263+
vote="yes"
264+
percentage={yesVotesPercentage}
265+
value={yesVotes}
266+
/>
267+
<Vote type={type} vote="abstain" value={abstainVotes} />
268+
<Vote
269+
type={type}
270+
vote="no"
271+
percentage={noVotesPercentage}
272+
value={noVotes}
273+
/>
274+
{typeof notVotedVotes === "number" && (
275+
<Vote
276+
type={type}
277+
vote="notVoted"
278+
percentage={notVotedPercentage}
279+
value={notVotedVotes}
280+
/>
281+
)}
282282
</Box>
283283
);
284284
};

govtool/frontend/src/components/organisms/DashboardCards/DRepDashboardCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const DRepDashboardCard = ({
6666
i18nKey="dashboard.cards.drep.retirementInProgressWithGivenName"
6767
values={{
6868
deposit: correctAdaFormat(voter?.deposit),
69-
name: voter?.givenName,
69+
givenName: voter?.givenName,
7070
}}
7171
/>
7272
) : (
@@ -140,7 +140,7 @@ export const DRepDashboardCard = ({
140140
description: voter?.givenName ? (
141141
<Trans
142142
i18nKey="dashboard.cards.drep.notRegisteredWasRegisteredDescriptionWithGivenName"
143-
values={{ name: voter?.givenName }}
143+
values={{ givenName: voter?.givenName ?? "DRep" }}
144144
/>
145145
) : (
146146
<Trans i18nKey="dashboard.cards.drep.notRegisteredWasRegisteredDescription" />

govtool/frontend/src/components/organisms/VoteContext/VoteContextText.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type VoteContextTextProps = {
1010
setStep: Dispatch<SetStateAction<number>>;
1111
onCancel: () => void;
1212
};
13+
const MAX_LENGTH = 10000;
1314

1415
export const VoteContextText = ({
1516
setStep,
@@ -31,9 +32,9 @@ export const VoteContextText = ({
3132
message: t("createGovernanceAction.fields.validations.required"),
3233
},
3334
maxLength: {
34-
value: 500,
35+
value: MAX_LENGTH,
3536
message: t("createGovernanceAction.fields.validations.maxLength", {
36-
maxLength: 500,
37+
maxLength: MAX_LENGTH,
3738
}),
3839
},
3940
},
@@ -64,13 +65,13 @@ export const VoteContextText = ({
6465
{t("govActions.provideContextAboutYourVote")}
6566
</Typography>
6667
<Typography variant="body1" sx={{ fontWeight: 400, mb: 2 }}>
67-
{/* TODO: Update text when design is finalised */}
68-
Additional information about your vote
68+
{t("govActions.additionalInformationAboutYourVote")}
6969
</Typography>
7070
<ControlledField.TextArea
7171
{...{ control, errors }}
7272
{...fieldProps}
7373
isModifiedLayout
74+
maxLength={MAX_LENGTH}
7475
data-testid="provide-context-input"
7576
/>
7677
</VoteContextWrapper>

0 commit comments

Comments
 (0)