diff --git a/public/pages/Notifications/containers/Notifications/Notifications.tsx b/public/pages/Notifications/containers/Notifications/Notifications.tsx index 774d2dd66..c4f90c6db 100644 --- a/public/pages/Notifications/containers/Notifications/Notifications.tsx +++ b/public/pages/Notifications/containers/Notifications/Notifications.tsx @@ -5,7 +5,17 @@ import React, { ReactChild, useContext, useEffect, useRef, useState } from "react"; import { unstable_batchedUpdates } from "react-dom"; -import { EuiSmallButton, EuiCallOut, EuiEmptyPrompt, EuiFlexGroup, EuiFlexItem, EuiPanel, EuiSpacer, EuiText, EuiTitle } from "@elastic/eui"; +import { + EuiSmallButton, + EuiCallOut, + EuiEmptyPrompt, + EuiFlexGroup, + EuiFlexItem, + EuiPanel, + EuiSpacer, + EuiText, + EuiTitle, +} from "@elastic/eui"; import { get } from "lodash"; import { CoreStart } from "opensearch-dashboards/public"; import useField from "../../../../lib/field"; @@ -34,7 +44,7 @@ import { checkPermissionForSubmitLRONConfig } from "../../../../containers/Notif import "./index.scss"; import { DataSourceMenuContext } from "../../../../services/DataSourceMenuContext"; import { getApplication, getNavigationUI, getUISettings } from "../../../../services/Services"; -import { TopNavControlButtonData } from "../../../../../../../src/plugins/navigation/public"; +import { TopNavControlButtonData, TopNavControlDescriptionData } from "../../../../../../../src/plugins/navigation/public"; export interface NotificationsProps {} @@ -166,13 +176,9 @@ const Notifications = (props: NotificationsProps) => { const descriptionData = [ { - renderComponent: ( - - Configure the default notification settings on index operation statuses, such as failed or completed. You can configure

- additional notification settings while performing an index operation. -
- ), - }, + description: + "Configure the default notification settings on index operation statuses, such as failed or completed. You can configure additional notification settings while performing an index operation.", + } as TopNavControlDescriptionData, ]; const controlsData = [ @@ -287,7 +293,11 @@ const Notifications = (props: NotificationsProps) => { }); return ( {record.title}} + label={ + +

{record.title}

+
+ } helpText={ActionTypeMapDescription[getKeyByValue(ActionTypeMapTitle, record.title) as ActionType]} direction="hoz" key={record.action_name} diff --git a/public/pages/Notifications/containers/Notifications/__snapshots__/Notifications.test.tsx.snap b/public/pages/Notifications/containers/Notifications/__snapshots__/Notifications.test.tsx.snap index 0dc9715d5..0508a19cb 100644 --- a/public/pages/Notifications/containers/Notifications/__snapshots__/Notifications.test.tsx.snap +++ b/public/pages/Notifications/containers/Notifications/__snapshots__/Notifications.test.tsx.snap @@ -170,9 +170,13 @@ exports[` spec renders 1`] = ` class="euiTitle euiTitle--xsmall euiDescribedFormGroup__title" >
- reindex +

+ reindex +

spec renders 1`] = ` class="euiTitle euiTitle--xsmall euiDescribedFormGroup__title" >
- shrink, split, clone +

+ shrink, split, clone +

spec renders 1`] = ` class="euiTitle euiTitle--xsmall euiDescribedFormGroup__title" >
- force merge +

+ force merge +

spec renders 1`] = ` class="euiTitle euiTitle--xsmall euiDescribedFormGroup__title" >
- open +

+ open +