[WEB-2388] dev: workspace draft issues (#5772)
* chore: workspace draft page added * chore: workspace draft issues services added * chore: workspace draft issue store added * chore: workspace draft issue filter store added * chore: issue rendering * conflicts: resolved merge conflicts * conflicts: handled draft issue store * chore: draft issue modal * chore: code optimisation * chore: ui changes * chore: workspace draft store and modal updated * chore: workspace draft issue component added * chore: updated store and workflow in draft issues * chore: updated issue draft store * chore: updated issue type cleanup in components * chore: code refactor * fix: build error * fix: quick actions * fix: update mutation * fix: create update modal * chore: commented project draft issue code --------- Co-authored-by: gurusainath <gurusainath007@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
This commit is contained in:
parent
e9158f820f
commit
332d2d5c68
45 changed files with 1895 additions and 190 deletions
1
packages/types/src/index.d.ts
vendored
1
packages/types/src/index.d.ts
vendored
|
|
@ -29,3 +29,4 @@ export * from "./pragmatic";
|
|||
export * from "./publish";
|
||||
export * from "./workspace-notifications";
|
||||
export * from "./favorite";
|
||||
export * from "./workspace-draft-issues/base";
|
||||
|
|
|
|||
1
packages/types/src/issues/base.d.ts
vendored
1
packages/types/src/issues/base.d.ts
vendored
|
|
@ -10,6 +10,7 @@ export * from "./issue_relation";
|
|||
export * from "./issue_sub_issues";
|
||||
export * from "./activity/base";
|
||||
|
||||
|
||||
export type TLoader =
|
||||
| "init-loader"
|
||||
| "mutation"
|
||||
|
|
|
|||
61
packages/types/src/workspace-draft-issues/base.d.ts
vendored
Normal file
61
packages/types/src/workspace-draft-issues/base.d.ts
vendored
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
import { TIssuePriorities } from "../issues";
|
||||
|
||||
export type TWorkspaceDraftIssue = {
|
||||
id: string;
|
||||
name: string;
|
||||
sort_order: number;
|
||||
|
||||
state_id: string | undefined;
|
||||
priority: TIssuePriorities | undefined;
|
||||
label_ids: string[];
|
||||
assignee_ids: string[];
|
||||
estimate_point: string | undefined;
|
||||
|
||||
project_id: string | undefined;
|
||||
parent_id: string | undefined;
|
||||
cycle_id: string | undefined;
|
||||
module_ids: string[] | undefined;
|
||||
|
||||
start_date: string | undefined;
|
||||
target_date: string | undefined;
|
||||
completed_at: string | undefined;
|
||||
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
created_by: string;
|
||||
updated_by: string;
|
||||
|
||||
is_draft: boolean;
|
||||
};
|
||||
|
||||
export type TWorkspaceDraftPaginationInfo<T> = {
|
||||
next_cursor: string | undefined;
|
||||
prev_cursor: string | undefined;
|
||||
next_page_results: boolean | undefined;
|
||||
prev_page_results: boolean | undefined;
|
||||
total_pages: number | undefined;
|
||||
count: number | undefined; // current paginated results count
|
||||
total_count: number | undefined; // total available results count
|
||||
total_results: number | undefined;
|
||||
results: T[] | undefined;
|
||||
extra_stats: string | undefined;
|
||||
grouped_by: string | undefined;
|
||||
sub_grouped_by: string | undefined;
|
||||
};
|
||||
|
||||
export type TWorkspaceDraftQueryParams = {
|
||||
per_page: number;
|
||||
cursor: string;
|
||||
};
|
||||
|
||||
export type TWorkspaceDraftIssueLoader =
|
||||
| "init-loader"
|
||||
| "empty-state"
|
||||
| "mutation"
|
||||
| "pagination"
|
||||
| "loaded"
|
||||
| "create"
|
||||
| "update"
|
||||
| "delete"
|
||||
| "move"
|
||||
| undefined;
|
||||
Loading…
Add table
Add a link
Reference in a new issue