forked from github/plane
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:
16
apps/app/types/issues.d.ts
vendored
16
apps/app/types/issues.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
11
apps/app/types/projects.d.ts
vendored
11
apps/app/types/projects.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user