From 5153744a350257e6138fd1758137def02fc55f51 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Mon, 25 Sep 2023 19:28:55 +0530 Subject: [PATCH] chore: workspace issues types and constants --- web/constants/project.ts | 2 ++ web/types/view-props.d.ts | 2 +- web/types/views.d.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/constants/project.ts b/web/constants/project.ts index b8e3be9d6..2f15b74bc 100644 --- a/web/constants/project.ts +++ b/web/constants/project.ts @@ -21,6 +21,8 @@ export const GROUP_CHOICES = { cancelled: "Cancelled", }; +export const STATE_GROUP = ["Backlog", "Unstarted", "Started", "Completed", "Cancelled"]; + export const PRIORITIES: TIssuePriorities[] = ["urgent", "high", "medium", "low", "none"]; export const MONTHS = [ diff --git a/web/types/view-props.d.ts b/web/types/view-props.d.ts index 822e9afbf..dd663ae2d 100644 --- a/web/types/view-props.d.ts +++ b/web/types/view-props.d.ts @@ -39,7 +39,7 @@ export interface IIssueFilterOptions { subscriber?: string[] | null; target_date?: string[] | null; estimate_point?: string[] | null; - projects?: string[] | null; + project?: string[] | null; } export interface IIssueDisplayFilterOptions { diff --git a/web/types/views.d.ts b/web/types/views.d.ts index 94a90c1e0..e9741a270 100644 --- a/web/types/views.d.ts +++ b/web/types/views.d.ts @@ -30,5 +30,5 @@ export interface IQuery { start_date: string[] | null; target_date: string[] | null; type: "active" | "backlog" | null; - projects: string[] | null; + project: string[] | null; }