Skip to content

Commit b23b8e7

Browse files
authored
Merge pull request #3177 from IntersectMBO/staging
GovTool - v2.0.15
2 parents abc999b + 9a63f64 commit b23b8e7

37 files changed

+597
-117
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ changes.
1818

1919
### Removed
2020

21+
## [v2.0.15](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.15) 2025-03-11
22+
23+
24+
### Added
25+
26+
- Add support for ada handle in drep payment address [Issue 3155](https://github.com/IntersectMBO/govtool/issues/3155)
27+
- Improve numerical data formatting in drep directory [Issue 3148](https://github.com/IntersectMBO/govtool/issues/3148)
28+
29+
### Fixed
30+
31+
### Changed
32+
33+
### Removed
34+
2135
## [v2.0.14](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.14) 2025-03-06
2236

2337
### Added

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.14/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.15/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.14/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.15/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.14
3+
version: 2.0.15
44

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

govtool/frontend/.storybook/preview.tsx

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { ModalProvider } from "../src/context/modal";
1111
import { CardanoProvider } from "../src/context/wallet";
1212
import i18n from "../src/i18n";
1313
import { theme } from "../src/theme";
14+
import { AdaHandleProvider } from "../src/context/adaHandle";
1415

1516
const queryClient = new QueryClient();
1617

@@ -29,32 +30,34 @@ const preview: Preview = {
2930
<QueryClientProvider client={queryClient}>
3031
<AppContextProvider>
3132
<FeatureFlagProvider>
32-
<ThemeProvider theme={theme}>
33-
<CardanoProvider>
34-
<ModalProvider>
35-
<I18nextProvider i18n={i18n}>
36-
<MemoryRouter>
37-
<Routes>
38-
<Route
39-
path="/*"
40-
element={
41-
<div
42-
style={{
43-
margin: "0px",
44-
padding: "0px",
45-
position: "relative",
46-
}}
47-
>
48-
<Story />
49-
</div>
50-
}
51-
/>
52-
</Routes>
53-
</MemoryRouter>
54-
</I18nextProvider>
55-
</ModalProvider>
56-
</CardanoProvider>
57-
</ThemeProvider>
33+
<AdaHandleProvider>
34+
<ThemeProvider theme={theme}>
35+
<CardanoProvider>
36+
<ModalProvider>
37+
<I18nextProvider i18n={i18n}>
38+
<MemoryRouter>
39+
<Routes>
40+
<Route
41+
path="/*"
42+
element={
43+
<div
44+
style={{
45+
margin: "0px",
46+
padding: "0px",
47+
position: "relative",
48+
}}
49+
>
50+
<Story />
51+
</div>
52+
}
53+
/>
54+
</Routes>
55+
</MemoryRouter>
56+
</I18nextProvider>
57+
</ModalProvider>
58+
</CardanoProvider>
59+
</ThemeProvider>
60+
</AdaHandleProvider>
5861
</FeatureFlagProvider>
5962
</AppContextProvider>
6063
</QueryClientProvider>

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.14",
4+
"version": "2.0.15",
55
"type": "module",
66
"scripts": {
77
"build": "vite build",

govtool/frontend/src/components/organisms/AutomatedVotingOptions.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { ICONS } from "@consts";
1111
import { PendingTransaction } from "@context";
1212
import { useGetNetworkMetrics, useTranslation } from "@hooks";
1313
import { AutomatedVotingCard } from "@molecules";
14-
import { correctVoteAdaFormat, openInNewTab } from "@/utils";
14+
import { correctDRepDirectoryFormat, openInNewTab } from "@/utils";
1515
import {
1616
AutomatedVotingOptionCurrentDelegation,
1717
AutomatedVotingOptionDelegationId,
@@ -129,7 +129,9 @@ export const AutomatedVotingOptions = ({
129129
}
130130
votingPower={
131131
networkMetrics
132-
? correctVoteAdaFormat(networkMetrics?.alwaysAbstainVotingPower)
132+
? correctDRepDirectoryFormat(
133+
networkMetrics?.alwaysAbstainVotingPower,
134+
)
133135
: ""
134136
}
135137
transactionId={
@@ -170,7 +172,7 @@ export const AutomatedVotingOptions = ({
170172
}
171173
votingPower={
172174
networkMetrics
173-
? correctVoteAdaFormat(
175+
? correctDRepDirectoryFormat(
174176
networkMetrics?.alwaysNoConfidenceVotingPower,
175177
)
176178
: ""

govtool/frontend/src/components/organisms/DRepCard.tsx

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useTranslation } from "@hooks";
88
import { DRepData, DRepStatus } from "@models";
99
import { Card } from "@molecules";
1010
import {
11-
correctVoteAdaFormat,
11+
correctDRepDirectoryFormat,
1212
ellipsizeText,
1313
encodeCIP129Identifier,
1414
getBase64ImageDetails,
@@ -218,8 +218,21 @@ export const DRepCard = ({
218218
</Box>
219219
</Box>
220220

221-
<Box sx={{ display: "flex", flex: { xl: 1 }, gap: 3 }}>
222-
<Box sx={{ width: { lg: "128px" } }}>
221+
<Box
222+
sx={{
223+
display: "flex",
224+
flex: { xl: 1 },
225+
gap: 3,
226+
}}
227+
>
228+
<Box
229+
sx={{
230+
width: { lg: "128px" },
231+
display: "flex",
232+
alignItems: "flex-end",
233+
flexDirection: "column",
234+
}}
235+
>
223236
<Typography
224237
data-testid={`${view}-voting-power-label`}
225238
variant="caption"
@@ -232,7 +245,7 @@ export const DRepCard = ({
232245
data-testid={`${view}-voting-power`}
233246
sx={{ whiteSpace: "nowrap" }}
234247
>
235-
{correctVoteAdaFormat(votingPower)}
248+
{correctDRepDirectoryFormat(votingPower)}
236249
</Typography>
237250
</Box>
238251
<Divider

govtool/frontend/src/components/organisms/DRepDetailsCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useCardano, useModal } from "@context";
77
import { useDelegateTodRep, useScreenDimension, useTranslation } from "@hooks";
88
import { Card, DataMissingInfoBox } from "@molecules";
99
import {
10-
correctVoteAdaFormat,
10+
correctDRepDirectoryFormat,
1111
encodeCIP129Identifier,
1212
testIdFromLabel,
1313
} from "@utils";
@@ -146,7 +146,7 @@ export const DRepDetailsCard = ({
146146
sx={{ display: "flex", flexDirection: "row", mt: 0.5 }}
147147
>
148148
{"₳ "}
149-
{correctVoteAdaFormat(votingPower)}
149+
{correctDRepDirectoryFormat(votingPower)}
150150
</Typography>
151151
</DRepDetailsInfoItem>
152152
</Box>

0 commit comments

Comments
 (0)