Skip to content

Commit e54a962

Browse files
authored
Merge pull request #3050 from IntersectMBO/develop
GovTool - v2.0.12
2 parents a18a329 + 5e83a7d commit e54a962

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+426
-300
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ changes.
1010

1111
## [Unreleased]
1212

13+
### Added
14+
15+
### Fixed
16+
17+
### Changed
18+
19+
### Removed
20+
21+
## [v2.0.12](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.12) 2025-02-21
22+
23+
1324
### Added
1425

1526
- Add metadata url and hash to drep details [Issue 2911](https://github.com/IntersectMBO/govtool/issues/2911)

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

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

govtool/frontend/package-lock.json

Lines changed: 7 additions & 6 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.11",
4+
"version": "2.0.12",
55
"type": "module",
66
"scripts": {
77
"build": "vite build",
@@ -27,7 +27,7 @@
2727
"@emotion/styled": "^11.11.0",
2828
"@emurgo/cardano-serialization-lib-asmjs": "^12.1.1",
2929
"@hookform/resolvers": "^3.3.1",
30-
"@intersect.mbo/govtool-outcomes-pillar-ui": "1.0.0",
30+
"@intersect.mbo/govtool-outcomes-pillar-ui": "1.2.0",
3131
"@intersect.mbo/intersectmbo.org-icons-set": "^1.0.8",
3232
"@intersect.mbo/pdf-ui": "0.6.2",
3333
"@mui/icons-material": "^5.14.3",

govtool/frontend/src/pages/DRepDirectoryContent.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ export const DRepDirectoryContent: FC<DRepDirectoryContentProps> = ({
5252
const [inProgressDelegationDRepData, setInProgressDelegationDRepData] =
5353
useState<DRepData | undefined>(undefined);
5454

55+
useEffect(() => {
56+
setChosenFilters([DRepStatus.Active]);
57+
}, []);
58+
5559
useEffect(() => {
5660
if (!chosenSorting) setChosenSorting(DRepListSort.Random);
57-
if (!chosenFilters.length) setChosenFilters([DRepStatus.Active]);
58-
}, [chosenSorting, setChosenSorting, chosenFilters, setChosenFilters]);
61+
}, [chosenSorting, setChosenSorting]);
5962

6063
const { delegate, isDelegating } = useDelegateTodRep();
6164

govtool/frontend/src/pages/GovernanceActionOutComes.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
import Outcomes from "@intersect.mbo/govtool-outcomes-pillar-ui";
21
import { Box, CircularProgress } from "@mui/material";
3-
import { Suspense } from "react";
2+
import React, { Suspense } from "react";
43
import { Footer, TopNav } from "@/components/organisms";
54
import { useCardano } from "@/context";
65
import { useScreenDimension } from "@/hooks";
76

7+
const GovernanceActionsOutcomes = React.lazy(
8+
() => import("@intersect.mbo/govtool-outcomes-pillar-ui/dist/esm"),
9+
);
10+
811
export const GovernanceActionOutComesPillar = () => {
912
const { pagePadding } = useScreenDimension();
1013
const { ...context } = useCardano();
@@ -40,10 +43,7 @@ export const GovernanceActionOutComesPillar = () => {
4043
</Box>
4144
}
4245
>
43-
{/* TODO: Remove this comments when tsc issue is resolved */}
44-
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
45-
{/* @ts-expect-error */}
46-
<Outcomes description="" />
46+
<GovernanceActionsOutcomes />
4747
</Suspense>
4848
</Box>
4949
{!context.isEnabled && <Footer />}

govtool/frontend/src/types/@intersect.mbo.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,18 @@ type ProposalDiscussionProps = {
2626
>;
2727
};
2828

29+
type GovernanceActionsOutcomesProps = {
30+
apiUrl?: string;
31+
};
32+
2933
declare module "@intersect.mbo/pdf-ui/cjs" {
3034
export default function ProposalDiscussion(
3135
props: ProposalDiscussionProps,
3236
): JSX.Element;
3337
}
38+
39+
declare module "@intersect.mbo/govtool-outcomes-pillar-ui/dist/esm" {
40+
export default function GovernanceActionsOutcomes(
41+
props: GovernanceActionsOutcomesProps,
42+
): JSX.Element;
43+
}

govtool/frontend/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,10 +1488,10 @@
14881488
resolved "https://registry.npmjs.org/@inquirer/type/-/type-3.0.1.tgz"
14891489
integrity sha512-+ksJMIy92sOAiAccGpcKZUc3bYO07cADnscIxHBknEm3uNts3movSmBofc1908BNy5edKscxYeAdaX1NXkHS6A==
14901490

1491-
"@intersect.mbo/govtool-outcomes-pillar-ui@1.0.0":
1492-
version "1.0.0"
1493-
resolved "https://registry.npmjs.org/@intersect.mbo/govtool-outcomes-pillar-ui/-/govtool-outcomes-pillar-ui-1.0.0.tgz"
1494-
integrity sha512-rsg/F1q713hMQI7bc+rEHy5odIYl4KR9Za/U3X0jUE0trk/X6sVjwiSM0HPBQhervJOWKN8OtEzCaNstjk1zRg==
1491+
"@intersect.mbo/govtool-outcomes-pillar-ui@1.2.0":
1492+
version "1.2.0"
1493+
resolved "https://registry.npmjs.org/@intersect.mbo/govtool-outcomes-pillar-ui/-/govtool-outcomes-pillar-ui-1.2.0.tgz"
1494+
integrity sha512-AzY2pOAExXCz7M6S2YeIglZ06Gdf0N9gWxJBRDQ2BuDsRC2arn4DwT2F+XHyOhM2AWSZeql0Dx86a0pZP7a1+w==
14951495
dependencies:
14961496
"@fontsource/poppins" "^5.0.14"
14971497
"@intersect.mbo/intersectmbo.org-icons-set" "^1.0.8"

0 commit comments

Comments
 (0)