2023-02-08 04:43:07 +00:00
|
|
|
// types
|
|
|
|
import { IIssue, NestedKeyOf } from "types";
|
|
|
|
|
|
|
|
export const GROUP_BY_OPTIONS: Array<{ name: string; key: NestedKeyOf<IIssue> | null }> = [
|
|
|
|
{ name: "State", key: "state_detail.name" },
|
|
|
|
{ name: "Priority", key: "priority" },
|
|
|
|
{ name: "Created By", key: "created_by" },
|
2023-02-14 09:16:48 +00:00
|
|
|
{ name: "Assignee", key: "assignees" },
|
2023-02-08 04:43:07 +00:00
|
|
|
{ name: "None", key: null },
|
|
|
|
];
|
|
|
|
|
2023-02-20 13:49:46 +00:00
|
|
|
export const ORDER_BY_OPTIONS: Array<{ name: string; key: NestedKeyOf<IIssue> | null }> = [
|
|
|
|
{ name: "Manual", key: "sort_order" },
|
|
|
|
{ name: "Last created", key: "created_at" },
|
|
|
|
{ name: "Last updated", key: "updated_at" },
|
|
|
|
{ name: "Priority", key: "priority" },
|
|
|
|
];
|
2023-02-08 04:43:07 +00:00
|
|
|
|
|
|
|
export const FILTER_ISSUE_OPTIONS: Array<{
|
|
|
|
name: string;
|
|
|
|
key: "activeIssue" | "backlogIssue" | null;
|
|
|
|
}> = [
|
|
|
|
{
|
|
|
|
name: "All",
|
|
|
|
key: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Active Issues",
|
|
|
|
key: "activeIssue",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Backlog Issues",
|
|
|
|
key: "backlogIssue",
|
|
|
|
},
|
|
|
|
];
|