Skip to content

Commit 43e5d5c

Browse files
authored
Fix activity search and allow searching for meta fields (#440)
1 parent 18819d6 commit 43e5d5c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/modules/activity/ActivityTable.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ const ActivityFeedColumnsTable: ColumnDef<ActivityEvent>[] = [
3737
filterFn: "arrIncludesSomeExact",
3838
cell: ({ row }) => <ActivityEntryRow event={row.original} />,
3939
},
40+
{
41+
id: "activity_text",
42+
accessorFn: (event) => {
43+
try {
44+
if (event.meta) {
45+
return Object.keys(event.meta)
46+
.map((key) => {
47+
return `${event?.meta[key]}`;
48+
})
49+
.join(" ");
50+
}
51+
} catch (error) {
52+
return "";
53+
}
54+
},
55+
},
4056
{
4157
accessorKey: "timestamp",
4258
id: "timestamp",
@@ -103,6 +119,7 @@ export default function ActivityTable({
103119
columnVisibility={{
104120
timestamp: false,
105121
name: false,
122+
activity_text: false,
106123
initiator_email: false,
107124
}}
108125
getStartedCard={

0 commit comments

Comments
 (0)