mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Update links for Index Detail connector configuration tab (#138171)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
eaf5ff4f25
commit
708d0d09ec
4 changed files with 40 additions and 5 deletions
|
@ -121,6 +121,7 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
|
|||
apiKeys: `${KIBANA_DOCS}api-keys.html`,
|
||||
bulkApi: `${ELASTICSEARCH_DOCS}docs-bulk.html`,
|
||||
configuration: `${ENTERPRISE_SEARCH_DOCS}configuration.html`,
|
||||
connectors: `${ENTERPRISE_SEARCH_DOCS}connectors.html`,
|
||||
crawlerGettingStarted: `${ENTERPRISE_SEARCH_DOCS}crawler-getting-started.html`,
|
||||
crawlerManaging: `${ENTERPRISE_SEARCH_DOCS}crawler-managing.html`,
|
||||
crawlerOverview: `${ENTERPRISE_SEARCH_DOCS}crawler.html`,
|
||||
|
|
|
@ -107,6 +107,7 @@ export interface DocLinks {
|
|||
readonly apiKeys: string;
|
||||
readonly bulkApi: string;
|
||||
readonly configuration: string;
|
||||
readonly connectors: string;
|
||||
readonly crawlerGettingStarted: string;
|
||||
readonly crawlerManaging: string;
|
||||
readonly crawlerOverview: string;
|
||||
|
|
|
@ -28,9 +28,9 @@ import { i18n } from '@kbn/i18n';
|
|||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
|
||||
import { ConnectorStatus } from '../../../../../../common/types/connectors';
|
||||
import { docLinks } from '../../../../shared/doc_links';
|
||||
import { generateEncodedPath } from '../../../../shared/encode_path_params';
|
||||
import { HttpLogic } from '../../../../shared/http';
|
||||
import { EuiButtonTo } from '../../../../shared/react_router_helpers';
|
||||
import { EuiButtonTo, EuiLinkTo } from '../../../../shared/react_router_helpers';
|
||||
|
||||
import { GenerateConnectorApiKeyApiLogic } from '../../../api/connector_package/generate_connector_api_key_api_logic';
|
||||
import { FetchIndexApiLogic } from '../../../api/index/fetch_index_api_logic';
|
||||
|
@ -49,7 +49,7 @@ export const ConnectorConfiguration: React.FC = () => {
|
|||
const { data: indexData } = useValues(FetchIndexApiLogic);
|
||||
const { indexName } = useValues(IndexNameLogic);
|
||||
const { makeRequest: fetchIndex } = useActions(FetchIndexApiLogic);
|
||||
const { http } = useValues(HttpLogic);
|
||||
|
||||
if (!isConnectorIndex(indexData)) {
|
||||
return <></>;
|
||||
}
|
||||
|
@ -315,14 +315,24 @@ export const ConnectorConfiguration: React.FC = () => {
|
|||
</EuiText>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<EuiLink href={http.basePath.prepend('/app/management/security/api_keys')}>
|
||||
<EuiLink href={docLinks.connectors} target="_blank">
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.configurationConnector.support.viewDocumentation.label',
|
||||
{
|
||||
defaultMessage: 'View documentation',
|
||||
}
|
||||
)}
|
||||
</EuiLink>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<EuiLinkTo to={'/app/management/security/api_keys'} shouldNotCreateHref>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.configurationConnector.support.manageKeys.label',
|
||||
{
|
||||
defaultMessage: 'Manage keys',
|
||||
}
|
||||
)}
|
||||
</EuiLink>
|
||||
</EuiLinkTo>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<EuiLink
|
||||
|
@ -363,6 +373,16 @@ export const ConnectorConfiguration: React.FC = () => {
|
|||
)}
|
||||
</EuiLink>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<EuiLinkTo to={'/app/integrations/browse'} shouldNotCreateHref>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.configurationConnector.support.dontSeeIntegration.label',
|
||||
{
|
||||
defaultMessage: 'Don’t see the integration you’re looking for?',
|
||||
}
|
||||
)}
|
||||
</EuiLinkTo>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<EuiLink
|
||||
href="https://docs.elastic.co/search-ui/tutorials/workplace-search"
|
||||
|
@ -376,6 +396,16 @@ export const ConnectorConfiguration: React.FC = () => {
|
|||
)}
|
||||
</EuiLink>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<EuiLink href="https://www.elastic.co/kibana/feedback" target="_blank">
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.configurationConnector.support.connectorFeedback.label',
|
||||
{
|
||||
defaultMessage: 'Connector feedback',
|
||||
}
|
||||
)}
|
||||
</EuiLink>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiPanel>
|
||||
</EuiFlexItem>
|
||||
|
|
|
@ -57,6 +57,7 @@ class DocLinks {
|
|||
public clientsRubyOverview: string;
|
||||
public clientsRustOverview: string;
|
||||
public cloudIndexManagement: string;
|
||||
public connectors: string;
|
||||
public crawlerGettingStarted: string;
|
||||
public crawlerManaging: string;
|
||||
public crawlerOverview: string;
|
||||
|
@ -161,6 +162,7 @@ class DocLinks {
|
|||
this.clientsRubyOverview = '';
|
||||
this.clientsRustOverview = '';
|
||||
this.cloudIndexManagement = '';
|
||||
this.connectors = '';
|
||||
this.crawlerGettingStarted = '';
|
||||
this.crawlerManaging = '';
|
||||
this.crawlerOverview = '';
|
||||
|
@ -267,6 +269,7 @@ class DocLinks {
|
|||
this.clientsRubyOverview = docLinks.links.clients.rubyOverview;
|
||||
this.clientsRustOverview = docLinks.links.clients.rustOverview;
|
||||
this.cloudIndexManagement = docLinks.links.cloud.indexManagement;
|
||||
this.connectors = docLinks.links.enterpriseSearch.connectors;
|
||||
this.crawlerGettingStarted = docLinks.links.enterpriseSearch.crawlerGettingStarted;
|
||||
this.crawlerManaging = docLinks.links.enterpriseSearch.crawlerManaging;
|
||||
this.crawlerOverview = docLinks.links.enterpriseSearch.crawlerOverview;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue