[FED-1147] chore: module link mobx integration (#2990)

* chore: link type updated

* chore: mobx implementation for module link

* chore: update module mutation logic updated and toast alert added
This commit is contained in:
Anmol Singh Bhatia 2023-12-05 19:32:25 +05:30 committed by sriram veeraghanta
parent a4d7b2423e
commit a035cee165
9 changed files with 219 additions and 93 deletions

View file

@ -55,7 +55,7 @@ export interface IIssueLink {
url: string;
}
export interface linkDetails {
export interface ILinkDetails {
created_at: Date;
created_by: string;
created_by_detail: IUserLite;
@ -99,7 +99,7 @@ export interface IIssue {
// tempId is used for optimistic updates. It is not a part of the API response.
tempId?: string;
issue_cycle: IIssueCycle | null;
issue_link: linkDetails[];
issue_link: ILinkDetails[];
issue_module: IIssueModule | null;
labels: string[];
label_details: any[];

View file

@ -7,7 +7,7 @@ import type {
IWorkspaceLite,
IProjectLite,
IIssueFilterOptions,
linkDetails,
ILinkDetails,
} from "types";
export type TModuleStatus = "backlog" | "planned" | "in-progress" | "paused" | "completed" | "cancelled";
@ -29,7 +29,7 @@ export interface IModule {
id: string;
lead: string | null;
lead_detail: IUserLite | null;
link_module: linkDetails[];
link_module: ILinkDetails[];
links_list: ModuleLink[];
members: string[];
members_detail: IUserLite[];