Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
8ca288c
fix: outcome search comparision issue due to case
kneerose Mar 27, 2025
1163f4a
feat: add UI test command for outcomes in Playwright
kneerose Mar 27, 2025
8859b80
chore: update environment variables for Playwright tests
kneerose Mar 27, 2025
4a6d705
Merge pull request #3286 from IntersectMBO/feat/outcome-local-run-setup
mesudip Mar 27, 2025
9fddbb0
chore: add status_times to outcome mock data
kneerose Mar 27, 2025
7bb9da4
Merge pull request #3288 from IntersectMBO/fix/missing-outcomes-statu…
mesudip Mar 27, 2025
daace35
fix: update outcome title and learnMore button testId
kneerose Mar 27, 2025
3524523
chore: add proper message for metadata invalid test failure with url …
kneerose Mar 27, 2025
69c4ee7
Merge pull request #3289 from IntersectMBO/fix/metadata-error-title
kneerose Mar 28, 2025
b3c4df4
fixes layer caching when workflow is manually triggered
aaboyle878 Mar 28, 2025
69eda0e
Merge pull request #3291 from IntersectMBO/fix/workflow-caching
aaboyle878 Mar 28, 2025
9eae5ae
feat: handle budget discussion route
MSzalowski Mar 31, 2025
54360d1
Merge pull request #3295 from IntersectMBO/feat/handle-budget-discuss…
MSzalowski Mar 31, 2025
9c09eee
chore: update @intersect.mbo/pdf-ui to 0.7.0-beta
github-actions[bot] Mar 31, 2025
fab97db
Merge pull request #3296 from IntersectMBO/chore/@intersect.mbo/pdf-u…
MSzalowski Mar 31, 2025
0080677
feat: add budget discussion disconnected route
MSzalowski Mar 31, 2025
2969712
Merge pull request #3297 from IntersectMBO/feat/add-budget-discussion…
MSzalowski Mar 31, 2025
93cd69c
fix: (#3230) missing redirect to outcomes on disconnected state
MSzalowski Mar 31, 2025
a8fb39f
chore: update @intersect.mbo/pdf-ui to 0.7.0-beta-2
github-actions[bot] Mar 31, 2025
d4fe1a5
Merge pull request #3300 from IntersectMBO/chore/@intersect.mbo/pdf-u…
MSzalowski Mar 31, 2025
f0d32d8
Merge pull request #3299 from IntersectMBO/fix/3230-redirect-to-gover…
MSzalowski Mar 31, 2025
dd0cf34
chore: update GovTool to v2.0.19
github-actions[bot] Mar 31, 2025
1d6d0ce
Merge pull request #3302 from IntersectMBO/chore/update-govtool-to-v2…
MSzalowski Mar 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-from-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ jobs:
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ github.run_number}}
restore-keys: |
${{ runner.os }}-buildx-

Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ changes.

### Removed

## [v2.0.19](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.19) 2025-03-31


### Added

- Add budget discussion paths in the wrapper

### Fixed

- Fix missing redirect to outcomes on wallet disconnected state [Issue 3230](https://github.com/IntersectMBO/govtool/issues/3230)

### Changed

### Removed

## [v2.0.18](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.18) 2025-03-26

### Added
Expand Down
2 changes: 1 addition & 1 deletion govtool/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
WORKDIR /src
COPY . .
RUN cabal build
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.18/x/vva-be/build/vva-be/vva-be /usr/local/bin
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.19/x/vva-be/build/vva-be/vva-be /usr/local/bin
2 changes: 1 addition & 1 deletion govtool/backend/Dockerfile.qovery
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
WORKDIR /src
COPY . .
RUN cabal build
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.18/x/vva-be/build/vva-be/vva-be /usr/local/bin
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.19/x/vva-be/build/vva-be/vva-be /usr/local/bin

# Expose the necessary port
EXPOSE 9876
Expand Down
2 changes: 1 addition & 1 deletion govtool/backend/vva-be.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.6
name: vva-be
version: 2.0.18
version: 2.0.19

-- A short (one-line) description of the package.
-- synopsis:
Expand Down
12 changes: 6 additions & 6 deletions govtool/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions govtool/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@govtool/frontend",
"private": true,
"version": "2.0.18",
"version": "2.0.19",
"type": "module",
"scripts": {
"build": "vite build",
Expand Down Expand Up @@ -29,7 +29,7 @@
"@hookform/resolvers": "^3.3.1",
"@intersect.mbo/govtool-outcomes-pillar-ui": "1.3.0",
"@intersect.mbo/intersectmbo.org-icons-set": "^1.0.8",
"@intersect.mbo/pdf-ui": "0.6.4",
"@intersect.mbo/pdf-ui": "0.7.0-beta-2",
"@mui/icons-material": "^5.14.3",
"@mui/material": "^5.14.4",
"@rollup/plugin-babel": "^6.0.4",
Expand Down
36 changes: 27 additions & 9 deletions govtool/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import { useCallback, useEffect } from "react";
import { Route, Routes, useNavigate } from "react-router-dom";

import { Modal, ScrollToTop } from "@atoms";
import { PATHS, PDF_PATHS, OUTCOMES_PATHS, USER_PATHS } from "@consts";
import {
PATHS,
PDF_PATHS,
OUTCOMES_PATHS,
USER_PATHS,
BUDGET_DISCUSSION_PATHS,
} from "@consts";
import { useCardano, useFeatureFlag, useModal } from "@context";
import { useWalletConnectionListener } from "@hooks";
import {
Expand Down Expand Up @@ -102,10 +108,16 @@ export default () => {
element={<GovernanceActionDetails />}
/>
{isProposalDiscussionForumEnabled && !isEnabled && (
<Route
path={`${PDF_PATHS.proposalDiscussion}/*`}
element={<ProposalDiscussionPillar />}
/>
<>
<Route
path={`${PDF_PATHS.proposalDiscussion}/*`}
element={<ProposalDiscussionPillar />}
/>
<Route
path={`${BUDGET_DISCUSSION_PATHS.budgetDiscussion}/*`}
element={<ProposalDiscussionPillar />}
/>
</>
)}
{isGovernanceOutcomesPillarEnabled && !isEnabled && (
<>
Expand All @@ -122,10 +134,16 @@ export default () => {
<Route element={<Dashboard />}>
<Route path={PATHS.dashboard} element={<DashboardHome />} />
{isProposalDiscussionForumEnabled && (
<Route
path={`${PDF_PATHS.proposalDiscussion}/*`}
element={<ProposalDiscussionPillar />}
/>
<>
<Route
path={`${PDF_PATHS.proposalDiscussion}/*`}
element={<ProposalDiscussionPillar />}
/>
<Route
path={`${BUDGET_DISCUSSION_PATHS.budgetDiscussion}/*`}
element={<ProposalDiscussionPillar />}
/>
</>
)}
{isGovernanceOutcomesPillarEnabled && (
<>
Expand Down
15 changes: 15 additions & 0 deletions govtool/frontend/src/consts/navItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
PATHS,
PDF_PATHS,
OUTCOMES_PATHS,
BUDGET_DISCUSSION_PATHS,
// TODO: This will be uncommented when the page has been bootstrapped in the outcomes Pillar
// USER_PATHS
} from "./paths";
Expand All @@ -24,6 +25,12 @@ export const NAV_ITEMS = [
navTo: PATHS.dRepDirectory,
label: i18n.t("dRepDirectory.title"),
},
{
dataTestId: "budget-discussion-link",
navTo: BUDGET_DISCUSSION_PATHS.budgetDiscussion,
label: i18n.t("budgetDiscussion.title"),
newTabLink: null,
},
{
dataTestId: "proposed-governance-actions-link",
navTo: PDF_PATHS.proposalDiscussion,
Expand Down Expand Up @@ -73,6 +80,14 @@ export const CONNECTED_NAV_ITEMS = [
icon: ICONS.dRepDirectoryIcon,
newTabLink: null,
},
{
dataTestId: "budget-discussion-link",
label: i18n.t("budgetDiscussion.title"),
navTo: BUDGET_DISCUSSION_PATHS.budgetDiscussion,
activeIcon: ICONS.dRepDirectoryActiveIcon,
icon: ICONS.dRepDirectoryIcon,
newTabLink: null,
},
{
dataTestId: "governance-actions-link",
label: i18n.t("govActions.title"),
Expand Down
10 changes: 10 additions & 0 deletions govtool/frontend/src/consts/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ export const PDF_PATHS = {
proposalDiscussionPropose: "/proposal_discussion/propose",
};

export const BUDGET_DISCUSSION_PATHS = {
budgetDiscussion: "/budget_discussion",
budgetDiscussionProposal: "/budget_discussion/:id",
budgetDiscussionPropose: "/budget_discussion/propose",
budgetDiscussionAction: "/budget_discussion/:proposalId",
budgetDiscussionCategory: "/budget_discussion/category/:category",
budgetDiscussionCategoryAction:
"/budget_discussion/category/:category/:proposalId",
};

export const USER_PATHS = {
governanceActionsVotedByMe: "/my/votes_and_favorites",
};
Expand Down
3 changes: 3 additions & 0 deletions govtool/frontend/src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
"title": "Proposals",
"proposeAGovernanceAction": "Propose a Governance Action"
},
"budgetDiscussion": {
"title": "Budget Discussion"
},
"govActions": {
"about": "About",
"abstract": "Abstract",
Expand Down
19 changes: 15 additions & 4 deletions govtool/frontend/src/pages/GovernanceActionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import {
generatePath,
} from "react-router-dom";
import { Box, CircularProgress, Link } from "@mui/material";
import { AxiosError } from "axios";

import { Background, Typography } from "@atoms";
import { ICONS, PATHS } from "@consts";
import { ICONS, OUTCOMES_PATHS, PATHS } from "@consts";
import { useCardano } from "@context";
import {
useGetProposalQuery,
Expand Down Expand Up @@ -45,18 +46,28 @@ export const GovernanceActionDetails = () => {
const fullProposalId = txHash && getFullGovActionId(txHash, index);
const shortenedGovActionId = txHash && getShortenedGovActionId(txHash, index);

const { data, isLoading } = useGetProposalQuery(
const { data, isLoading, error } = useGetProposalQuery(
fullProposalId ?? "",
!state?.proposal,
);
const proposal = (data ?? state)?.proposal;

useEffect(() => {
if (isEnabled && getItemFromLocalStorage(`${WALLET_LS_KEY}_stake_key`)) {
const isProposalNotFound =
(error as AxiosError)?.response?.data ===
`Proposal with id: ${fullProposalId} not found`;
if (isProposalNotFound && fullProposalId) {
navigate(
OUTCOMES_PATHS.governanceActionOutcomes.replace(":id", fullProposalId),
);
} else if (
isEnabled &&
getItemFromLocalStorage(`${WALLET_LS_KEY}_stake_key`)
) {
const { pathname } = window.location;
navigate(`/connected${pathname}`);
}
}, [isEnabled]);
}, [isEnabled, error]);

return (
<Background opacity={0.7}>
Expand Down
57 changes: 31 additions & 26 deletions govtool/frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1377,10 +1377,10 @@
resolved "https://registry.npmjs.org/@emurgo/cardano-serialization-lib-asmjs/-/cardano-serialization-lib-asmjs-14.1.1.tgz"
integrity sha512-Q2HVpPRt417Quxv3qagGWbkJQU8SiQCl1K/344ZtQMwsLoqTfRlCNzmSWMBN7jyBxbtKoh+vdbSiLqwG1NAjYg==

"@esbuild/darwin-arm64@0.25.0":
"@esbuild/linux-x64@0.25.0":
version "0.25.0"
resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.0.tgz"
integrity sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==
resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.0.tgz"
integrity sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==

"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0":
version "4.4.1"
Expand Down Expand Up @@ -1512,10 +1512,10 @@
resolved "https://registry.npmjs.org/@intersect.mbo/intersectmbo.org-icons-set/-/intersectmbo.org-icons-set-1.1.0.tgz"
integrity sha512-sjKEtnK9eLYH/8kCD0YRQCms3byFA/tnSsei9NHTZbBYX9sBpeX6ErfR0sKYjOSxQOxl4FumX9D0X+vHIqxo8g==

"@intersect.mbo/pdf-ui@0.6.4":
version "0.6.4"
resolved "https://registry.npmjs.org/@intersect.mbo/pdf-ui/-/pdf-ui-0.6.4.tgz"
integrity sha512-KWnbwn9VQwTuQ+POFX6VtA+e7zmotq/kBJmfXux5i2XPQz9PB1Ia/L6mPPr82Gf0x0R2MSU1nZLsSeSl6QE64A==
"@intersect.mbo/pdf-ui@0.7.0-beta-2":
version "0.7.0-beta-2"
resolved "https://registry.npmjs.org/@intersect.mbo/pdf-ui/-/pdf-ui-0.7.0-beta-2.tgz"
integrity sha512-GDx7qpzs6kOc9DYPYnFCsTaSLyiQTqQulX9RKM1IsbS/fvaVR5/P9xRScfpVDbix98eyoXWsoOwBHrHDGlJ4GA==
dependencies:
"@emurgo/cardano-serialization-lib-asmjs" "^12.0.0-beta.2"
"@fontsource/poppins" "^5.0.14"
Expand Down Expand Up @@ -2173,10 +2173,15 @@
resolved "https://registry.npmjs.org/@open-draft/until/-/until-2.1.0.tgz"
integrity sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==

"@parcel/watcher-darwin-arm64@2.5.0":
"@parcel/watcher-linux-x64-glibc@2.5.0":
version "2.5.0"
resolved "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.0.tgz"
integrity sha512-d9AOkusyXARkFD66S6zlGXyzx5RvY+chTP9Jp0ypSTC9d4lzyRs9ovGf/80VCxjKddcUvnsGwCHWuF2EoPgWjw==

"@parcel/watcher-linux-x64-musl@2.5.0":
version "2.5.0"
resolved "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.0.tgz"
integrity sha512-hyZ3TANnzGfLpRA2s/4U1kbw2ZI4qGxaRJbBH2DCSREFfubMswheh8TeiC1sGZ3z2jUf3s37P0BBlrD3sjVTUw==
resolved "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.0.tgz"
integrity sha512-iqOC+GoTDoFyk/VYSFHwjHhYrk8bljW6zOhPuhi5t9ulqiYq1togGJB5e3PwYVFFfeVgc6pbz3JdQyDoBszVaA==

"@parcel/watcher@^2.4.1":
version "2.5.0"
Expand Down Expand Up @@ -2289,10 +2294,15 @@
estree-walker "^2.0.2"
picomatch "^4.0.2"

"@rollup/rollup-darwin-arm64@4.34.9":
"@rollup/rollup-linux-x64-gnu@4.34.9":
version "4.34.9"
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.34.9.tgz"
integrity sha512-FwBHNSOjUTQLP4MG7y6rR6qbGw4MFeQnIBrMe161QGaQoBQLqSUEKlHIiVgF3g/mb3lxlxzJOpIBhaP+C+KP2A==

"@rollup/rollup-linux-x64-musl@4.34.9":
version "4.34.9"
resolved "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.34.9.tgz"
integrity sha512-0CY3/K54slrzLDjOA7TOjN1NuLKERBgk9nY5V34mhmuu673YNb+7ghaDUs6N0ujXR7fz5XaS5Aa6d2TNxZd0OQ==
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.34.9.tgz"
integrity sha512-cYRpV4650z2I3/s6+5/LONkjIz8MBeqrk+vPXV10ORBnshpn8S32bPqQ2Utv39jCiDcO2eJTuSlPXpnvmaIgRA==

"@rtsao/scc@^1.1.0":
version "1.1.0"
Expand Down Expand Up @@ -2895,10 +2905,15 @@
"@svgr/plugin-svgo" "^5.5.0"
loader-utils "^2.0.0"

"@swc/core-darwin-arm64@1.9.3":
"@swc/core-linux-x64-gnu@1.9.3":
version "1.9.3"
resolved "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.9.3.tgz"
integrity sha512-hGfl/KTic/QY4tB9DkTbNuxy5cV4IeejpPD4zo+Lzt4iLlDWIeANL4Fkg67FiVceNJboqg48CUX+APhDHO5G1w==
resolved "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.9.3.tgz"
integrity sha512-ivXXBRDXDc9k4cdv10R21ccBmGebVOwKXT/UdH1PhxUn9m/h8erAWjz5pcELwjiMf27WokqPgaWVfaclDbgE+w==

"@swc/core-linux-x64-musl@1.9.3":
version "1.9.3"
resolved "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.9.3.tgz"
integrity sha512-ILsGMgfnOz1HwdDz+ZgEuomIwkP1PHT6maigZxaCIuC6OPEhKE8uYna22uU63XvYcLQvZYDzpR3ms47WQPuNEg==

"@swc/core@*", "@swc/core@^1.5.22", "@swc/core@^1.7.26":
version "1.9.3"
Expand Down Expand Up @@ -7201,16 +7216,6 @@ fs@^0.0.1-security:
resolved "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz"
integrity sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==

fsevents@^2.3.2, fsevents@~2.3.2, fsevents@~2.3.3:
version "2.3.3"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz"
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==

fsevents@2.3.2:
version "2.3.2"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==

function-bind@^1.1.2:
version "1.1.2"
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"
Expand Down
4 changes: 2 additions & 2 deletions govtool/metadata-validation/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion govtool/metadata-validation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@govtool/metadata-validation",
"version": "2.0.18",
"version": "2.0.19",
"description": "",
"author": "",
"private": true,
Expand Down
Loading
Loading