From 80d5121b80f3bbd452b5b02fc05c944802ac8c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20FOUCRET?= Date: Thu, 31 Oct 2024 19:53:14 +0100 Subject: [PATCH] Fix broken documentation links in the App Search plugin (#198572) --- .../api_logs/components/empty_state.tsx | 4 ++-- .../crawler/components/crawl_rules_table.tsx | 4 ++-- .../deduplication_panel.tsx | 4 ++-- .../crawler/components/entry_points_table.tsx | 4 ++-- .../automatic_crawl_scheduler.tsx | 4 ++-- .../components/crawler/crawler_overview.tsx | 6 ++--- .../components/credentials/constants.ts | 4 ---- .../form_components/key_type.tsx | 6 +++-- .../credentials_list/credentials_list.tsx | 4 ++-- .../curations/components/empty_state.tsx | 4 ++-- .../api_code_example.tsx | 6 ++--- .../document_creation_buttons.tsx | 5 ++-- .../documents/components/empty_state.tsx | 4 ++-- .../engine_overview/engine_overview_empty.tsx | 4 ++-- .../components/empty_meta_engines_state.tsx | 4 ++-- .../meta_engine_creation/constants.tsx | 4 ++-- .../components/empty_state.tsx | 4 ++-- .../precision_slider/precision_slider.tsx | 8 +++++-- .../relevance_tuning_callouts.tsx | 5 ++-- .../components/empty_state.tsx | 4 ++-- .../role_mappings/role_mappings.tsx | 6 ++--- .../schema/components/empty_state.tsx | 9 +++++-- .../search_ui/components/empty_state.tsx | 4 ++-- .../components/search_ui/search_ui.tsx | 4 ++-- .../log_retention/log_retention_panel.tsx | 4 ++-- .../synonyms/components/empty_state.tsx | 4 ++-- .../public/applications/app_search/routes.ts | 24 ------------------- 27 files changed, 66 insertions(+), 81 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/api_logs/components/empty_state.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/api_logs/components/empty_state.tsx index c78bf3e918737..bf8cf009759d0 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/api_logs/components/empty_state.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/api_logs/components/empty_state.tsx @@ -11,7 +11,7 @@ import { EuiButton, EuiEmptyPrompt } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { API_DOCS_URL } from '../../../routes'; +import { docLinks } from '../../../../shared/doc_links'; export const EmptyState: React.FC = () => ( (
{tokenDescription}{' '} - + {i18n.translate('xpack.enterpriseSearch.appSearch.credentials.documentationLink1', { defaultMessage: 'Visit the documentation', })} diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/credentials_list/credentials_list.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/credentials_list/credentials_list.tsx index e351cdf36c657..4f45da9e26046 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/credentials_list/credentials_list.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/credentials_list/credentials_list.tsx @@ -19,9 +19,9 @@ import { import { i18n } from '@kbn/i18n'; import { EDIT_BUTTON_LABEL, DELETE_BUTTON_LABEL } from '../../../../shared/constants'; +import { docLinks } from '../../../../shared/doc_links'; import { HiddenText } from '../../../../shared/hidden_text'; import { convertMetaToPagination, handlePageChange } from '../../../../shared/table_pagination'; -import { API_KEYS_DOCS_URL } from '../../../routes'; import { TOKEN_TYPE_DISPLAY_NAMES } from '../constants'; import { CredentialsLogic } from '../credentials_logic'; import { ApiToken } from '../types'; @@ -141,7 +141,7 @@ export const CredentialsList: React.FC = () => { defaultMessage: 'Allow applications to access Elastic App Search on your behalf.', })} actions={ - + {i18n.translate('xpack.enterpriseSearch.appSearch.credentials.empty.buttonLabel', { defaultMessage: 'Learn about API keys', })} diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/components/empty_state.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/components/empty_state.tsx index 10d81f1623959..363da83d56aac 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/components/empty_state.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/components/empty_state.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { EuiButton, EuiEmptyPrompt } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { CURATIONS_DOCS_URL } from '../../../routes'; +import { docLinks } from '../../../../shared/doc_links'; export const EmptyState: React.FC = () => ( (