Skip to content

Commit ecb78d3

Browse files
authored
Merge pull request #2321 from IntersectMBO/develop
GovTool v1.0.25
2 parents 97a193e + b6e65ce commit ecb78d3

File tree

16 files changed

+52
-27
lines changed

16 files changed

+52
-27
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,27 @@ changes.
1616

1717
### Fixed
1818

19+
-
20+
21+
### Changed
22+
23+
-
24+
25+
### Removed
26+
27+
-
28+
29+
## [v1.0.25](https://github.com/IntersectMBO/govtool/releases/tag/v1.0.25) 2024-11-04
30+
31+
### Added
32+
33+
-
34+
35+
### Fixed
36+
1937
- Fix searching by DRep Given name
2038
- Fix displaying the wallet connected modal
39+
- Fix navigating to DRep details [Issue 2307](https://github.com/IntersectMBO/govtool/issues/2307)
2140

2241
### Changed
2342

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-1.0.24/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-1.0.25/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-1.0.24/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-1.0.25/x/vva-be/build/vva-be/vva-be /usr/local/bin
88

99
# Expose the necessary port
1010
EXPOSE 9876

govtool/backend/sql/list-dreps.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ FROM
137137
WHERE
138138
(
139139
COALESCE(?, '') = '' OR
140+
(CASE WHEN LENGTH(?) % 2 = 0 AND ? ~ '^[0-9a-fA-F]+$' THEN dh.raw = decode(?, 'hex') ELSE false END) OR
140141
dh.view ILIKE ? OR
141142
off_chain_vote_drep_data.given_name ILIKE ?
142143
)

govtool/backend/src/VVA/DRep.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ listDReps mSearchQuery = withPool $ \conn -> do
4545
let searchParam = fromMaybe "" mSearchQuery
4646
results <- liftIO $ SQL.query conn listDRepsSql
4747
( searchParam
48+
, searchParam
49+
, searchParam
50+
, searchParam
4851
, "%" <> searchParam <> "%"
4952
, "%" <> searchParam <> "%"
5053
)

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: 1.0.24
3+
version: 1.0.25
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": "1.0.24",
4+
"version": "1.0.25",
55
"type": "module",
66
"scripts": {
77
"build": "vite build",
@@ -109,5 +109,5 @@
109109
"typescript": "^5.0.2"
110110
},
111111
"readme": "ERROR: No README data found!",
112-
"_id": "[email protected].24"
112+
"_id": "[email protected].25"
113113
}

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ export const DRepDashboardCard = ({
4343
),
4444
};
4545

46-
const navigateToDrepDirectory = () =>
47-
dRep &&
48-
navigate(PATHS.dashboardDRepDirectoryDRep.replace(":dRepId", dRep.view), {
49-
state: { enteredFromWithinApp: true },
50-
});
46+
const navigateToDrepDirectory = () => {
47+
if (dRep) {
48+
navigate(PATHS.dashboardDRepDirectoryDRep.replace(":dRepId", dRep.view), {
49+
state: { enteredFromWithinApp: true },
50+
});
51+
}
52+
};
5153

5254
const cardProps: Partial<DashboardActionCardProps> = (() => {
5355
// transaction in progress

govtool/frontend/src/hooks/queries/useGetDrepDetailsQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const useGetDRepDetailsQuery = (
66
) => {
77
const { dRepData, isDRepListLoading } = useGetDRepListInfiniteQuery(
88
{ searchPhrase: dRepId ?? undefined },
9-
{ enabled: options?.enabled && !!dRepId },
9+
{ enabled: options?.enabled || !!dRepId },
1010
);
1111

1212
return { dRep: dRepData?.[0], isLoading: isDRepListLoading };

0 commit comments

Comments
 (0)