Skip to content

Commit

Permalink
Merge pull request #1263 from IntersectMBO/feat/1246-update-link-to-docs
Browse files Browse the repository at this point in the history
feat(#1246): update link to docs
  • Loading branch information
MSzalowski authored Jun 12, 2024
2 parents 047fb22 + 002734a commit 42a9010
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ changes.
- Change input selection strategy to 3 (random) [Issue 575](https://github.com/IntersectMBO/govtool/issues/575)
- Changed documents to prepare for open source [Issue 737](https://github.com/IntersectMBO/govtool/issues/737)
- Changed copy on maintenance page [Issue 753](https://github.com/IntersectMBO/govtool/issues/753)
- Update link to docs [Issue 1246](https://github.com/IntersectMBO/govtool/issues/1246)

### Removed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ export const AutomatedVotingOptions = ({

const { networkMetrics } = useGetNetworkMetrics();

// TODO: Change to certain automated voted option if available
const onClickInfo = () => openInNewTab("https://docs.sanchogov.tools/");

const isDelegatedToAbstain =
currentDelegation ===
AutomatedVotingOptionCurrentDelegation.drep_always_abstain;
Expand Down Expand Up @@ -117,7 +114,11 @@ export const AutomatedVotingOptions = ({
onClickDelegate={() =>
delegate(AutomatedVotingOptionDelegationId.abstain)
}
onClickInfo={onClickInfo}
onClickInfo={() =>
openInNewTab(
"https://docs.sanchogov.tools/how-to-use-the-govtool/using-govtool/delegating-overview/abstain-from-every-vote",
)
}
title={
isDelegatedToAbstain
? t("dRepDirectory.delegatedToAbstainTitle", {
Expand Down Expand Up @@ -156,7 +157,11 @@ export const AutomatedVotingOptions = ({
onClickDelegate={() =>
delegate(AutomatedVotingOptionDelegationId.no_confidence)
}
onClickInfo={onClickInfo}
onClickInfo={() =>
openInNewTab(
"https://docs.sanchogov.tools/how-to-use-the-govtool/using-govtool/delegating-overview/signal-no-confidence-on-every-vote",
)
}
title={
isDelegatedToNoConfidence
? t("dRepDirectory.delegatedToNoConfidenceTitle", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const DirectVoterDashboardCard = ({
dataTestId: "learn-more-button",
onClick: () =>
openInNewTab(
"https://docs.sanchogov.tools/faqs/what-does-it-mean-to-register-as-a-drep",
"https://docs.sanchogov.tools/how-to-use-the-govtool/using-govtool/direct-voting",
),
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export const ListGovActionsDashboardCards = () => {
{
children: t("learnMore"),
dataTestId: "learn-more-governance-actions-button",
onClick: () => openInNewTab("https://sancho.network/actions"),
onClick: () =>
openInNewTab(
"https://docs.sanchogov.tools/how-to-use-the-govtool/using-govtool/governance-actions-view-and-vote",
),
variant: "outlined",
},
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const ProposeGovActionDashboardCard = ({
dataTestId: "learn-more-button",
onClick: () =>
openInNewTab(
"https://docs.sanchogov.tools/faqs/what-is-a-governance-action",
"https://docs.sanchogov.tools/how-to-use-the-govtool/using-govtool/propose-a-governance-action",
),
},
]}
Expand Down
2 changes: 1 addition & 1 deletion govtool/frontend/src/components/organisms/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const Footer = () => {

// TODO: change term of service link
const onClickTermOfService = () =>
openInNewTab("https://docs.sanchogov.tools/legal/privacy-policy");
openInNewTab("https://docs.sanchogov.tools/legal/terms-and-conditions");

const onClickFeedback = () => openFeedbackWindow();

Expand Down
10 changes: 6 additions & 4 deletions govtool/frontend/src/components/organisms/HomeCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ export const HomeCards = () => {
"https://docs.sanchogov.tools/faqs/what-does-it-mean-to-register-as-a-drep",
);

// TODO: Update the link
const onClickLearnMoreAboutDirectVoterRegistration = () =>
openInNewTab("https://docs.sanchogov.tools/");
openInNewTab(
"https://docs.sanchogov.tools/how-to-use-the-govtool/using-govtool/direct-voting",
);

// TODO: Update the link
const onClickLearnMoreAboutProposingGovAction = () =>
openInNewTab("https://docs.sanchogov.tools/");
openInNewTab(
"https://docs.sanchogov.tools/how-to-use-the-govtool/using-govtool/propose-a-governance-action",
);

const navigateToGovActions = useCallback(
() => navigate(PATHS.governanceActions),
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 @@ -456,8 +456,9 @@ export const en = {
partTwo: "does not exist.",
},
tooltips: {
info: "An action that has no effect on-chain, other than an on-chain record",
treasury: "Withdrawals from the treasury",
info: "An action that doesn't have any on-chain impact except for being recorded on-chain.",
treasury:
"Treasury withdrawals are sub-categorized into small, medium, or large and are determined by the amount of lovelace to be withdrawn.",
},
type: {
noConfidence: {
Expand Down

0 comments on commit 42a9010

Please sign in to comment.