forked from github/plane
76cc634a46
* feat: link option in remirror * fix: removed link import from remirror toolbar * refactor: constants folder * refactor: layouts folder structure * fix: issue view context * feat: cycles and modules toggle in settings
37 lines
923 B
TypeScript
37 lines
923 B
TypeScript
// 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" },
|
|
{ name: "None", key: null },
|
|
];
|
|
|
|
export const ORDER_BY_OPTIONS: Array<{ name: string; key: NestedKeyOf<IIssue> | "manual" | null }> =
|
|
[
|
|
// { name: "Manual", key: "manual" },
|
|
{ name: "Last created", key: "created_at" },
|
|
{ name: "Last updated", key: "updated_at" },
|
|
{ name: "Priority", key: "priority" },
|
|
// { name: "None", key: null },
|
|
];
|
|
|
|
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",
|
|
},
|
|
];
|