Skip to content

Commit

Permalink
Merge pull request #1814 from IntersectMBO/fix/1774-check-all-links-f…
Browse files Browse the repository at this point in the history
…rom-govtool-to-gitbook

fix(#1774): fix & update gitbook links
  • Loading branch information
MSzalowski authored Aug 26, 2024
2 parents fe370fe + 8b51e0e commit 1fdc652
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 28 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ export const DataMissingInfoBox = ({
</Typography>
<Link
onClick={() =>
// 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={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down Expand Up @@ -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={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
};

Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
};

Expand Down Expand Up @@ -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",
),
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
},
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down
1 change: 0 additions & 1 deletion govtool/frontend/src/components/organisms/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
6 changes: 3 additions & 3 deletions govtool/frontend/src/components/organisms/HomeCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
4 changes: 2 additions & 2 deletions govtool/frontend/src/consts/navItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions govtool/frontend/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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. <docs>Learn more</docs>"
bootstrappingWarning:
"Govtool is in the Bootstrapping phase. Some features are not available. <docs>Learn more</docs>",
},
tooltips: {
delegateTodRep: {
Expand Down

0 comments on commit 1fdc652

Please sign in to comment.