mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
[PE-248] regression: recent widgets refactor for scalability (#6456)
* fix: recent widgets types and filters * fix: recent widgets types
This commit is contained in:
committed by
GitHub
parent
c429ca7b36
commit
b016ed78cf
4
packages/types/src/home.d.ts
vendored
4
packages/types/src/home.d.ts
vendored
@@ -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 = {
|
||||
|
||||
@@ -24,7 +24,6 @@ const filters: { name: TRecentActivityFilterKeys; icon?: React.ReactNode }[] = [
|
||||
{ name: "all item" },
|
||||
{ name: "issue", icon: <LayersIcon className="flex-shrink-0 size-4" /> },
|
||||
{ name: "page", icon: <FileText className="flex-shrink-0 size-4" /> },
|
||||
{ name: "workspace_page", icon: <FileText className="flex-shrink-0 size-4" /> },
|
||||
{ name: "project", icon: <Briefcase className="flex-shrink-0 size-4" /> },
|
||||
];
|
||||
|
||||
|
||||
@@ -49,9 +49,11 @@ export const RecentPage = (props: BlockProps) => {
|
||||
)}
|
||||
</>
|
||||
</div>
|
||||
<div className="font-medium text-custom-sidebar-text-400 text-sm whitespace-nowrap">
|
||||
{pageDetails?.project_identifier}
|
||||
</div>
|
||||
{pageDetails?.project_identifier && (
|
||||
<div className="font-medium text-custom-sidebar-text-400 text-sm whitespace-nowrap">
|
||||
{pageDetails?.project_identifier}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="text-custom-text-200 font-medium text-sm whitespace-nowrap">{pageDetails?.name}</div>
|
||||
<div className="font-medium text-xs text-custom-text-400">{calculateTimeAgo(activity.visited_at)}</div>
|
||||
|
||||
Reference in New Issue
Block a user