fix: mutation for issue update on both kanban & list (#436)

* refactor: issues filter logic

* fix: removed fetch logic from hooks

* feat: filter by assignee and label

* chore: remove filter buttons

* feat: filter options

* fix: mutation for issue update on both kanban & list

---------

Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
Dakshesh Jain
2023-03-15 11:44:44 +05:30
committed by GitHub
parent 636e8e6c60
commit 928ebdf632
33 changed files with 1149 additions and 1036 deletions

View File

@@ -67,7 +67,7 @@ export interface IIssue {
blockers: any[];
blockers_list: string[];
blocks_list: string[];
bridge: string;
bridge_id?: string | null;
completed_at: Date;
created_at: Date;
created_by: string;
@@ -206,3 +206,17 @@ export interface IIssueActivity {
issue_comment: string | null;
actor: string;
}
export interface IIssueFilterOptions {
type: "active" | "backlog" | null;
assignees: string[] | null;
labels: string[] | null;
issue__assignees__id: string[] | null;
issue__labels__id: string[] | null;
}
export interface IIssueViewOptions {
group_by: "state" | "priority" | "labels" | null;
order_by: "created_at" | "updated_at" | "priority" | "sort_order";
filters: IIssueFilterOptions;
}

View File

@@ -1,4 +1,4 @@
import type { IUserLite, IWorkspace } from "./";
import type { IIssueFilterOptions, IUserLite, IWorkspace } from "./";
export interface IProject {
cover_image: string | null;
@@ -34,11 +34,10 @@ export interface IFavoriteProject {
}
type ProjectViewTheme = {
collapsed: boolean;
issueView: "list" | "kanban" | null;
groupByProperty: NestedKeyOf<IIssue> | null;
filterIssue: "activeIssue" | "backlogIssue" | null;
orderBy: NestedKeyOf<IIssue> | null;
issueView: "list" | "kanban";
groupByProperty: "state" | "priority" | "labels" | null;
orderBy: "created_at" | "updated_at" | "priority" | "sort_order";
filters: IIssueFilterOptions;
};
export interface IProjectMember {