From bef6f2eeed4b79d5b04589d1feb3f0a3f13ebf32 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Thu, 1 Feb 2024 09:53:02 +0100 Subject: [PATCH] SONAR-21557 Update Clean Code docs page links --- .../js/apps/coding-rules/components/ActivationFormModal.tsx | 5 ++++- .../main/js/apps/coding-rules/components/RuleListItem.tsx | 2 +- .../main/js/apps/coding-rules/components/SeverityFacet.tsx | 2 +- .../src/main/js/apps/issues/components/IssueGuide.tsx | 2 +- .../src/main/js/apps/issues/sidebar/SeverityFacet.tsx | 2 +- .../src/main/js/components/shared/CleanCodeAttributePill.tsx | 2 +- .../src/main/js/components/shared/SoftwareImpactPill.tsx | 2 +- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/ActivationFormModal.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/ActivationFormModal.tsx index 179ed09ac33..37ccc4cc98a 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/ActivationFormModal.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/ActivationFormModal.tsx @@ -117,7 +117,10 @@ export default function ActivationFormModal(props: Readonly) { {translate('coding_rules.severity_deprecated')} - + {translate('learn_more')} diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx index 3975b512ca7..eab02e846c3 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx @@ -254,7 +254,7 @@ export default class RuleListItem extends React.PureComponent { } links={[ { - href: '/user-guide/clean-code', + href: '/user-guide/clean-code/introduction', label: translate('learn_more'), }, ]} diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/SeverityFacet.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/SeverityFacet.tsx index fb66748a451..39caf9fa265 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/SeverityFacet.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/SeverityFacet.tsx @@ -59,7 +59,7 @@ export default function SeverityFacet(props: BasicProps) { } links={[ { - href: '/user-guide/clean-code', + href: '/user-guide/clean-code/introduction', label: translate('learn_more'), }, ]} diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssueGuide.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssueGuide.tsx index 248cf7b7bc8..d0b5a7e7890 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssueGuide.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssueGuide.tsx @@ -127,7 +127,7 @@ export default function IssueGuide({ run }: Props) { defaultMessage={translate('guiding.issue_list.5.content')} values={{ link: ( - + {translate('documentation')} ), diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx index 51e3944c980..5ee99e70149 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx @@ -53,7 +53,7 @@ export function SeverityFacet(props: Props) { } links={[ { - href: '/user-guide/clean-code', + href: '/user-guide/clean-code/introduction', label: translate('learn_more'), }, ]} diff --git a/server/sonar-web/src/main/js/components/shared/CleanCodeAttributePill.tsx b/server/sonar-web/src/main/js/components/shared/CleanCodeAttributePill.tsx index 211dda95275..b8c20b40ae1 100644 --- a/server/sonar-web/src/main/js/components/shared/CleanCodeAttributePill.tsx +++ b/server/sonar-web/src/main/js/components/shared/CleanCodeAttributePill.tsx @@ -57,7 +57,7 @@ export function CleanCodeAttributePill(props: Readonly) { } links={[ { - href: '/user-guide/clean-code', + href: '/user-guide/clean-code/introduction', label: translate('learn_more'), }, ]} diff --git a/server/sonar-web/src/main/js/components/shared/SoftwareImpactPill.tsx b/server/sonar-web/src/main/js/components/shared/SoftwareImpactPill.tsx index c3b7f827091..04bc3626ef1 100644 --- a/server/sonar-web/src/main/js/components/shared/SoftwareImpactPill.tsx +++ b/server/sonar-web/src/main/js/components/shared/SoftwareImpactPill.tsx @@ -56,7 +56,7 @@ export default function SoftwareImpactPill(props: Props) { } links={[ { - href: '/user-guide/clean-code', + href: '/user-guide/clean-code/introduction', label: translate('learn_more'), }, ]} -- 2.39.5