From 4d2a39bad2a456767841591a2f6f35b78b7d3f64 Mon Sep 17 00:00:00 2001 From: jinapurapu <65002498+jinapurapu@users.noreply.github.com> Date: Mon, 12 Dec 2022 20:08:20 -0800 Subject: [PATCH] Added HelpBox to Notification Type Selector screen (#2503) --- ...otificationEndpointTypeSelectorHelpBox.tsx | 98 +++++++++++++++++++ .../NotificationTypeSelector.tsx | 78 +++++++++------ 2 files changed, 145 insertions(+), 31 deletions(-) create mode 100644 portal-ui/src/screens/Console/Account/NotificationEndpointTypeSelectorHelpBox.tsx diff --git a/portal-ui/src/screens/Console/Account/NotificationEndpointTypeSelectorHelpBox.tsx b/portal-ui/src/screens/Console/Account/NotificationEndpointTypeSelectorHelpBox.tsx new file mode 100644 index 000000000..d9087cf0a --- /dev/null +++ b/portal-ui/src/screens/Console/Account/NotificationEndpointTypeSelectorHelpBox.tsx @@ -0,0 +1,98 @@ +// This file is part of MinIO Console Server +// Copyright (c) 2022 MinIO, Inc. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +import React from "react"; +import { Box } from "@mui/material"; +import { HelpIconFilled, LambdaNotificationsIcon } from "../../../icons"; + +const FeatureItem = ({ + icon, + description, +}: { + icon: any; + description: string; +}) => { + return ( + + {icon}{" "} +
+ {description} +
+
+ ); +}; +const NotificationEndpointTypeSelectorHelpBox = () => { + return ( + + + +
Learn more about Notification Endpoints
+
+ + + } + description={`What are Lambda Endpoint Notifications?`} + /> + + MinIO bucket notifications allow administrators to send + notifications to supported external services on certain object or + bucket events. MinIO supports bucket and object-level S3 events + similar to the Amazon S3 Event Notifications. + + + +
+ ); +}; + +export default NotificationEndpointTypeSelectorHelpBox; diff --git a/portal-ui/src/screens/Console/NotificationEndpoints/NotificationTypeSelector.tsx b/portal-ui/src/screens/Console/NotificationEndpoints/NotificationTypeSelector.tsx index 943b3a2ef..d70eb6c31 100644 --- a/portal-ui/src/screens/Console/NotificationEndpoints/NotificationTypeSelector.tsx +++ b/portal-ui/src/screens/Console/NotificationEndpoints/NotificationTypeSelector.tsx @@ -29,6 +29,8 @@ import BackLink from "../../../common/BackLink"; import PageLayout from "../Common/Layout/PageLayout"; import { IAM_PAGES } from "../../../common/SecureComponent/permissions"; import ContentBox from "../Common/ContentBox"; +import { Box } from "@mui/material"; +import NotificationEndpointTypeSelectorHelpBox from "../Account/NotificationEndpointTypeSelectorHelpBox"; interface INotificationTypeSelector { classes: any; @@ -58,38 +60,52 @@ const NotificationTypeSelector = ({ classes }: INotificationTypeSelector) => { actions={} /> - -
- Select Target Type -
-
- {withLogos.map((item) => { - return ( - - ); - })} -
-
+
+ {item.targetTitle} +
+ + ); + })} + + + +
);