feat: group by created by option (#516)

This commit is contained in:
Aaryan Khandelwal 2023-03-24 01:11:42 +05:30 committed by GitHub
parent 6c6f9a5bfd
commit 472767ab67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 267 additions and 76 deletions

View file

@ -1,10 +1,11 @@
export const GROUP_BY_OPTIONS: Array<{
name: string;
key: "state" | "priority" | "labels" | null;
key: TIssueGroupByOptions;
}> = [
{ name: "State", key: "state" },
{ name: "Priority", key: "priority" },
{ name: "Labels", key: "labels" },
{ name: "Created by", key: "created_by" },
{ name: "None", key: null },
];
@ -36,12 +37,12 @@ export const FILTER_ISSUE_OPTIONS: Array<{
},
];
import { IIssue } from "types";
import { IIssue, TIssueGroupByOptions } from "types";
type THandleIssuesMutation = (
formData: Partial<IIssue>,
oldGroupTitle: string,
selectedGroupBy: "state" | "priority" | "labels" | null,
selectedGroupBy: TIssueGroupByOptions,
issueIndex: number,
prevData?:
| {