Skip to content

Commit

Permalink
Link integrations from datasources UI (#1203) (#1207)
Browse files Browse the repository at this point in the history
(cherry picked from commit 667bbb7)

Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent f0e7a9d commit 8e9fe5e
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,51 @@ exports[`Data Connection Page test Renders S3 data connection page with data 1`]
</div>
</div>
</div>
<div
class="euiFlexItem"
>
<div
class="euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--isClickable euiCard euiCard--centerAligned euiCard--isClickable euiCard--hasIcon"
>
<div
class="euiCard__top"
>
<svg
aria-hidden="true"
class="euiIcon euiIcon--xxLarge euiIcon-isLoading euiCard__icon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</div>
<div
class="euiCard__content"
>
<span
class="euiTitle euiTitle--small euiCard__title"
id="random_html_idTitle"
>
<button
aria-describedby=" random_html_idDescription"
class="euiCard__titleButton"
>
Integrate data
</button>
</span>
<div
class="euiText euiText--small euiCard__description"
id="random_html_idDescription"
>
<p>
Explore data faster through integrations
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ export const DataConnection = (props: any) => {
}
/>
</EuiFlexItem>
<EuiFlexItem>
<EuiCard
icon={<EuiIcon size="xxl" type="integrationGeneral" />}
title={'Integrate data'}
description="Explore data faster through integrations"
onClick={() => application!.navigateToApp(observabilityIntegrationsID)}
/>
</EuiFlexItem>
</EuiFlexGroup>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { HomeProps } from '../../home';
import { DataConnectionsDescription } from './manage_data_connections_description';
import {
DATACONNECTIONS_BASE,
observabilityIntegrationsID,
observabilityLogsID,
observabilityMetricsID,
} from '../../../../../common/constants/shared';
Expand Down Expand Up @@ -137,6 +138,17 @@ export const ManageDataConnectionsTable = (props: HomeProps) => {
},
'data-test-subj': 'action-accelerate',
},
{
name: 'Integrate data',
isPrimary: false,
icon: 'integrationGeneral',
type: 'icon',
available: (datasource: DataConnection) => datasource.connectionType !== 'PROMETHEUS',
onClick: () => {
application!.navigateToApp(observabilityIntegrationsID);
},
'data-test-subj': 'action-integrate',
},
{
name: 'Delete',
description: 'Delete this data source',
Expand Down

0 comments on commit 8e9fe5e

Please sign in to comment.