mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
remove featured integrations
This commit is contained in:
parent
5319d66c97
commit
d9ca449aa7
2 changed files with 1 additions and 75 deletions
|
@ -41,7 +41,6 @@ export interface Props {
|
|||
controls?: ReactNode | ReactNode[];
|
||||
title?: string;
|
||||
list: IntegrationCardItem[];
|
||||
featuredList?: JSX.Element | null;
|
||||
initialSearch?: string;
|
||||
selectedCategory: ExtendedIntegrationCategory;
|
||||
setSelectedCategory: (category: string) => void;
|
||||
|
@ -63,7 +62,6 @@ export const PackageListGrid: FunctionComponent<Props> = ({
|
|||
setSelectedCategory,
|
||||
categories,
|
||||
showMissingIntegrationMessage = false,
|
||||
featuredList = null,
|
||||
callout,
|
||||
showCardLabels = true,
|
||||
}) => {
|
||||
|
@ -127,7 +125,6 @@ export const PackageListGrid: FunctionComponent<Props> = ({
|
|||
|
||||
return (
|
||||
<>
|
||||
{featuredList}
|
||||
<div ref={menuRef}>
|
||||
<EuiFlexGroup
|
||||
alignItems="flexStart"
|
||||
|
|
|
@ -11,18 +11,7 @@ import { useLocation, useHistory, useParams } from 'react-router-dom';
|
|||
import _ from 'lodash';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import {
|
||||
EuiHorizontalRule,
|
||||
EuiFlexItem,
|
||||
EuiFlexGrid,
|
||||
EuiSpacer,
|
||||
EuiCard,
|
||||
EuiIcon,
|
||||
EuiCallOut,
|
||||
EuiLink,
|
||||
} from '@elastic/eui';
|
||||
|
||||
import { TrackApplicationView } from '@kbn/usage-collection-plugin/public';
|
||||
import { EuiHorizontalRule, EuiFlexItem, EuiCallOut, EuiLink } from '@elastic/eui';
|
||||
|
||||
import type { CustomIntegration } from '@kbn/custom-integrations-plugin/common';
|
||||
|
||||
|
@ -339,65 +328,6 @@ export const AvailablePackages: React.FC<{
|
|||
];
|
||||
}
|
||||
|
||||
// TODO: Remove this hard coded list of integrations with a suggestion service
|
||||
const featuredList = (
|
||||
<>
|
||||
<EuiFlexGrid columns={3}>
|
||||
<EuiFlexItem>
|
||||
<TrackApplicationView viewId="integration-card:epr:web_crawler:featured">
|
||||
<EuiCard
|
||||
data-test-subj="integration-card:epr:web_crawler:featured"
|
||||
icon={<EuiIcon type="logoEnterpriseSearch" size="xxl" />}
|
||||
href={addBasePath(
|
||||
'/app/enterprise_search/content/search_indices/new_index?method=crawler'
|
||||
)}
|
||||
title={i18n.translate('xpack.fleet.featuredSearchTitle', {
|
||||
defaultMessage: 'Web crawler',
|
||||
})}
|
||||
description={i18n.translate('xpack.fleet.featuredSearchDesc', {
|
||||
defaultMessage:
|
||||
'Add search to your website with the Enterprise Search web crawler.',
|
||||
})}
|
||||
/>
|
||||
</TrackApplicationView>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<TrackApplicationView viewId="integration-card:epr:apm:featured">
|
||||
<EuiCard
|
||||
data-test-subj="integration-card:epr:apm:featured"
|
||||
title={i18n.translate('xpack.fleet.featuredObsTitle', {
|
||||
defaultMessage: 'Elastic APM',
|
||||
})}
|
||||
description={i18n.translate('xpack.fleet.featuredObsDesc', {
|
||||
defaultMessage:
|
||||
'Monitor, detect, and diagnose complex application performance issues.',
|
||||
})}
|
||||
href={addBasePath('/app/home#/tutorial/apm')}
|
||||
icon={<EuiIcon type="logoObservability" size="xxl" />}
|
||||
/>
|
||||
</TrackApplicationView>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<TrackApplicationView viewId="integration-card:epr:endpoint:featured">
|
||||
<EuiCard
|
||||
data-test-subj="integration-card:epr:endpoint:featured"
|
||||
icon={<EuiIcon type="logoSecurity" size="xxl" />}
|
||||
href={addBasePath('/app/integrations/detail/endpoint/')}
|
||||
title={i18n.translate('xpack.fleet.featuredSecurityTitle', {
|
||||
defaultMessage: 'Elastic Defend',
|
||||
})}
|
||||
description={i18n.translate('xpack.fleet.featuredSecurityDesc', {
|
||||
defaultMessage:
|
||||
'Protect your hosts and cloud workloads with threat prevention, detection, and deep security data visibility.',
|
||||
})}
|
||||
/>
|
||||
</TrackApplicationView>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGrid>
|
||||
<EuiSpacer size="xl" />
|
||||
</>
|
||||
);
|
||||
|
||||
let noEprCallout;
|
||||
if (eprPackageLoadingError || eprCategoryLoadingError) {
|
||||
const error = eprPackageLoadingError || eprCategoryLoadingError;
|
||||
|
@ -406,7 +336,6 @@ export const AvailablePackages: React.FC<{
|
|||
|
||||
return (
|
||||
<PackageListGrid
|
||||
featuredList={featuredList}
|
||||
isLoading={isLoadingAllPackages}
|
||||
controls={controls}
|
||||
initialSearch={searchParam}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue