IconError,
LinkStandalone,
Spinner,
- Text
+ Text,
} from '@sonarsource/echoes-react';
import { MutationStatus } from '@tanstack/react-query';
import { AxiosError } from 'axios';
import { BasicSeparator, HighlightedSection, themeColor, UnorderedList } from '~design-system';
import { SuggestionServiceStatusCheckResponse } from '../../../api/fix-suggestions';
import withAvailableFeatures, {
- WithAvailableFeaturesProps
+ WithAvailableFeaturesProps,
} from '../../../app/components/available-features/withAvailableFeatures';
+import DocumentationLink from '../../../components/common/DocumentationLink';
+import { DocLink } from '../../../helpers/doc-links';
import { translate } from '../../../helpers/l10n';
import { getAiCodeFixTermsOfServiceUrl } from '../../../helpers/urls';
-import { useCheckServiceMutation, useRemoveCodeSuggestionsCache } from '../../../queries/fix-suggestions';
+import {
+ useCheckServiceMutation,
+ useRemoveCodeSuggestionsCache,
+} from '../../../queries/fix-suggestions';
import { useGetValueQuery, useSaveSimpleValueMutation } from '../../../queries/settings';
import { Feature } from '../../../types/features';
import { SettingsKey } from '../../../types/settings';
{translate('property.codefix.admin.serviceCheck.title')}
</Heading>
<p>{translate('property.codefix.admin.serviceCheck.description1')}</p>
- <p className="sw-mt-4">{translate('property.codefix.admin.serviceCheck.description2')}</p>
+ <DocumentationLink to={DocLink.AiCodeFixEnabling}>
+ {translate('property.codefix.admin.serviceCheck.learnMore')}
+ </DocumentationLink>
+ <p>{translate('property.codefix.admin.serviceCheck.description2')}</p>
<Button
className="sw-mt-4"
variety={ButtonVariety.Default}
AccountTokens = '/user-guide/managing-tokens/',
ActiveVersions = '/server-upgrade-and-maintenance/upgrade/upgrade-the-server/active-versions/',
AiCodeAssurance = '/user-guide/ai-features/',
+ AiCodeFixEnabling = 'instance-administration/system-functions/enabling-ai-generated-fix-suggestions/',
AlmAzureIntegration = '/devops-platform-integration/azure-devops-integration/',
AlmBitBucketCloudAuth = '/instance-administration/authentication/bitbucket-cloud/',
AlmBitBucketCloudIntegration = '/devops-platform-integration/bitbucket-integration/bitbucket-cloud-integration/',
property.codefix.admin.serviceCheck.title=Test the AI CodeFix service
property.codefix.admin.serviceCheck.description1=Make sure this SonarQube instance can communicate with the AI CodeFix service, which requires network connectivity to function.
property.codefix.admin.serviceCheck.description2=This test is free and should only take a few seconds.
+property.codefix.admin.serviceCheck.learnMore=Read more about enabling AI CodeFix
property.codefix.admin.serviceCheck.action=Test AI CodeFix service
property.codefix.admin.serviceCheck.spinner.label=Waiting for AI CodeFix service to respond...
property.codefix.admin.serviceCheck.result.success=The AI CodeFix service responded successfully.