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

Minor integration name updates #1505

Merged
merged 3 commits into from
Mar 9, 2024
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 @@ -110,7 +110,7 @@ exports[`Added Integration Table View Test Renders added integration table view
Array [
Object {
"field": "name",
"name": "Asset name",
"name": "Integration Name",
"render": [Function],
"sortable": true,
"truncateText": true,
Expand Down Expand Up @@ -558,7 +558,7 @@ exports[`Added Integration Table View Test Renders added integration table view
Array [
Object {
"field": "name",
"name": "Asset name",
"name": "Integration Name",
"render": [Function],
"sortable": true,
"truncateText": true,
Expand Down Expand Up @@ -707,15 +707,15 @@ exports[`Added Integration Table View Test Renders added integration table view
values={
Object {
"description": undefined,
"innerText": "Asset name",
"innerText": "Integration Name",
}
}
>
<span
className="euiTableCellContent__text"
title="Asset name"
title="Integration Name"
>
Asset name
Integration Name
</span>
</EuiI18n>
</EuiInnerText>
Expand Down Expand Up @@ -880,7 +880,7 @@ exports[`Added Integration Table View Test Renders added integration table view
key="_data_column_name_ad7e6e30-0b99-11ee-b27c-c9863222e9bf_0"
mobileOptions={
Object {
"header": "Asset name",
"header": "Integration Name",
"render": undefined,
}
}
Expand All @@ -899,7 +899,7 @@ exports[`Added Integration Table View Test Renders added integration table view
<div
className="euiTableRowCell__mobileHeader euiTableRowCell--hideForDesktop"
>
Asset name
Integration Name
</div>
<div
className="euiTableCellContent euiTableCellContent--truncateText euiTableCellContent--overflowingContent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
} from '@elastic/eui';
import _ from 'lodash';
import React, { useState } from 'react';
import { AddedIntegrationsTableProps } from './added_integration_overview_page';
import {
AddedIntegrationType,
AddedIntegrationsTableProps,
} from './added_integration_overview_page';
import { DeleteModal } from '../../../../public/components/common/helpers/delete_modal';
import { INTEGRATIONS_BASE } from '../../../../common/constants/shared';
import { useToast } from '../../../../public/components/common/toast';
Expand All @@ -33,7 +36,7 @@
const tableColumns = [
{
field: 'name',
name: 'Asset name',
name: 'Integration Name',
sortable: true,
truncateText: true,
render: (value, record) => (
Expand Down Expand Up @@ -81,7 +84,7 @@
/>
),
},
] as Array<EuiTableFieldDataColumnType<any>>;
] as Array<EuiTableFieldDataColumnType<AddedIntegrationType>>;

async function deleteAddedIntegration(integrationInstance: string, name: string) {
http
Expand All @@ -92,7 +95,7 @@
hits: props.data.hits.filter((i) => i.id !== integrationInstance),
});
})
.catch((err) => {
.catch((_err) => {

Check warning on line 98 in public/components/integrations/components/added_integration_table.tsx

View check run for this annotation

Codecov / codecov/patch

public/components/integrations/components/added_integration_table.tsx#L98

Added line #L98 was not covered by tests
setToast(`Error deleting ${name} or its assets`, 'danger');
})
.finally(() => {
Expand Down
2 changes: 1 addition & 1 deletion public/components/integrations/components/integration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function Integration(props: AvailableIntegrationProps) {
},
{
id: 'fields',
name: 'Integration Fields',
name: 'Schema Fields',
disabled: false,
},
];
Expand Down
Loading