mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `8.6`: - [[Enterprise Search][ML Inference] Improve no models copy (#145772)](https://github.com/elastic/kibana/pull/145772) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Rodney Norris","email":"rodney.norris@elastic.co"},"sourceCommit":{"committedDate":"2022-11-28T15:40:51Z","message":"[Enterprise Search][ML Inference] Improve no models copy (#145772)\n\n## Summary\r\n\r\nUpdated the no models learn more to link to the new machine learning\r\ngetting started guide\r\nUpdated the copy on the no models modal to be more explicit and provide\r\ninformation on the types of models that are supported.\r\n\r\n### Screenshot\r\n\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"210b2f0f0e1dcb4798b5cd04eea5abe3f6e638f3","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.6.0","v8.7.0"],"number":145772,"url":"https://github.com/elastic/kibana/pull/145772","mergeCommit":{"message":"[Enterprise Search][ML Inference] Improve no models copy (#145772)\n\n## Summary\r\n\r\nUpdated the no models learn more to link to the new machine learning\r\ngetting started guide\r\nUpdated the copy on the no models modal to be more explicit and provide\r\ninformation on the types of models that are supported.\r\n\r\n### Screenshot\r\n\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"210b2f0f0e1dcb4798b5cd04eea5abe3f6e638f3"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145772","number":145772,"mergeCommit":{"message":"[Enterprise Search][ML Inference] Improve no models copy (#145772)\n\n## Summary\r\n\r\nUpdated the no models learn more to link to the new machine learning\r\ngetting started guide\r\nUpdated the copy on the no models modal to be more explicit and provide\r\ninformation on the types of models that are supported.\r\n\r\n### Screenshot\r\n\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"210b2f0f0e1dcb4798b5cd04eea5abe3f6e638f3"}}]}] BACKPORT--> Co-authored-by: Rodney Norris <rodney.norris@elastic.co>
This commit is contained in:
parent
cc211585ba
commit
5ea653ecf3
5 changed files with 26 additions and 19 deletions
|
@ -138,6 +138,7 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
|
|||
languageAnalyzers: `${ELASTICSEARCH_DOCS}analysis-lang-analyzer.html`,
|
||||
languageClients: `${ENTERPRISE_SEARCH_DOCS}programming-language-clients.html`,
|
||||
licenseManagement: `${ENTERPRISE_SEARCH_DOCS}license-management.html`,
|
||||
machineLearningStart: `${ENTERPRISE_SEARCH_DOCS}machine-learning-start.html`,
|
||||
mailService: `${ENTERPRISE_SEARCH_DOCS}mailer-configuration.html`,
|
||||
start: `${ENTERPRISE_SEARCH_DOCS}start.html`,
|
||||
syncRules: `${ENTERPRISE_SEARCH_DOCS}sync-rules.html`,
|
||||
|
|
|
@ -123,6 +123,7 @@ export interface DocLinks {
|
|||
readonly languageAnalyzers: string;
|
||||
readonly languageClients: string;
|
||||
readonly licenseManagement: string;
|
||||
readonly machineLearningStart: string;
|
||||
readonly mailService: string;
|
||||
readonly start: string;
|
||||
readonly syncRules: string;
|
||||
|
|
|
@ -10,6 +10,7 @@ import React from 'react';
|
|||
import { EuiEmptyPrompt, EuiImage, EuiLink, EuiText, useEuiTheme } from '@elastic/eui';
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
|
||||
import noMlModelsGraphicDark from '../../../../../../assets/images/no_ml_models_dark.svg';
|
||||
import noMlModelsGraphicLight from '../../../../../../assets/images/no_ml_models_light.svg';
|
||||
|
@ -28,32 +29,29 @@ export const NoModelsPanel: React.FC = () => {
|
|||
src={colorMode === 'LIGHT' ? noMlModelsGraphicLight : noMlModelsGraphicDark}
|
||||
alt={i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.pipelines.addInferencePipelineModal.noModels.imageAlt',
|
||||
{ defaultMessage: 'No ml models illustration' }
|
||||
{ defaultMessage: 'No machine learning models illustration' }
|
||||
)}
|
||||
/>
|
||||
<EuiText>
|
||||
<EuiText size="s">
|
||||
<p>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.pipelines.addInferencePipelineModal.noModels.description',
|
||||
{
|
||||
defaultMessage:
|
||||
'You have no trained models available. Please follow the documenation to add trained ml models to your cluster.',
|
||||
}
|
||||
)}
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.content.indices.pipelines.addInferencePipelineModal.noModels.description"
|
||||
defaultMessage="You have no trained machine learning models that can be used by an inference pipeline. {documentationLink}"
|
||||
values={{
|
||||
documentationLink: (
|
||||
<EuiLink href={docLinks.machineLearningStart} target="_blank">
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.pipelines.addInferencePipelineModal.noModels.esDocs.link',
|
||||
{ defaultMessage: 'Learn how to add a trained model' }
|
||||
)}
|
||||
</EuiLink>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</p>
|
||||
</EuiText>
|
||||
</>
|
||||
}
|
||||
footer={
|
||||
<EuiLink href={docLinks.deployTrainedModels} target="_blank">
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.appSearch.crawler.crawlRequestsTable.emptyPrompt.docsLink',
|
||||
{
|
||||
defaultMessage: 'Learn More',
|
||||
}
|
||||
)}
|
||||
</EuiLink>
|
||||
}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -41,3 +41,7 @@ export const DESCRIPTION_LABEL = i18n.translate('xpack.enterpriseSearch.descript
|
|||
export const OPTIONAL_LABEL = i18n.translate('xpack.enterpriseSearch.optionalLabel', {
|
||||
defaultMessage: 'Optional',
|
||||
});
|
||||
|
||||
export const LEARN_MORE_LINK = i18n.translate('xpack.enterpriseSearch.learnMore.link', {
|
||||
defaultMessage: 'Learn more',
|
||||
});
|
||||
|
|
|
@ -78,6 +78,7 @@ class DocLinks {
|
|||
public languageAnalyzers: string;
|
||||
public languageClients: string;
|
||||
public licenseManagement: string;
|
||||
public machineLearningStart: string;
|
||||
public pluginsIngestAttachment: string;
|
||||
public queryDsl: string;
|
||||
public searchUIAppSearch: string;
|
||||
|
@ -191,6 +192,7 @@ class DocLinks {
|
|||
this.languageAnalyzers = '';
|
||||
this.languageClients = '';
|
||||
this.licenseManagement = '';
|
||||
this.machineLearningStart = '';
|
||||
this.pluginsIngestAttachment = '';
|
||||
this.queryDsl = '';
|
||||
this.searchUIAppSearch = '';
|
||||
|
@ -306,6 +308,7 @@ class DocLinks {
|
|||
this.languageAnalyzers = docLinks.links.enterpriseSearch.languageAnalyzers;
|
||||
this.languageClients = docLinks.links.enterpriseSearch.languageClients;
|
||||
this.licenseManagement = docLinks.links.enterpriseSearch.licenseManagement;
|
||||
this.machineLearningStart = docLinks.links.enterpriseSearch.machineLearningStart;
|
||||
this.pluginsIngestAttachment = docLinks.links.plugins.ingestAttachment;
|
||||
this.queryDsl = docLinks.links.query.queryDsl;
|
||||
this.searchUIAppSearch = docLinks.links.searchUI.appSearch;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue