Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fleet] Link to Add Data (Beats tutorials) when there are no integrations found #108224

Merged
merged 3 commits into from
Aug 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export const DefaultLayout: React.FunctionComponent<Props> = memo(({ section, ch
<EuiText>
<h1>
<FormattedMessage
id="xpack.fleet.integrationsAppTitle"
defaultMessage="Integrations"
id="xpack.fleet.integrationsHeaderTitle"
defaultMessage="Elastic Agent Integrations"
/>
</h1>
</EuiText>
Expand All @@ -74,7 +74,7 @@ export const DefaultLayout: React.FunctionComponent<Props> = memo(({ section, ch
<p>
<FormattedMessage
id="xpack.fleet.epm.pageSubtitle"
defaultMessage="Collect data from popular apps and services."
defaultMessage="Collect data from popular apps and services using Elastic Agent"
/>
</p>
</EuiText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';

import { useStartServices } from '../../../../../hooks';
import { Loading } from '../../../components';
import type { PackageList } from '../../../types';
import { useLocalSearch, searchIdField } from '../../../hooks';
Expand Down Expand Up @@ -191,6 +192,9 @@ function MissingIntegrationContent({
resetQuery,
setSelectedCategory,
}: MissingIntegrationContentProps) {
const {
application: { getUrlForApp },
} = useStartServices();
const handleCustomInputsLinkClick = useCallback(() => {
resetQuery();
setSelectedCategory('custom');
Expand All @@ -201,7 +205,7 @@ function MissingIntegrationContent({
<p>
<FormattedMessage
id="xpack.fleet.integrations.missing"
defaultMessage="Don't see an integration? Collect any logs or metrics using our {customInputsLink}. Request new integrations using our {discussForumLink}."
defaultMessage="Don't see an integration? Collect any logs or metrics using our {customInputsLink}, or add data using {beatsTutorialLink}. Request new integrations using our {discussForumLink}."
values={{
customInputsLink: (
<EuiLink onClick={handleCustomInputsLinkClick}>
Expand All @@ -219,6 +223,14 @@ function MissingIntegrationContent({
/>
</EuiLink>
),
beatsTutorialLink: (
<EuiLink href={getUrlForApp('home', { path: '#/tutorial_directory' })}>
<FormattedMessage
id="xpack.fleet.integrations.beatsModulesLink"
defaultMessage="Beats modules"
/>
</EuiLink>
),
}}
/>
</p>
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -9832,7 +9832,6 @@
"xpack.fleet.integrations.discussForumLink": "ディスカッションフォーラム",
"xpack.fleet.integrations.installPackage.installingPackageButtonLabel": "{title} アセットをインストールしています",
"xpack.fleet.integrations.installPackage.installPackageButtonLabel": "{title}アセットをインストール",
"xpack.fleet.integrations.missing": "統合が表示されない場合{customInputsLink}を使用してログまたはメトリックを収集してください。{discussForumLink}を使用して新しい統合を要求してください。",
"xpack.fleet.integrations.packageInstallErrorDescription": "このパッケージのインストール中に問題が発生しました。しばらくたってから再試行してください。",
"xpack.fleet.integrations.packageInstallErrorTitle": "{title}パッケージをインストールできませんでした",
"xpack.fleet.integrations.packageInstallSuccessDescription": "正常に{title}をインストールしました",
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -10094,7 +10094,6 @@
"xpack.fleet.integrations.discussForumLink": "讨论论坛",
"xpack.fleet.integrations.installPackage.installingPackageButtonLabel": "正在安装 {title} 资产",
"xpack.fleet.integrations.installPackage.installPackageButtonLabel": "安装 {title} 资产",
"xpack.fleet.integrations.missing": "未看到集成?使用我们的{customInputsLink}收集任何日志或指标。使用{discussForumLink}请求新的集成。",
"xpack.fleet.integrations.packageInstallErrorDescription": "尝试安装此软件包时出现问题。请稍后重试。",
"xpack.fleet.integrations.packageInstallErrorTitle": "无法安装 {title} 软件包",
"xpack.fleet.integrations.packageInstallSuccessDescription": "已成功安装 {title}",
Expand Down