From 7bb1984894428954a0be0890c57d36f61ad70f2c Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal Date: Fri, 24 Jan 2025 17:15:09 +0530 Subject: [PATCH 1/2] fix: recent widgets types and filters --- web/core/components/home/widgets/recents/index.tsx | 1 - web/core/components/home/widgets/recents/page.tsx | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web/core/components/home/widgets/recents/index.tsx b/web/core/components/home/widgets/recents/index.tsx index 02d3ae38d4e..8530563de34 100644 --- a/web/core/components/home/widgets/recents/index.tsx +++ b/web/core/components/home/widgets/recents/index.tsx @@ -24,7 +24,6 @@ const filters: { name: TRecentActivityFilterKeys; icon?: React.ReactNode }[] = [ { name: "all item" }, { name: "issue", icon: }, { name: "page", icon: }, - { name: "workspace_page", icon: }, { name: "project", icon: }, ]; diff --git a/web/core/components/home/widgets/recents/page.tsx b/web/core/components/home/widgets/recents/page.tsx index 8cff40588d2..125c424c1ec 100644 --- a/web/core/components/home/widgets/recents/page.tsx +++ b/web/core/components/home/widgets/recents/page.tsx @@ -49,9 +49,11 @@ export const RecentPage = (props: BlockProps) => { )} -
- {pageDetails?.project_identifier} -
+ {pageDetails?.project_identifier && ( +
+ {pageDetails?.project_identifier} +
+ )}
{pageDetails?.name}
{calculateTimeAgo(activity.visited_at)}
From e4911ada0e5efa175e301004bfc379db7601cf39 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal Date: Fri, 24 Jan 2025 17:17:34 +0530 Subject: [PATCH 2/2] fix: recent widgets types --- packages/types/src/home.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/types/src/home.d.ts b/packages/types/src/home.d.ts index 68fcd4d1de0..56089bf46e3 100644 --- a/packages/types/src/home.d.ts +++ b/packages/types/src/home.d.ts @@ -12,9 +12,9 @@ export type TPageEntityData = { id: string; name: string; logo_props: TLogoProps; - project_id: string; + project_id?: string; owned_by: string; - project_identifier: string; + project_identifier?: string; }; export type TProjectEntityData = {