diff --git a/CHANGELOG.md b/CHANGELOG.md index c3703cc65..4f1415220 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ changes. - Bump @intersect.mbo/pdf-ui to v0.3.7 - Decrease level of wallet related sentry reports [Issue 1699](https://github.com/IntersectMBO/govtool/issues/1699) - Bump cardano-db-sync to 13.3.0.0 [Issue 1809](https://github.com/IntersectMBO/govtool/issues/1809) +- 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..5240b37e0 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/retire-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..a32e9a2f9 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/direct-voting", ), }, ], 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..76dd9167f 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/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 b7668210f..0e7557513 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("givenName").replace(/\s/g, ""); 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 0cc27b7c2..a87883656 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 b28f0a87a..a84e3b044 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", @@ -736,7 +736,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: {