diff --git a/dashboards-notifications/common/index.ts b/dashboards-notifications/common/index.ts index 577759e2..0b77a5f3 100644 --- a/dashboards-notifications/common/index.ts +++ b/dashboards-notifications/common/index.ts @@ -16,7 +16,6 @@ export const NODE_API = Object.freeze({ CREATE_CONFIG: `${NODE_API_BASE_PATH}/create_config`, DELETE_CONFIGS: `${NODE_API_BASE_PATH}/delete_configs`, UPDATE_CONFIG: `${NODE_API_BASE_PATH}/update_config`, - GET_EVENTS: `${NODE_API_BASE_PATH}/get_events`, GET_EVENT: `${NODE_API_BASE_PATH}/get_event`, GET_AVAILABLE_FEATURES: `${NODE_API_BASE_PATH}/features`, SEND_TEST_MESSAGE: `${NODE_API_BASE_PATH}/test_message`, diff --git a/dashboards-notifications/models/interfaces.ts b/dashboards-notifications/models/interfaces.ts index dd5a2c7c..013245ed 100644 --- a/dashboards-notifications/models/interfaces.ts +++ b/dashboards-notifications/models/interfaces.ts @@ -9,25 +9,8 @@ import { CHANNEL_TYPE, ENCRYPTION_TYPE, NOTIFICATION_SOURCE, - SEVERITY_TYPE, } from '../public/utils/constants'; -export interface NotificationItem { - event_id: string; - created_time_ms: number; - last_updated_time_ms: number; - tenant?: string; - event_source: { - title: string; - reference_id: string; - feature: keyof typeof NOTIFICATION_SOURCE; - severity: keyof typeof SEVERITY_TYPE; - tags?: string[]; - }; - status_list: ChannelStatus[]; // could be multiple channels in a notification item - success: boolean; // calculated in the frontend based on status_list -} - export interface ChannelStatus { config_id: string; config_name: string; diff --git a/dashboards-notifications/public/application.tsx b/dashboards-notifications/public/application.tsx index 669de013..7ce2fc75 100644 --- a/dashboards-notifications/public/application.tsx +++ b/dashboards-notifications/public/application.tsx @@ -9,14 +9,13 @@ import { HashRouter as Router, Route } from 'react-router-dom'; import { AppMountParameters, CoreStart } from '../../../src/core/public'; import { CoreServicesContext } from './components/coreServices'; import Main from './pages/Main'; -import { EventService, NotificationService } from './services'; +import { NotificationService } from './services'; import { ServicesContext } from './services/services'; export const renderApp = (coreStart: CoreStart, params: AppMountParameters) => { const http = coreStart.http; const notificationService = new NotificationService(http); - const eventService = new EventService(http); - const services = { notificationService, eventService }; + const services = { notificationService }; ReactDOM.render( diff --git a/dashboards-notifications/public/models/interfaces.ts b/dashboards-notifications/public/models/interfaces.ts index 03c7ffee..ae48e39a 100644 --- a/dashboards-notifications/public/models/interfaces.ts +++ b/dashboards-notifications/public/models/interfaces.ts @@ -4,9 +4,7 @@ */ import { NotificationService } from '../services'; -import EventService from '../services/EventService'; export interface BrowserServices { notificationService: NotificationService; - eventService: EventService; } diff --git a/dashboards-notifications/public/pages/Channels/Channels.tsx b/dashboards-notifications/public/pages/Channels/Channels.tsx index 7e90eba1..1e3ca6bd 100644 --- a/dashboards-notifications/public/pages/Channels/Channels.tsx +++ b/dashboards-notifications/public/pages/Channels/Channels.tsx @@ -29,7 +29,6 @@ import { NotificationService } from '../../services'; import { BREADCRUMBS, CHANNEL_TYPE, - NOTIFICATION_SOURCE, ROUTES, } from '../../utils/constants'; import { getErrorMessage } from '../../utils/helpers'; @@ -95,16 +94,6 @@ export class Channels extends Component { truncateText: false, render: (type: string) => _.get(CHANNEL_TYPE, type, '-'), }, - { - field: 'feature_list', - name: 'Notification source', - sortable: true, - truncateText: true, - render: (features: string[]) => - features - .map((feature) => _.get(NOTIFICATION_SOURCE, feature, '-')) - .join(', ') || '-', - }, { field: 'description', name: 'Description', @@ -148,8 +137,6 @@ export class Channels extends Component { }; if (state.filters.state != undefined) queryObject.is_enabled = state.filters.state; - if (!_.isEmpty(state.filters.source)) - queryObject.feature_list = state.filters.source; return queryObject; } diff --git a/dashboards-notifications/public/pages/Channels/__tests__/ChannelControls.test.tsx b/dashboards-notifications/public/pages/Channels/__tests__/ChannelControls.test.tsx index e42cda97..7d5038a7 100644 --- a/dashboards-notifications/public/pages/Channels/__tests__/ChannelControls.test.tsx +++ b/dashboards-notifications/public/pages/Channels/__tests__/ChannelControls.test.tsx @@ -64,11 +64,6 @@ describe(' spec', () => { fireEvent.click(utils.getByText('Chime')); expect(onFiltersChange).toBeCalledWith({ type: ['email', 'chime'] }); - fireEvent.click(utils.getByText('Source')); - fireEvent.click(utils.getByText('Alerting')); - fireEvent.click(utils.getByText('Reporting')); - expect(onFiltersChange).toBeCalledWith({ source: ['alerting', 'reports'] }); - - expect(onFiltersChange).toBeCalledTimes(5); + expect(onFiltersChange).toBeCalledTimes(3); }); }); diff --git a/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/ChannelControls.test.tsx.snap b/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/ChannelControls.test.tsx.snap index 48f798b5..9881872a 100644 --- a/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/ChannelControls.test.tsx.snap +++ b/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/ChannelControls.test.tsx.snap @@ -121,44 +121,6 @@ exports[` spec renders the component 1`] = ` -
-
- -
-
diff --git a/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/ChannelDetails.test.tsx.snap b/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/ChannelDetails.test.tsx.snap index 48601c45..49f7649d 100644 --- a/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/ChannelDetails.test.tsx.snap +++ b/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/ChannelDetails.test.tsx.snap @@ -168,72 +168,6 @@ exports[` spec handles a non-existing channel 1`] = ` style="padding: initial;" /> -
-
-
-
-

- Availability -

-
-
-
-
-
-
-
-
-
-
- Notification sources -
-
- - -
-
-
-
-
-
-
-
-
-
`; @@ -405,72 +339,6 @@ exports[` spec renders a specific channel 1`] = ` style="padding: initial;" />
-
-
-
-
-

- Availability -

-
-
-
-
-
-
-
-
-
-
- Notification sources -
-
- - -
-
-
-
-
-
-
-
-
-
`; diff --git a/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/Channels.test.tsx.snap b/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/Channels.test.tsx.snap index ded7c5ed..a9f18e66 100644 --- a/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/Channels.test.tsx.snap +++ b/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/Channels.test.tsx.snap @@ -221,44 +221,6 @@ exports[` spec renders the empty component 1`] = `
-
-
- -
-
@@ -480,37 +442,7 @@ exports[` spec renders the empty component 1`] = ` aria-live="polite" aria-sort="none" class="euiTableHeaderCell" - data-test-subj="tableHeaderCell_feature_list_3" - role="columnheader" - scope="col" - > - - - @@ -544,7 +476,7 @@ exports[` spec renders the empty component 1`] = ` >
spec renders the component 1`] = ` onClose={[MockFunction]} services={ Object { - "eventService": EventService { - "getHistogram": [Function], - "getNotification": [Function], - "getNotifications": [Function], - "httpClient": [MockFunction], - "sendTestMessage": [Function], - }, "notificationService": NotificationService { "createConfig": [Function], "deleteConfigs": [Function], @@ -33,6 +26,7 @@ exports[` spec renders the component 1`] = ` "getConfig": [Function], "getConfigs": [Function], "getEmailConfigDetails": [Function], + "getNotification": [Function], "getRecipientGroup": [Function], "getRecipientGroups": [Function], "getSESSender": [Function], @@ -41,6 +35,7 @@ exports[` spec renders the component 1`] = ` "getSenders": [Function], "getServerFeatures": [Function], "httpClient": [MockFunction], + "sendTestMessage": [Function], "updateConfig": [Function], }, } diff --git a/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/DetailsTableModal.test.tsx.snap b/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/DetailsTableModal.test.tsx.snap index 020dbbc8..2e3fd205 100644 --- a/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/DetailsTableModal.test.tsx.snap +++ b/dashboards-notifications/public/pages/Channels/__tests__/__snapshots__/DetailsTableModal.test.tsx.snap @@ -19,13 +19,6 @@ exports[` spec renders headers 1`] = ` onClose={[MockFunction]} services={ Object { - "eventService": EventService { - "getHistogram": [Function], - "getNotification": [Function], - "getNotifications": [Function], - "httpClient": [MockFunction], - "sendTestMessage": [Function], - }, "notificationService": NotificationService { "createConfig": [Function], "deleteConfigs": [Function], @@ -34,6 +27,7 @@ exports[` spec renders headers 1`] = ` "getConfig": [Function], "getConfigs": [Function], "getEmailConfigDetails": [Function], + "getNotification": [Function], "getRecipientGroup": [Function], "getRecipientGroups": [Function], "getSESSender": [Function], @@ -42,6 +36,7 @@ exports[` spec renders headers 1`] = ` "getSenders": [Function], "getServerFeatures": [Function], "httpClient": [MockFunction], + "sendTestMessage": [Function], "updateConfig": [Function], }, } @@ -1854,13 +1849,6 @@ exports[` spec renders parameters 1`] = ` onClose={[MockFunction]} services={ Object { - "eventService": EventService { - "getHistogram": [Function], - "getNotification": [Function], - "getNotifications": [Function], - "httpClient": [MockFunction], - "sendTestMessage": [Function], - }, "notificationService": NotificationService { "createConfig": [Function], "deleteConfigs": [Function], @@ -1869,6 +1857,7 @@ exports[` spec renders parameters 1`] = ` "getConfig": [Function], "getConfigs": [Function], "getEmailConfigDetails": [Function], + "getNotification": [Function], "getRecipientGroup": [Function], "getRecipientGroups": [Function], "getSESSender": [Function], @@ -1877,6 +1866,7 @@ exports[` spec renders parameters 1`] = ` "getSenders": [Function], "getServerFeatures": [Function], "httpClient": [MockFunction], + "sendTestMessage": [Function], "updateConfig": [Function], }, } diff --git a/dashboards-notifications/public/pages/Channels/components/ChannelControls.tsx b/dashboards-notifications/public/pages/Channels/components/ChannelControls.tsx index a562e93d..7537ca55 100644 --- a/dashboards-notifications/public/pages/Channels/components/ChannelControls.tsx +++ b/dashboards-notifications/public/pages/Channels/components/ChannelControls.tsx @@ -16,7 +16,6 @@ import _ from 'lodash'; import React, { useContext, useEffect, useState } from 'react'; import { CHANNEL_TYPE, - NOTIFICATION_SOURCE, } from '../../../../public/utils/constants'; import { MainContext } from '../../Main/Main'; import { ChannelFiltersType } from '../types'; @@ -42,14 +41,6 @@ export const ChannelControls = (props: ChannelControlsProps) => { checked: 'off', })) ); - const [isSourcePopoverOpen, setIsSourcePopoverOpen] = useState(false); - const [sourceItems, setSourceItems] = useState( - Object.entries(NOTIFICATION_SOURCE).map(([key, value]) => ({ - field: key, - display: value, - checked: 'off', - })) - ); useEffect(() => { const newItems = typeItems.filter( @@ -86,10 +77,6 @@ export const ChannelControls = (props: ChannelControlsProps) => { setStateItems(newItems); newFilters.state = checkedItems[0]; break; - case 'source': - setSourceItems(newItems); - newFilters.source = checkedItems; - break; case 'type': setTypeItems(newItems); newFilters.type = checkedItems; @@ -175,32 +162,6 @@ export const ChannelControls = (props: ChannelControlsProps) => { ); })} - setIsSourcePopoverOpen(!isSourcePopoverOpen)} - > - {isItemSelected(sourceItems) ? Source : 'Source'} - - } - isOpen={isSourcePopoverOpen} - closePopover={() => setIsSourcePopoverOpen(false)} - panelPaddingSize="none" - > - {sourceItems.map((item, index) => { - return ( - updateItem(sourceItems, index, 'source')} - > - {item.display} - - ); - })} - diff --git a/dashboards-notifications/public/pages/Channels/components/details/ChannelDetails.tsx b/dashboards-notifications/public/pages/Channels/components/details/ChannelDetails.tsx index f7d6ca51..e238cec0 100644 --- a/dashboards-notifications/public/pages/Channels/components/details/ChannelDetails.tsx +++ b/dashboards-notifications/public/pages/Channels/components/details/ChannelDetails.tsx @@ -14,7 +14,6 @@ import { EuiTitle, } from '@elastic/eui'; import { Toast } from '@elastic/eui/src/components/toast/global_toast_list'; -import _ from 'lodash'; import React, { useContext, useEffect, useState } from 'react'; import { RouteComponentProps } from 'react-router-dom'; import { ChannelItemType } from '../../../../../models/interfaces'; @@ -24,7 +23,6 @@ import { ModalConsumer } from '../../../../components/Modal'; import { ServicesContext } from '../../../../services'; import { BREADCRUMBS, - NOTIFICATION_SOURCE, ROUTES, } from '../../../../utils/constants'; import { renderTime } from '../../../../utils/helpers'; @@ -127,16 +125,6 @@ export function ChannelDetails(props: ChannelDetailsProps) { }, ]; - const sources: Array = [ - { - title: 'Notification sources', - description: - channel?.feature_list - .map((source) => _.get(NOTIFICATION_SOURCE, source, '-')) - .join(', ') || '-', - }, - ]; - return ( <> - - - - - - ); } diff --git a/dashboards-notifications/public/pages/Channels/components/details/ChannelDetailsActions.tsx b/dashboards-notifications/public/pages/Channels/components/details/ChannelDetailsActions.tsx index d37a5000..0f113bce 100644 --- a/dashboards-notifications/public/pages/Channels/components/details/ChannelDetailsActions.tsx +++ b/dashboards-notifications/public/pages/Channels/components/details/ChannelDetailsActions.tsx @@ -39,7 +39,7 @@ export function ChannelDetailsActions(props: ChannelDetailsActionsProps) { const sendTestMessage = async () => { try { - await servicesContext.eventService.sendTestMessage( + await servicesContext.notificationService.sendTestMessage( props.channel.config_id, props.channel.feature_list[0] ); diff --git a/dashboards-notifications/public/pages/Channels/types.ts b/dashboards-notifications/public/pages/Channels/types.ts index d8f9c65a..18791809 100644 --- a/dashboards-notifications/public/pages/Channels/types.ts +++ b/dashboards-notifications/public/pages/Channels/types.ts @@ -20,5 +20,4 @@ export type WebhookHttpType = 'HTTP' | 'HTTPS'; export interface ChannelFiltersType { state?: string; type?: string[]; - source?: string[]; } diff --git a/dashboards-notifications/public/pages/CreateChannel/CreateChannel.tsx b/dashboards-notifications/public/pages/CreateChannel/CreateChannel.tsx index 28d40d77..fc694cc7 100644 --- a/dashboards-notifications/public/pages/CreateChannel/CreateChannel.tsx +++ b/dashboards-notifications/public/pages/CreateChannel/CreateChannel.tsx @@ -34,7 +34,6 @@ import { import { getErrorMessage } from '../../utils/helpers'; import { HeaderItemType, WebhookHttpType, WebhookMethodType } from '../Channels/types'; import { MainContext } from '../Main/Main'; -import { ChannelAvailabilityPanel } from './components/ChannelAvailabilityPanel'; import { ChannelNamePanel } from './components/ChannelNamePanel'; import { ChimeSettings } from './components/ChimeSettings'; import { CustomWebhookSettings } from './components/CustomWebhookSettings'; @@ -127,13 +126,6 @@ export function CreateChannel(props: CreateChannelsProps) { const [topicArn, setTopicArn] = useState(''); // SNS topic ARN const [roleArn, setRoleArn] = useState(''); // IAM role ARN (optional for open source distribution) - const [ - sourceCheckboxIdToSelectedMap, - setSourceCheckboxIdToSelectedMap, - ] = useState<{ - [x: string]: boolean; - }>({}); - const [inputErrors, setInputErrors] = useState({ name: [], slackWebhook: [], @@ -187,11 +179,6 @@ export function CreateChannel(props: CreateChannelsProps) { setName(response.name); setDescription(response.description || ''); setChannelType(type); - setSourceCheckboxIdToSelectedMap( - Object.fromEntries( - response.feature_list.map((feature) => [feature, true]) - ) - ); if (type === BACKEND_CHANNEL_TYPE.SLACK) { setSlackWebhook(response.slack?.url || ''); @@ -277,9 +264,7 @@ export function CreateChannel(props: CreateChannelsProps) { name, description, config_type: channelType, - feature_list: Object.entries(sourceCheckboxIdToSelectedMap) - .filter(([key, value]) => value) - .map(([key, value]) => key), + feature_list: ['alerting'], // TODO: Remove this from config when the backend no longer requires it is_enabled: isEnabled, }; if (channelType === BACKEND_CHANNEL_TYPE.SLACK) { @@ -340,7 +325,7 @@ export function CreateChannel(props: CreateChannelsProps) { throw error; }); - await servicesContext.eventService.sendTestMessage( + await servicesContext.notificationService.sendTestMessage( tempChannelId, config.feature_list[0] // for test message any source works ); @@ -462,12 +447,6 @@ export function CreateChannel(props: CreateChannelsProps) { ) : null} - - - @@ -476,9 +455,6 @@ export function CreateChannel(props: CreateChannelsProps) { !enabled - )} onClick={() => { if (!isInputValid()) { coreContext.notifications.toasts.addDanger( diff --git a/dashboards-notifications/public/pages/CreateChannel/__tests__/ChannelAvailabilityPanel.test.tsx b/dashboards-notifications/public/pages/CreateChannel/__tests__/ChannelAvailabilityPanel.test.tsx deleted file mode 100644 index b57d3d31..00000000 --- a/dashboards-notifications/public/pages/CreateChannel/__tests__/ChannelAvailabilityPanel.test.tsx +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { fireEvent, render } from '@testing-library/react'; -import React from 'react'; -import { NOTIFICATION_SOURCE } from '../../../utils/constants'; -import { ChannelAvailabilityPanel } from '../components/ChannelAvailabilityPanel'; - -describe(' spec', () => { - it('renders the component', () => { - const setSourceCheckboxIdToSelectedMap = jest.fn() as any; - const utils = render( - - ); - expect(utils.container.firstChild).toMatchSnapshot(); - }); - - it('selects options', () => { - const setSourceCheckboxIdToSelectedMap = jest.fn() as any; - const utils = render( - - ); - - const [key, value] = Object.entries(NOTIFICATION_SOURCE).slice(0, 1)[0]; - const checkbox = utils.getByText(value); - fireEvent.click(checkbox); - expect(setSourceCheckboxIdToSelectedMap).toBeCalledWith({ [key]: true }); - }); -}); diff --git a/dashboards-notifications/public/pages/CreateChannel/__tests__/CreateChannel.test.tsx b/dashboards-notifications/public/pages/CreateChannel/__tests__/CreateChannel.test.tsx index b972770b..2078bcdd 100644 --- a/dashboards-notifications/public/pages/CreateChannel/__tests__/CreateChannel.test.tsx +++ b/dashboards-notifications/public/pages/CreateChannel/__tests__/CreateChannel.test.tsx @@ -38,7 +38,6 @@ describe(' spec', () => { ); utils.getByTestId('create-channel-create-button').click(); - utils.getByText('Alerting').click(); utils.getByTestId('create-channel-send-test-message-button').click(); expect(utils.container.firstChild).toMatchSnapshot(); }); diff --git a/dashboards-notifications/public/pages/CreateChannel/__tests__/__snapshots__/ChannelAvailabilityPanel.test.tsx.snap b/dashboards-notifications/public/pages/CreateChannel/__tests__/__snapshots__/ChannelAvailabilityPanel.test.tsx.snap deleted file mode 100644 index b7ab41da..00000000 --- a/dashboards-notifications/public/pages/CreateChannel/__tests__/__snapshots__/ChannelAvailabilityPanel.test.tsx.snap +++ /dev/null @@ -1,116 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component 1`] = ` -
-
-
-

- Availability -

-
-
-
-
-
-
- -
-
-
-
- Select the features that can use this channel. -
-
-
-
-
- -
- -
-
- -
- -
-
- -
- -
-
-
-
-
-
-`; diff --git a/dashboards-notifications/public/pages/CreateChannel/components/ChannelAvailabilityPanel.tsx b/dashboards-notifications/public/pages/CreateChannel/components/ChannelAvailabilityPanel.tsx deleted file mode 100644 index c0bb586f..00000000 --- a/dashboards-notifications/public/pages/CreateChannel/components/ChannelAvailabilityPanel.tsx +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { - EuiCheckboxGroup, - EuiCheckboxGroupOption, - EuiFormRow, - EuiSpacer, - EuiText, -} from '@elastic/eui'; -import React from 'react'; -import { ContentPanel } from '../../../components/ContentPanel'; -import { NOTIFICATION_SOURCE } from '../../../utils/constants'; - -interface ChannelAvailabilityPanelProps { - sourceCheckboxIdToSelectedMap: { [x: string]: boolean }; - setSourceCheckboxIdToSelectedMap: (map: { [x: string]: boolean }) => void; -} - -export function ChannelAvailabilityPanel(props: ChannelAvailabilityPanelProps) { - const sourceOptions: EuiCheckboxGroupOption[] = Object.entries( - NOTIFICATION_SOURCE - ).map(([key, value]) => ({ - id: key, - label: value, - })); - - return ( - - - <> - - Select the features that can use this channel. - - - { - props.setSourceCheckboxIdToSelectedMap({ - ...props.sourceCheckboxIdToSelectedMap, - ...{ - [optionId]: !props.sourceCheckboxIdToSelectedMap[optionId], - }, - }); - }} - /> - - - - ); -} diff --git a/dashboards-notifications/public/pages/Main/Main.tsx b/dashboards-notifications/public/pages/Main/Main.tsx index faa135c0..4fa94d4f 100644 --- a/dashboards-notifications/public/pages/Main/Main.tsx +++ b/dashboards-notifications/public/pages/Main/Main.tsx @@ -20,18 +20,15 @@ import { CreateSender } from '../Emails/CreateSender'; import { CreateSESSender } from '../Emails/CreateSESSender'; import { EmailGroups } from '../Emails/EmailGroups'; import { EmailSenders } from '../Emails/EmailSenders'; -import Notifications from '../Notifications'; enum Navigation { Notifications = 'Notifications', - Dashboard = 'Dashboard', Channels = 'Channels', EmailSenders = 'Email senders', EmailGroups = 'Email recipient groups', } enum Pathname { - Notifications = '/notifications', Channels = '/channels', } @@ -94,14 +91,8 @@ export default class Main extends Component { { name: Navigation.Notifications, id: 0, - href: `#${Pathname.Notifications}`, + href: `#${Pathname.Channels}`, items: [ - { - name: Navigation.Dashboard, - id: 1, - href: `#${Pathname.Notifications}`, - isSelected: pathname === Pathname.Notifications, - }, { name: Navigation.Channels, id: 2, @@ -181,16 +172,6 @@ export default class Main extends Component { /> )} /> - ( - - )} - /> ( @@ -239,7 +220,7 @@ export default class Main extends Component { )} /> - + diff --git a/dashboards-notifications/public/pages/Main/__tests__/__snapshots__/Main.test.tsx.snap b/dashboards-notifications/public/pages/Main/__tests__/__snapshots__/Main.test.tsx.snap index e0c5d5a7..8734b4c4 100644 --- a/dashboards-notifications/public/pages/Main/__tests__/__snapshots__/Main.test.tsx.snap +++ b/dashboards-notifications/public/pages/Main/__tests__/__snapshots__/Main.test.tsx.snap @@ -42,7 +42,7 @@ exports[`
spec renders the component 1`] = ` > spec renders the component 1`] = `
-
@@ -143,128 +124,58 @@ exports[`
spec renders the component 1`] = ` class="euiPageBody" >
-
-
-
-
-
- -
- - - -
-
-
+
- + +
-
- -
+ +
-
- -
-
- +
+ + + +
+
-
-
- + + + + + Status + + + + +
+
+
+
+ +
+
-
-
-
-
-
-

- Notification history -

-
-

-
-
+
+
+ class="euiCheckbox" + > + +
+ +
+
+
-
- -
+ +
- - - - + +
-
+ + + + + - - + - - + - - + - - - - + Click to sort in ascending order + + + + + + + + + - - -
+
+
-
+
+ - - - + + + - - - + + + -
- Channels + Click to sort in ascending order -
-
+ + +
- -
- - No items found - -
-
- + +

+ No channels to display +

+
+
+ To send or receive notifications, you will need to create a notification channel. +
+ + + +
diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/AddFilterButton.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/AddFilterButton.test.tsx deleted file mode 100644 index b272bb65..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/AddFilterButton.test.tsx +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { fireEvent, render } from '@testing-library/react'; -import React from 'react'; -import { AddFilterButton } from '../components/SearchBar/Filter/AddFilterButton'; - -describe(' spec', () => { - it('renders the component', () => { - const setFilter = jest.fn(); - const utils = render(); - expect(utils.container.firstChild).toMatchSnapshot(); - }); - - it('renders popover', () => { - const setFilter = jest.fn(); - const utils = render(); - const button = utils.getByText('+ Add filter'); - fireEvent.click(button); - expect(utils.container.firstChild).toMatchSnapshot(); - }); -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/EmptyState.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/EmptyState.test.tsx deleted file mode 100644 index 5a8d9511..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/EmptyState.test.tsx +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { fireEvent, render } from '@testing-library/react'; -import { configure, mount, shallow } from 'enzyme'; -import Adapter from 'enzyme-adapter-react-16'; -import React from 'react'; -import { EmptyState } from '../components/EmptyState/EmptyState'; - -describe(' spec', () => { - configure({ adapter: new Adapter() }); - - it('renders the component with channels configured', () => { - const utils = render( - - ); - expect(utils.container.firstChild).toMatchSnapshot(); - }); - - it('renders the component without channels configured', () => { - const utils = render( - - ); - expect(utils.container.firstChild).toMatchSnapshot(); - }); - -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/FilterEditPopover.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/FilterEditPopover.test.tsx deleted file mode 100644 index 9b63e8e2..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/FilterEditPopover.test.tsx +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { fireEvent, render } from '@testing-library/react'; -import React from 'react'; -import { FilterEditPopover } from '../components/SearchBar/Filter/FilterEditPopover'; - -describe(' spec', () => { - it('renders the component', () => { - const setFilter = jest.fn(); - const utils = render( - {}} setFilter={setFilter} /> - ); - expect(utils.container.firstChild).toMatchSnapshot(); - }); - - it('closes popover', () => { - const setFilter = jest.fn(); - const closePopover = jest.fn(); - const utils = render( - - ); - - const cancel = utils.getByText('Cancel'); - fireEvent.click(cancel); - expect(closePopover).toBeCalled(); - }); - - it('changes options', () => { - const setFilter = jest.fn(); - const closePopover = jest.fn(); - const utils = render( - - ); - - const inputs = utils.container.querySelectorAll('input'); - - fireEvent.change(inputs[0], [{ label: 'Status' }]); - fireEvent.change(inputs[1], [{ label: 'is' }]); - }); -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/Filters.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/Filters.test.tsx deleted file mode 100644 index 576b3081..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/Filters.test.tsx +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { render } from '@testing-library/react'; -import React from 'react'; -import { Filters, FilterType } from '../components/SearchBar/Filter/Filters'; - -describe(' spec', () => { - it('renders the component', () => { - const setFilters = jest.fn(); - const filters: FilterType[] = [ - { - field: 'Channel', - operator: 'is', - value: 'test', - inverted: false, - disabled: true, - }, - { - field: 'Source', - operator: 'is one of', - value: [{ label: 'Alerting' }, { label: 'ISM' }], - inverted: true, - disabled: false, - }, - ]; - const utils = render(); - expect(utils.container.firstChild).toMatchSnapshot(); - - utils.getByText('Channel: test').click(); - utils.getByText('Re-enable').click(); - // utils.getByText('Channel: test').click(); - // utils.getByText('Exclude results').click(); - utils.getByText('Channel: test').click(); - utils.getByText('Delete').click(); - }); -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/GlobalFilterButton.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/GlobalFilterButton.test.tsx deleted file mode 100644 index b9f97df4..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/GlobalFilterButton.test.tsx +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { render } from '@testing-library/react'; -import { configure } from 'enzyme'; -import Adapter from 'enzyme-adapter-react-16'; -import React from 'react'; -import { FilterType } from '../components/SearchBar/Filter/Filters'; -import { GlobalFilterButton } from '../components/SearchBar/Filter/GlobalFilterButton'; - -describe(' spec', () => { - configure({ adapter: new Adapter() }); - - it('renders the component', () => { - const setFilters = jest.fn(); - const utils = render( - - ); - expect(utils.container.firstChild).toMatchSnapshot(); - }); - - it('renders the component', () => { - const filters: FilterType[] = [ - { - field: 'Channel', - operator: 'is', - value: 'test', - inverted: false, - disabled: true, - }, - { - field: 'Source', - operator: 'is one of', - value: [{ label: 'Alerting' }, { label: 'ISM' }], - inverted: true, - disabled: false, - }, - ]; - const setFilters = jest.fn(); - const utils = render( - - ); - - utils.getByLabelText('Change all filters').click(); - utils.getByText('Enable all').click(); - utils.getByLabelText('Change all filters').click(); - utils.getByText('Disable all').click(); - // utils.getByLabelText('Change all filters').click(); - // utils.getByText('Invert inclusion').click(); - utils.getByLabelText('Change all filters').click(); - utils.getByText('Invert enabled/disabled').click(); - utils.getByLabelText('Change all filters').click(); - utils.getByText('Remove all').click(); - - expect(setFilters).toBeCalledTimes(4); - }); -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/HistogramControls.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/HistogramControls.test.tsx deleted file mode 100644 index 63bf42f2..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/HistogramControls.test.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { render } from '@testing-library/react'; -import React from 'react'; -import { HistogramControls } from '../components/NotificationsHistogram/HistogramControls'; - -describe(' spec', () => { - it('renders the component', () => { - const setHistogramType = jest.fn(); - const utils = render( - - ); - expect(utils.container.firstChild).toMatchSnapshot(); - }); -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/Notifications.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/Notifications.test.tsx deleted file mode 100644 index 90d71bc8..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/Notifications.test.tsx +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { fireEvent, render } from '@testing-library/react'; -import { configure } from 'enzyme'; -import Adapter from 'enzyme-adapter-react-16'; -import React from 'react'; -import { RouteComponentProps } from 'react-router-dom'; -import Notifications from '..'; -import { - coreServicesMock, - mainStateMock, - notificationServiceMock, -} from '../../../../test/mocks/serviceMock'; -import { CoreServicesContext } from '../../../components/coreServices'; -import { ServicesContext } from '../../../services'; -import { MainContext } from '../../Main/Main'; - -describe(' spec', () => { - configure({ adapter: new Adapter() }); - - it('renders the component', () => { - const props = { - location: { search: '' }, - match: { params: { id: 'test' } }, - }; - const utils = render( - - - - )} - services={notificationServiceMock} - mainProps={mainStateMock} - /> - - - - ); - - fireEvent.change(utils.getByTestId('notifications-search-bar-input'), { - target: { value: 'test' }, - }); - utils.getByText('Refresh').click(); - expect(utils.container.firstChild).toMatchSnapshot(); - }); -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/NotificationsHistogram.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/NotificationsHistogram.test.tsx deleted file mode 100644 index d1142cff..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/NotificationsHistogram.test.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { render } from '@testing-library/react'; -import React from 'react'; -import { NotificationsHistogram } from '../components/NotificationsHistogram/NotificationsHistogram'; - -describe(' spec', () => { - it('renders the component', () => { - const utils = render(); - expect(utils.container.firstChild).toMatchSnapshot(); - }); -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/NotificationsSearchBar.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/NotificationsSearchBar.test.tsx deleted file mode 100644 index 2f89eb79..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/NotificationsSearchBar.test.tsx +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { fireEvent, render } from '@testing-library/react'; -import React from 'react'; -import { FilterType } from '../components/SearchBar/Filter/Filters'; -import { NotificationsSearchBar } from '../components/SearchBar/NotificationsSearchBar'; - -describe(' spec', () => { - it('renders the component', () => { - const filters: FilterType[] = [ - { - field: 'Channel', - operator: 'is', - value: 'test', - inverted: false, - disabled: true, - }, - { - field: 'Source', - operator: 'is not one of', - value: [{ label: 'Alerting' }, { label: 'ISM' }], - inverted: true, - disabled: false, - }, - ]; - const setStartTime = jest.fn(); - const setEndTime = jest.fn(); - const setSearch = jest.fn(); - const setFilters = jest.fn(); - const refresh = jest.fn(); - const utils = render( - - ); - expect(utils.container.firstChild).toMatchSnapshot(); - - const searchBar = utils.getByPlaceholderText('Search'); - fireEvent.change(searchBar, { target: { value: 'new query' } }); - expect(setSearch).toBeCalledWith('new query'); - - utils.getByText('Refresh').click(); - expect(refresh).toBeCalled(); - }); -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/NotificationsTable.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/NotificationsTable.test.tsx deleted file mode 100644 index ff6e29a2..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/NotificationsTable.test.tsx +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { EuiTableSortingType } from '@elastic/eui'; -import { Pagination } from '@elastic/eui/src/components/basic_table/pagination_bar'; -import { render } from '@testing-library/react'; -import { configure } from 'enzyme'; -import Adapter from 'enzyme-adapter-react-16'; -import React from 'react'; -import { NotificationItem } from '../../../../models/interfaces'; -import { MOCK_DATA } from '../../../../test/mocks/mockData'; -import { NotificationsTable } from '../components/NotificationsTable/NotificationsTable'; -import { DEFAULT_PAGE_SIZE_OPTIONS } from '../utils/constants'; - -describe(' spec', () => { - configure({ adapter: new Adapter() }); - - const sorting: EuiTableSortingType = { - sort: { - direction: 'asc', - field: 'last_updated_time_ms', - }, - }; - - it('renders the component', () => { - const pagination: Pagination = { - pageIndex: 0, - pageSize: 5, - pageSizeOptions: DEFAULT_PAGE_SIZE_OPTIONS, - totalItemCount: 0, - }; - - const utils = render( - {}} - pagination={pagination} - sorting={sorting} - loading={false} - /> - ); - expect(utils.container.firstChild).toMatchSnapshot(); - }); - - it('renders the component with items', () => { - const pagination: Pagination = { - pageIndex: 0, - pageSize: 5, - pageSizeOptions: DEFAULT_PAGE_SIZE_OPTIONS, - totalItemCount: 20, - }; - - const utils = render( - {}} - pagination={pagination} - sorting={sorting} - loading={false} - /> - ); - expect(utils.container.firstChild).toMatchSnapshot(); - }); - -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/TableFlyout.test.tsx b/dashboards-notifications/public/pages/Notifications/__tests__/TableFlyout.test.tsx deleted file mode 100644 index 1aa9a60a..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/TableFlyout.test.tsx +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import { render } from '@testing-library/react'; -import React from 'react'; -import { MOCK_DATA } from '../../../../test/mocks/mockData'; -import { notificationServiceMock } from '../../../../test/mocks/serviceMock'; -import { ChannelCard } from '../components/NotificationsTable/Flyout/ChannelCard'; -import { TableFlyout } from '../components/NotificationsTable/Flyout/TableFlyout'; - -describe(' spec', () => { - - it('renders the component', () => { - const utils = render( - {}} - services={notificationServiceMock} - /> - ); - expect(utils.container.firstChild).toMatchSnapshot(); - }); - - it('clicks card link', () => { - const channel = MOCK_DATA.notifications.items[0].status_list[0] - const onClose = jest.fn(); - const utils = render( - - ); - utils.getByText(channel.config_name).click(); - expect(onClose).toBeCalled(); - }); -}); diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/AddFilterButton.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/AddFilterButton.test.tsx.snap deleted file mode 100644 index f88fa3b5..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/AddFilterButton.test.tsx.snap +++ /dev/null @@ -1,51 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders popover 1`] = ` -
-
- -
-
-`; - -exports[` spec renders the component 1`] = ` -
-
- -
-
-`; diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/EmptyState.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/EmptyState.test.tsx.snap deleted file mode 100644 index b3006366..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/EmptyState.test.tsx.snap +++ /dev/null @@ -1,123 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component with channels configured 1`] = ` -
- -

- No notifications insights to display -

-
-
-
- Adjust your filter or create a channel. - - - Learn more - - -
-
- -
-`; - -exports[` spec renders the component without channels configured 1`] = ` -
- -

- You have no channels set up -

-
-
-
-
- Create a channel, and then configure actions to get notifications from features like Alerting and Index Management. - - - Learn more - - - - -
-
-
- -
- -`; diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/FilterEditPopover.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/FilterEditPopover.test.tsx.snap deleted file mode 100644 index 5971b662..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/FilterEditPopover.test.tsx.snap +++ /dev/null @@ -1,234 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component 1`] = ` -
- -
-
-
-
-
-
-
-
-
-
- -
-
- -
-
-
-
-
-
- -
-
- -
-
-
-`; diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/Filters.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/Filters.test.tsx.snap deleted file mode 100644 index 29200744..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/Filters.test.tsx.snap +++ /dev/null @@ -1,160 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component 1`] = ` -
-
-
-
- -
-
-
-
-
-
- - - - - - -
-
-
-
-
-
- - - - - - -
-
-
-
-
-
- -
-
-
-
-`; diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/GlobalFilterButton.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/GlobalFilterButton.test.tsx.snap deleted file mode 100644 index e8690e29..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/GlobalFilterButton.test.tsx.snap +++ /dev/null @@ -1,29 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component 1`] = ` -
-
- -
-
-`; diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/HistogramControls.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/HistogramControls.test.tsx.snap deleted file mode 100644 index 1e2ad90c..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/HistogramControls.test.tsx.snap +++ /dev/null @@ -1,62 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component 1`] = ` -
-
- -
- -
- - Select an option: Channel type, is selected - - -
- - - -
-
-
-
-
-`; diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/Notifications.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/Notifications.test.tsx.snap deleted file mode 100644 index 9d5078f9..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/Notifications.test.tsx.snap +++ /dev/null @@ -1,555 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component 1`] = ` -
-
-
-

- Dashboard -

-
- -
-
-
-
-
-
- -
- - - -
-
-
-
-
-
-
-
-
-
- -
-
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
-
-
-

- Notification history -

-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - - - - - - -
- - Sent status - -
-
-
- - Channels - -
-
-
- - Channel types - -
-
-
- - No items found - -
-
-
-
-
-
-
-`; diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/NotificationsHistogram.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/NotificationsHistogram.test.tsx.snap deleted file mode 100644 index 1065c840..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/NotificationsHistogram.test.tsx.snap +++ /dev/null @@ -1,129 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component 1`] = ` -
-
-
-

- Notifications by channel type -

-
-
-
-
-
-
-
-
- -
- -
- - Select an option: - , is selected - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`; diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/NotificationsSearchBar.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/NotificationsSearchBar.test.tsx.snap deleted file mode 100644 index c81b1fcf..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/NotificationsSearchBar.test.tsx.snap +++ /dev/null @@ -1,152 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component 1`] = ` -
-
-
-
- -
- - - -
-
-
-
-
-
-
-
-
-
- -
-
-
-
- -
-
-
-
-
-
-
- -
-
-`; diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/NotificationsTable.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/NotificationsTable.test.tsx.snap deleted file mode 100644 index 51b5c38a..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/NotificationsTable.test.tsx.snap +++ /dev/null @@ -1,920 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component 1`] = ` -
-
-
-

- Notification history -

-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - - - - - - -
- - Sent status - -
-
-
- - Channels - -
-
-
- - Channel types - -
-
-
- - No items found - -
-
-
-
-
-
-`; - -exports[` spec renders the component with items 1`] = ` -
-
-
-

- Notification history -

-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - -
- - Sent status - -
-
-
- - Channels - -
-
-
- - Channel types - -
-
-
- Notification -
-
- -
-
-
- Source type -
-
- Reporting -
-
-
- Severity -
-
- Info -
-
-
- Time sent -
-
- 06/07/21 4:53 pm GMT -
-
-
- Sent status -
-
-
-
-
- -
-
- -
-
-
-
-
-
- Channels -
-
- 2 channels -
-
-
- Channel types -
-
- Slack, Email -
-
-
-
-
-
-
-
-
- -
-
-
-
- -
-
-
-
-
-
-`; diff --git a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/TableFlyout.test.tsx.snap b/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/TableFlyout.test.tsx.snap deleted file mode 100644 index b6a1f4ca..00000000 --- a/dashboards-notifications/public/pages/Notifications/__tests__/__snapshots__/TableFlyout.test.tsx.snap +++ /dev/null @@ -1,437 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` spec renders the component 1`] = ` -
-