From 7f5f57cb0baaf7ab222846cfdf7a9e51642a7d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Sat, 24 Aug 2024 11:10:46 +0200 Subject: [PATCH] fix(#1774): fix & update gitbook links --- CHANGELOG.md | 1 + .../src/components/molecules/DataMissingInfoBox.tsx | 3 +-- .../src/components/organisms/AutomatedVotingOptions.tsx | 4 ++-- .../organisms/CreateGovernanceActionSteps/StoreDataInfo.tsx | 6 ++++-- .../organisms/DashboardCards/DRepDashboardCard.tsx | 4 ++-- .../organisms/DashboardCards/DirectVoterDashboardCard.tsx | 4 ++-- .../DashboardCards/ListGovActionsDashboardCard.tsx | 2 +- .../DashboardCards/ProposeGovActionDashboardCard.tsx | 2 +- .../organisms/EditDRepInfoSteps/EditDRepStoreDataInfo.tsx | 6 ++++-- govtool/frontend/src/components/organisms/Footer.tsx | 1 - govtool/frontend/src/components/organisms/HomeCards.tsx | 6 +++--- .../RegisterAsDRepSteps/DRepStorageInformation.tsx | 4 +++- .../organisms/RegisterAsDRepSteps/DRepStoreDataInfo.tsx | 6 ++++-- .../RegisterAsDRepSteps/RolesAndResponsibilities.tsx | 4 +++- .../components/organisms/VoteContext/VoteContextTerms.tsx | 6 ++++-- govtool/frontend/src/consts/navItems.tsx | 4 ++-- govtool/frontend/src/i18n/locales/en.ts | 5 +++-- 17 files changed, 40 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa353380c..292f285fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ changes. ### Changed - Bump @intersect.mbo/pdf-ui to v0.3.7 +- Update Gitbook links [Issue 1774](https://github.com/IntersectMBO/govtool/issues/1774) ## [sancho-v1.0.13](https://github.com/IntersectMBO/govtool/releases/tag/sancho-v1.0.13) 2024-08-22 diff --git a/govtool/frontend/src/components/molecules/DataMissingInfoBox.tsx b/govtool/frontend/src/components/molecules/DataMissingInfoBox.tsx index 401ab0f7f..2f5c190c5 100644 --- a/govtool/frontend/src/components/molecules/DataMissingInfoBox.tsx +++ b/govtool/frontend/src/components/molecules/DataMissingInfoBox.tsx @@ -79,9 +79,8 @@ export const DataMissingInfoBox = ({ - // TODO: Add the correct link openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/getting-started/get-a-compatible-wallet", + "https://docs.gov.tools/using-govtool/govtool-functions/dreps/drep-error-conditions", ) } sx={{ diff --git a/govtool/frontend/src/components/organisms/AutomatedVotingOptions.tsx b/govtool/frontend/src/components/organisms/AutomatedVotingOptions.tsx index 801d301f4..4b84380e8 100644 --- a/govtool/frontend/src/components/organisms/AutomatedVotingOptions.tsx +++ b/govtool/frontend/src/components/organisms/AutomatedVotingOptions.tsx @@ -120,7 +120,7 @@ export const AutomatedVotingOptions = ({ } onClickInfo={() => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/delegating-overview/abstain-from-every-vote", + "https://docs.gov.tools/using-govtool/govtool-functions/delegating/abstain-from-every-vote", ) } title={ @@ -163,7 +163,7 @@ export const AutomatedVotingOptions = ({ } onClickInfo={() => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/delegating-overview/signal-no-confidence-on-every-vote", + "https://docs.gov.tools/using-govtool/govtool-functions/delegating/signal-no-confidence-on-every-vote", ) } title={ diff --git a/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StoreDataInfo.tsx b/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StoreDataInfo.tsx index 961a23b2c..9beb1f9e1 100644 --- a/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StoreDataInfo.tsx +++ b/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StoreDataInfo.tsx @@ -20,8 +20,10 @@ export const StoreDataInfo = ({ setStep }: StoreDataInfoProps) => { const { control, errors, watch } = useCreateGovernanceActionForm(); const { isMobile } = useScreenDimension(); - // TODO: change link when available - const openLink = () => openInNewTab("https://docs.gov.tools"); + const openLink = () => + openInNewTab( + "https://docs.gov.tools/using-govtool/govtool-functions/storing-information-offline", + ); const isContinueDisabled = !watch("storeData"); diff --git a/govtool/frontend/src/components/organisms/DashboardCards/DRepDashboardCard.tsx b/govtool/frontend/src/components/organisms/DashboardCards/DRepDashboardCard.tsx index e8c179bdc..a9875b728 100644 --- a/govtool/frontend/src/components/organisms/DashboardCards/DRepDashboardCard.tsx +++ b/govtool/frontend/src/components/organisms/DashboardCards/DRepDashboardCard.tsx @@ -37,7 +37,7 @@ export const DRepDashboardCard = ({ dataTestId: "d-rep-learn-more-button", onClick: () => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/dreps", + "https://docs.gov.tools/using-govtool/govtool-functions/dreps/register-as-a-drep", ), }; @@ -120,7 +120,7 @@ export const DRepDashboardCard = ({ dataTestId: "register-learn-more-button", onClick: () => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/dreps/retire-as-a-drep", + "https://docs.gov.tools/using-govtool/govtool-functions/dreps/register-as-a-drep", ), } : learnMoreButton, diff --git a/govtool/frontend/src/components/organisms/DashboardCards/DirectVoterDashboardCard.tsx b/govtool/frontend/src/components/organisms/DashboardCards/DirectVoterDashboardCard.tsx index ca2cf00b0..c1c1a9aec 100644 --- a/govtool/frontend/src/components/organisms/DashboardCards/DirectVoterDashboardCard.tsx +++ b/govtool/frontend/src/components/organisms/DashboardCards/DirectVoterDashboardCard.tsx @@ -31,7 +31,7 @@ export const DirectVoterDashboardCard = ({ dataTestId: "direct-voter-learn-more-button", onClick: () => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/direct-voting", + "https://docs.gov.tools/using-govtool/govtool-functions/direct-voting", ), }; @@ -98,7 +98,7 @@ export const DirectVoterDashboardCard = ({ dataTestId: "learn-more-button", onClick: () => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/dreps/retire-as-a-drep", + "https://docs.gov.tools/using-govtool/govtool-functions/dreps/register-as-a-drep", ), }, ], diff --git a/govtool/frontend/src/components/organisms/DashboardCards/ListGovActionsDashboardCard.tsx b/govtool/frontend/src/components/organisms/DashboardCards/ListGovActionsDashboardCard.tsx index c858dd365..00973c58d 100644 --- a/govtool/frontend/src/components/organisms/DashboardCards/ListGovActionsDashboardCard.tsx +++ b/govtool/frontend/src/components/organisms/DashboardCards/ListGovActionsDashboardCard.tsx @@ -23,7 +23,7 @@ export const ListGovActionsDashboardCards = () => { dataTestId: "list-gov-actions-learn-more-button", onClick: () => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/governance-actions", + "https://docs.gov.tools/using-govtool/govtool-functions/governance-actions/view-governance-actions", ), variant: "outlined", }, diff --git a/govtool/frontend/src/components/organisms/DashboardCards/ProposeGovActionDashboardCard.tsx b/govtool/frontend/src/components/organisms/DashboardCards/ProposeGovActionDashboardCard.tsx index b0bea1bee..a3e13a6e1 100644 --- a/govtool/frontend/src/components/organisms/DashboardCards/ProposeGovActionDashboardCard.tsx +++ b/govtool/frontend/src/components/organisms/DashboardCards/ProposeGovActionDashboardCard.tsx @@ -54,7 +54,7 @@ export const ProposeGovActionDashboardCard = ({ dataTestId: "propose-gov-action-learn-more-button", onClick: () => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/governance-actions/propose-a-governance-action", + "https://docs.gov.tools/using-govtool/govtool-functions/governance-actions/view-governance-actions/propose-a-governance-action", ), }, ]} diff --git a/govtool/frontend/src/components/organisms/EditDRepInfoSteps/EditDRepStoreDataInfo.tsx b/govtool/frontend/src/components/organisms/EditDRepInfoSteps/EditDRepStoreDataInfo.tsx index 6ae7e258f..e7fe54d7e 100644 --- a/govtool/frontend/src/components/organisms/EditDRepInfoSteps/EditDRepStoreDataInfo.tsx +++ b/govtool/frontend/src/components/organisms/EditDRepInfoSteps/EditDRepStoreDataInfo.tsx @@ -27,8 +27,10 @@ export const EditDRepStoreDataInfo = ({ const isContinueDisabled = !watch("storeData"); - // TODO: Add link about store data when available - const openLink = () => openInNewTab("https://sancho.network/get-started"); + const openLink = () => + openInNewTab( + "https://docs.gov.tools/using-govtool/govtool-functions/storing-information-offline", + ); return ( <> diff --git a/govtool/frontend/src/components/organisms/Footer.tsx b/govtool/frontend/src/components/organisms/Footer.tsx index 10b010aa0..d758cbd0f 100644 --- a/govtool/frontend/src/components/organisms/Footer.tsx +++ b/govtool/frontend/src/components/organisms/Footer.tsx @@ -40,7 +40,6 @@ export const Footer = () => { const onClickPrivacyPolicy = () => openInNewTab("https://docs.gov.tools/legal/privacy-policy"); - // TODO: change term of service link const onClickTermOfService = () => openInNewTab("https://docs.gov.tools/legal/terms-and-conditions"); diff --git a/govtool/frontend/src/components/organisms/HomeCards.tsx b/govtool/frontend/src/components/organisms/HomeCards.tsx index ba725fd7c..e50713b10 100644 --- a/govtool/frontend/src/components/organisms/HomeCards.tsx +++ b/govtool/frontend/src/components/organisms/HomeCards.tsx @@ -34,17 +34,17 @@ export const HomeCards = () => { const onClickLearnMoreAboutDRepRegistration = () => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/dreps", + "https://docs.gov.tools/using-govtool/govtool-functions/dreps/register-as-a-drep", ); const onClickLearnMoreAboutDirectVoterRegistration = () => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/direct-voting", + "https://docs.gov.tools/using-govtool/govtool-functions/direct-voting", ); const onClickLearnMoreAboutProposingGovAction = () => openInNewTab( - "https://docs.gov.tools/how-to-use-the-govtool/using-govtool/governance-actions/propose-a-governance-action", + "https://docs.gov.tools/using-govtool/govtool-functions/governance-actions/view-governance-actions/propose-a-governance-action", ); const navigateToGovActions = useCallback( diff --git a/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/DRepStorageInformation.tsx b/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/DRepStorageInformation.tsx index 89536385a..55e2d0847 100644 --- a/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/DRepStorageInformation.tsx +++ b/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/DRepStorageInformation.tsx @@ -36,7 +36,9 @@ export const DRepStorageInformation = ({ const fileName = getValues("dRepName"); const openGuideAboutStoringInformation = () => - openInNewTab("https://docs.gov.tools/faqs/how-to-create-a-metadata-anchor"); + openInNewTab( + "https://docs.gov.tools/using-govtool/govtool-functions/storing-information-offline", + ); const isActionButtonDisabled = !watch("storingURL") || !!errors.storingURL; diff --git a/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/DRepStoreDataInfo.tsx b/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/DRepStoreDataInfo.tsx index 21d28054c..a05696d7c 100644 --- a/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/DRepStoreDataInfo.tsx +++ b/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/DRepStoreDataInfo.tsx @@ -27,8 +27,10 @@ export const DRepStoreDataInfo = ({ const onClickContinue = () => setStep(4); - // TODO: Add link about store data when available - const openLink = () => openInNewTab("https://sancho.network/get-started"); + const openLink = () => + openInNewTab( + "https://docs.gov.tools/using-govtool/govtool-functions/storing-information-offline", + ); return ( <> diff --git a/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/RolesAndResponsibilities.tsx b/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/RolesAndResponsibilities.tsx index f1e322812..d23269903 100644 --- a/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/RolesAndResponsibilities.tsx +++ b/govtool/frontend/src/components/organisms/RegisterAsDRepSteps/RolesAndResponsibilities.tsx @@ -25,7 +25,9 @@ export const RolesAndResponsibilities = ({ const onClickContinue = () => setStep(2); const openLearnMoreAboutDrep = () => - openInNewTab("https://sancho.network/roles/drep"); + openInNewTab( + "https://docs.gov.tools/using-govtool/govtool-functions/dreps", + ); return ( <> diff --git a/govtool/frontend/src/components/organisms/VoteContext/VoteContextTerms.tsx b/govtool/frontend/src/components/organisms/VoteContext/VoteContextTerms.tsx index 7175dfd79..a98a948c8 100644 --- a/govtool/frontend/src/components/organisms/VoteContext/VoteContextTerms.tsx +++ b/govtool/frontend/src/components/organisms/VoteContext/VoteContextTerms.tsx @@ -16,8 +16,10 @@ export const VoteContextTerms = ({ setStep, onCancel }: StoreDataInfoProps) => { const { control, errors, watch } = useVoteContextForm(); const { isMobile } = useScreenDimension(); - // TODO: change link when available - const openLink = () => openInNewTab("https://docs.gov.tools"); + const openLink = () => + openInNewTab( + "https://docs.gov.tools/using-govtool/govtool-functions/storing-information-offline", + ); const isContinueDisabled = !watch("terms"); diff --git a/govtool/frontend/src/consts/navItems.tsx b/govtool/frontend/src/consts/navItems.tsx index 4961791d6..c544fff52 100644 --- a/govtool/frontend/src/consts/navItems.tsx +++ b/govtool/frontend/src/consts/navItems.tsx @@ -33,7 +33,7 @@ export const NAV_ITEMS = [ dataTestId: "guides-link", navTo: "", label: i18n.t("menu.guides"), - newTabLink: "https://docs.gov.tools/about/what-is-sanchonet-govtool", + newTabLink: "https://docs.gov.tools/", }, { dataTestId: "faqs-link", @@ -95,7 +95,7 @@ export const CONNECTED_NAV_ITEMS = [ navTo: "", activeIcon: ICONS.guidesActiveIcon, icon: ICONS.guidesIcon, - newTabLink: "https://docs.gov.tools/about/what-is-sanchonet-govtool", + newTabLink: "https://docs.gov.tools/", }, { dataTestId: "faqs-link", diff --git a/govtool/frontend/src/i18n/locales/en.ts b/govtool/frontend/src/i18n/locales/en.ts index 2e7dff9da..5944948c1 100644 --- a/govtool/frontend/src/i18n/locales/en.ts +++ b/govtool/frontend/src/i18n/locales/en.ts @@ -348,7 +348,7 @@ export const en = { footer: { copyright: "© 2024 Intersect MBO", privacyPolicy: "Privacy policy", - termOfService: "Term of service", + termOfService: "Terms and Conditions", }, forms: { link: "Link", @@ -745,7 +745,8 @@ export const en = { description: "The Voltaire GovTool is a tool that allows you to participate in the governance of the Cardano network. You can propose, vote on, and delegate your voting power to other users.", title: "This tool is connected to {{networkName}}", - bootstrappingWarning: "Govtool is in the Bootstrapping phase. Some features are not available. Learn more" + bootstrappingWarning: + "Govtool is in the Bootstrapping phase. Some features are not available. Learn more", }, tooltips: { delegateTodRep: {