diff --git a/ui/components/NotificationCenter/metadata.js b/ui/components/NotificationCenter/metadata.js index ed6c175b614..a806c8f3451 100644 --- a/ui/components/NotificationCenter/metadata.js +++ b/ui/components/NotificationCenter/metadata.js @@ -96,7 +96,17 @@ export const ErrorMetadataFormatter = ({ metadata, event }) => { }; const EmptyState = ({ event }) => { - return {event.description} ; + return ( + + {' '} + {event.description}{' '} + + ); }; export const FormattedMetadata = ({ event }) => { diff --git a/ui/components/NotificationCenter/notification.js b/ui/components/NotificationCenter/notification.js index d44f07fadb3..f4bb0922176 100644 --- a/ui/components/NotificationCenter/notification.js +++ b/ui/components/NotificationCenter/notification.js @@ -90,6 +90,7 @@ const useStyles = makeStyles(() => ({ display: 'flex', justifyContent: 'center', alignItems: 'start', + paddingTop: '1rem', }, descriptionHeading: { @@ -113,6 +114,35 @@ export const canTruncateDescription = (description) => { return description.length > MAX_NOTIFICATION_DESCRIPTION_LENGTH; }; +const AvatarStack = ({ avatars, direction }) => { + const theme = useTheme(); + return ( + + {avatars.map((avatar, index) => ( + +
+ +
+
+ ))} +
+ ); +}; + const useMenuStyles = makeStyles((theme) => { return { paper: { @@ -324,6 +354,21 @@ export const Notification = withErrorBoundary(({ event_id }) => { ); }; + const eventActors = [ + ...(event.user_id && user + ? [{ name: userName, avatar_url: userAvatarUrl, tooltip: userName }] + : []), + ...(event.system_id + ? [ + { + name: 'Meshery', + avatar_url: '/static/img/meshery-logo.png', + tooltip: `System ID: ${event.system_id}`, + }, + ] + : []), + ]; + return ( { - - {event.user_id && user && ( - - - - )} - {event.system_id && ( - - - - )} - + />