From ec41f7be155b6b878b8a03f8f1abd364e28183ae Mon Sep 17 00:00:00 2001
From: Aniket Katkar <51777795+aniketkatkar97@users.noreply.github.com>
Date: Tue, 9 Aug 2022 18:19:17 +0530
Subject: [PATCH] Feat(UI): Added announcement filter option for activity
feeds. (#6669)
* Added announcement filter option in thread filter dropdown for activity feeds
* Added alt props for icons and minor improvement in dropdownlist
---
.../ActivityFeedList.util.tsx | 70 +++++++++++++++++--
.../ui/src/components/Users/Users.util.tsx | 27 ++++++-
.../src/components/dropdown/DropDownList.tsx | 13 ++--
3 files changed, 95 insertions(+), 15 deletions(-)
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedList/ActivityFeedList.util.tsx b/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedList/ActivityFeedList.util.tsx
index 38fa76db504..a7341b33ca7 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedList/ActivityFeedList.util.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedList/ActivityFeedList.util.tsx
@@ -5,22 +5,50 @@ export const filterList = [
{
name: 'All Activity',
value: 'ALL',
- icon: ,
+ icon: (
+
+ ),
},
{
name: 'My Data',
value: 'OWNER',
- icon: ,
+ icon: (
+
+ ),
},
{
name: 'Mentions',
value: 'MENTIONS',
- icon: ,
+ icon: (
+
+ ),
},
{
name: 'Following',
value: 'FOLLOWS',
- icon: ,
+ icon: (
+
+ ),
},
];
@@ -28,17 +56,45 @@ export const threadFilterList = [
{
name: 'All Threads',
value: 'ALL',
- icon: ,
+ icon: (
+
+ ),
},
{
name: 'Task',
value: 'Task',
- icon: ,
+ icon: (
+
+ ),
},
{
name: 'Conversation',
value: 'Conversation',
- icon: ,
+ icon: (
+
+ ),
+ },
+ {
+ name: 'Announcement',
+ value: 'Announcement',
+ icon: (
+
+ ),
},
];
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Users/Users.util.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Users/Users.util.tsx
index 4344450ecd5..e35b9cb5ad4 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/Users/Users.util.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/Users/Users.util.tsx
@@ -5,16 +5,37 @@ export const userPageFilterList = [
{
name: 'My Data',
value: 'OWNER',
- icon: ,
+ icon: (
+
+ ),
},
{
name: 'Mentions',
value: 'MENTIONS',
- icon: ,
+ icon: (
+
+ ),
},
{
name: 'Following',
value: 'FOLLOWS',
- icon: ,
+ icon: (
+
+ ),
},
];
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/dropdown/DropDownList.tsx b/openmetadata-ui/src/main/resources/ui/src/components/dropdown/DropDownList.tsx
index db162165e32..98af2344720 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/dropdown/DropDownList.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/dropdown/DropDownList.tsx
@@ -121,11 +121,14 @@ const DropDownList: FunctionComponent = ({
{item.type === 'user' ? (
) : (
-
- {item.name}
-
+ <>
+ {item.icon}
+
+ {item.name}
+
+ >
)}
);