[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:
parent
a4d7b2423e
commit
a035cee165
9 changed files with 219 additions and 93 deletions
4
web/types/issues.d.ts
vendored
4
web/types/issues.d.ts
vendored
|
|
@ -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[];
|
||||
|
|
|
|||
4
web/types/modules.d.ts
vendored
4
web/types/modules.d.ts
vendored
|
|
@ -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[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue