diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 470f9416..d0c64845 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -79,7 +79,6 @@ jobs: set -o pipefail sudo chmod +x lint.sh && ./lint.sh 2>&1 | tee code_lint_output.txt - - name: Unit tests id: unit_tests run: | @@ -127,15 +126,15 @@ jobs: - name: Scan Docker image with Dockle id: dockle run: | - wget -q https://github.com/goodwithtech/dockle/releases/download/v0.4.14/dockle_0.4.14_Linux-64bit.tar.gz - tar zxf dockle_0.4.14_Linux-64bit.tar.gz - sudo mv dockle /usr/local/bin + wget -q https://github.com/goodwithtech/dockle/releases/download/v0.4.14/dockle_0.4.14_Linux-64bit.tar.gz + tar zxf dockle_0.4.14_Linux-64bit.tar.gz + sudo mv dockle /usr/local/bin - dockle --exit-code 1 --exit-level fatal --format json --input '/tmp/image-${{ matrix.name }}-${{ github.sha }}-pr.tar' --output ${{ matrix.workdir }}/dockle_scan_output.json - rm -rf '/tmp/image-${{ matrix.name }}-${{ github.sha }}-pr.tar' - cat ${{ matrix.workdir }}/dockle_scan_output.json + dockle --exit-code 1 --exit-level fatal --format json --input '/tmp/image-${{ matrix.name }}-${{ github.sha }}-pr.tar' --output ${{ matrix.workdir }}/dockle_scan_output.json + rm -rf '/tmp/image-${{ matrix.name }}-${{ github.sha }}-pr.tar' + cat ${{ matrix.workdir }}/dockle_scan_output.json - echo "outcome=success" >> $GITHUB_OUTPUT + echo "outcome=success" >> $GITHUB_OUTPUT - name: Create PR comment if: always() diff --git a/frontend/messages/de.json b/frontend/messages/de.json index 4e4d1360..771fa703 100644 --- a/frontend/messages/de.json +++ b/frontend/messages/de.json @@ -15,9 +15,11 @@ "title": "Cardano-Verfassung", "drawer": { "compare": "Vergleichen", - "latestRevisions": "Latest Revisions", + "versionHistory": "Version History", "tableOfContents": "Contents", - "latest": "Latest" + "latest": "Latest", + "uploadNewVersion": "Upload new version", + "backToContents": "Back to contents" } }, "Members": { @@ -204,10 +206,10 @@ "description": "Please provide rationale for your vote on specific governance action.", "fields": { "title": { - "label": "Title" + "label": "Summary" }, "rationale": { - "label": "Rationale" + "label": "Rationale Statement" } }, "alerts": { diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 7e3c9b36..345898db 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -16,7 +16,7 @@ "drawer": { "compare": "Compare", "latestRevisions": "Latest Revisions", - "tableOfContents": "Contents", + "tableOfContents": "Content", "latest": "Latest" } }, @@ -204,10 +204,10 @@ "description": "Please provide rationale for your vote on specific governance action.", "fields": { "title": { - "label": "Title" + "label": "Summary" }, "rationale": { - "label": "Rationale" + "label": "Rationale Statement" } }, "alerts": { diff --git a/frontend/public/icons/DocumentSearch.svg b/frontend/public/icons/DocumentSearch.svg new file mode 100644 index 00000000..6e726f38 --- /dev/null +++ b/frontend/public/icons/DocumentSearch.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/public/icons/Eye.svg b/frontend/public/icons/Eye.svg new file mode 100644 index 00000000..8dd41185 --- /dev/null +++ b/frontend/public/icons/Eye.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/app/[locale]/interim-constitution/layout.tsx b/frontend/src/app/[locale]/interim-constitution/layout.tsx index 740fcaaf..95004f6f 100644 --- a/frontend/src/app/[locale]/interim-constitution/layout.tsx +++ b/frontend/src/app/[locale]/interim-constitution/layout.tsx @@ -2,9 +2,13 @@ import { customPalette } from "@/constants"; import { Box } from "@mui/material"; export default function ConstitutionLayout({ - children + children, }: { children: React.ReactNode; }) { - return {children}; + return ( + + {children} + + ); } diff --git a/frontend/src/app/[locale]/interim-constitution/version-history/page.tsx b/frontend/src/app/[locale]/interim-constitution/version-history/page.tsx new file mode 100644 index 00000000..76a6c254 --- /dev/null +++ b/frontend/src/app/[locale]/interim-constitution/version-history/page.tsx @@ -0,0 +1,34 @@ +import { ContentWrapper } from "@/components/atoms"; +import { VersionHistory } from "@/components/organisms/Constitution/VersionHistory"; +import { getConstitutionMetadata } from "@/lib/api"; +import { Loading } from "@molecules"; +import { Footer, NotFound, TopNav } from "@organisms"; +import { isResponseErrorI } from "@utils"; +import { Suspense } from "react"; + +export default async function VersionHistoryPage() { + const metadata = await getConstitutionMetadata(); + + return ( + <> + + }> + {metadata && !isResponseErrorI(metadata) ? ( + + + + ) : ( + <> + + + +