[WEB-2846] feat: home integrations (#6321)

* wip

* chore: wip

* fix: preserved old component

* fix

* fix: seperate route added

* fix

* Only return user ID of project members

* Return issue ID

* fix: recents api integrations

* fix: types

* fix: types

* fix: added tooltips

* chore: added apis

---------

Co-authored-by: sangeethailango <sangeethailango21@gmail.com>
Co-authored-by: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com>
This commit is contained in:
Akshita Goyal 2025-01-06 20:36:13 +05:30 committed by GitHub
parent 0cabde03f0
commit 790ecee629
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
47 changed files with 2100 additions and 38 deletions

76
packages/types/src/home.d.ts vendored Normal file
View file

@ -0,0 +1,76 @@
import { TLogoProps } from "./common";
import { TIssuePriorities } from "./issues";
export type TRecentActivityFilterKeys = "all item" | "issue" | "page" | "project";
export type THomeWidgetKeys = "quick_links" | "recent_activity" | "stickies";
export type THomeWidgetProps = {
workspaceSlug: string;
};
export type TPageEntityData = {
id: string;
name: string;
logo_props: TLogoProps;
project_id: string;
owned_by: string;
project_identifier: string;
};
export type TProjectEntityData = {
id: string;
name: string;
logo_props: TLogoProps;
project_members: string[];
identifier: string;
};
export type TIssueEntityData = {
id: string;
name: string;
state: string;
priority: TIssuePriorities;
assignees: string[];
type: string | null;
sequence_id: number;
project_id: string;
project_identifier: string;
};
export type TActivityEntityData = {
id: string;
entity_name: "page" | "project" | "issue";
entity_identifier: string;
visited_at: string;
entity_data: TPageEntityData | TProjectEntityData | TIssueEntityData;
};
export type TLinkEditableFields = {
title: string;
url: string;
};
export type TLink = TLinkEditableFields & {
created_by_id: string;
id: string;
metadata: any;
workspace_slug: string;
//need
created_at: Date;
};
export type TLinkMap = {
[workspace_slug: string]: TLink;
};
export type TLinkIdMap = {
[workspace_slug: string]: string[];
};
export type TWidgetEntityData = {
key: string;
name: string;
is_enabled: boolean;
sort_order: number;
};

View file

@ -38,3 +38,4 @@ export * from "./timezone";
export * from "./activity";
export * from "./epics";
export * from "./charts";
export * from "./home";