From a7422624c10a8ae6f82a566613c2c726977baf10 Mon Sep 17 00:00:00 2001 From: Manasvini B Suryanarayana Date: Thu, 2 Mar 2023 16:35:04 -0800 Subject: [PATCH] Update Notification event page (#549) Signed-off-by: manasvinibs Co-authored-by: Sean Neumann <1413295+seanneumann@users.noreply.github.com> --- .../notification_event/notification_event.js | 2 -- .../notification_event_example.js | 10 ++-------- .../notification_event_flexible.js | 6 ------ .../notification_event_props_methods.js | 20 +++++-------------- .../notification_event/notifications_feed.js | 10 ---------- 5 files changed, 7 insertions(+), 41 deletions(-) diff --git a/src-docs/src/views/notification_event/notification_event.js b/src-docs/src/views/notification_event/notification_event.js index d1c890e0cc..27a56d244b 100644 --- a/src-docs/src/views/notification_event/notification_event.js +++ b/src-docs/src/views/notification_event/notification_event.js @@ -44,8 +44,6 @@ export default () => { ( export const NotificationEventExample = { title: 'Notification event', - beta: true, - isNew: true, + beta: false, + isNew: false, intro: (

@@ -159,10 +157,6 @@ export const NotificationEventExample = { onRead to allow users to toggle between read and unread states. -

  • - iconType: Display an icon or logo to help - users quickly identify where the event originated. -
  • type (required): Shows inside a badge denoting what type of event it is. Use in conjunction with{' '} diff --git a/src-docs/src/views/notification_event/notification_event_flexible.js b/src-docs/src/views/notification_event/notification_event_flexible.js index 2bfa2eb07b..c4460d1687 100644 --- a/src-docs/src/views/notification_event/notification_event_flexible.js +++ b/src-docs/src/views/notification_event/notification_event_flexible.js @@ -20,8 +20,6 @@ const notificationEventsData = [ { id: 'report', type: 'Report', - iconType: 'logoKibana', - iconAriaLabel: 'Kibana', time: '1 min ago', title: '[Error Monitoring Report] is generated', primaryAction: 'Download', @@ -34,9 +32,7 @@ const notificationEventsData = [ { id: 'alert', type: 'Alert', - iconType: 'logoMaps', severity: 'Warning', - iconAriaLabel: 'Maps', badgeColor: 'warning', time: '2 min ago', title: '[Maps] Geo Alert', @@ -51,8 +47,6 @@ const notificationEventsData = [ { id: 'news', type: 'News', - iconType: 'logoElastic', - iconAriaLabel: 'Elastic', time: '3 min ago', badgeColor: 'accent', title: 'Search more, spend less', diff --git a/src-docs/src/views/notification_event/notification_event_props_methods.js b/src-docs/src/views/notification_event/notification_event_props_methods.js index 72c0418b1f..e5f4659986 100644 --- a/src-docs/src/views/notification_event/notification_event_props_methods.js +++ b/src-docs/src/views/notification_event/notification_event_props_methods.js @@ -13,7 +13,6 @@ import React from 'react'; import { OuiPanel } from '../../../../src/components/panel'; import { OuiBadge } from '../../../../src/components/badge'; import { OuiButtonIcon } from '../../../../src/components/button'; -import { OuiIcon } from '../../../../src/components/icon'; const CircleIndicator = ({ name }) => ( {name} @@ -35,17 +34,8 @@ export default () => { aria-hidden="true" /> - -
    - - -
    -
    - + @@ -54,12 +44,12 @@ export default () => {
    - + time
    - +
    - title + title
    - messages + messages
    primaryAction diff --git a/src-docs/src/views/notification_event/notifications_feed.js b/src-docs/src/views/notification_event/notifications_feed.js index 26ea40c0a9..bbc53e20cc 100644 --- a/src-docs/src/views/notification_event/notifications_feed.js +++ b/src-docs/src/views/notification_event/notifications_feed.js @@ -21,8 +21,6 @@ const notificationEventsData = [ id: 'alert-01', type: 'Alert', severity: 'Warning', - iconType: 'logoMaps', - iconAriaLabel: 'Maps', badgeColor: 'warning', time: '1 min ago', title: '[Maps] Geo Alert', @@ -36,8 +34,6 @@ const notificationEventsData = [ { id: 'report-01', type: 'Report', - iconType: 'logoKibana', - iconAriaLabel: 'Kibana', time: '3 min ago', title: '[Error Monitoring Report] is generated', primaryAction: 'Download', @@ -52,8 +48,6 @@ const notificationEventsData = [ { id: 'news-01', type: 'News', - iconType: 'logoElastic', - iconAriaLabel: 'Elastic', time: '6 min ago', badgeColor: 'accent', title: 'Search more, spend less', @@ -67,8 +61,6 @@ const notificationEventsData = [ id: 'alert-02', type: 'Alert', severity: 'Critical', - iconType: 'logoKibana', - iconAriaLabel: 'Kibana', badgeColor: 'danger', time: '8 min ago', title: 'Index Threshold Alert', @@ -81,8 +73,6 @@ const notificationEventsData = [ { id: 'background-search-01', type: 'Background Search', - iconType: 'logoKibana', - iconAriaLabel: 'Kibana', time: '10 min ago', title: '[Flights] Flight Count and Average Ticket Price', messages: ['The request completed at 12:32:33 GMT+4'],