2023-05-11 12:08:46 +00:00
|
|
|
// types
|
2023-05-15 05:52:06 +00:00
|
|
|
import { TXAxisValues, TYAxisValues } from "types";
|
2023-05-11 12:08:46 +00:00
|
|
|
|
|
|
|
export const ANALYTICS_X_AXIS_VALUES: { value: TXAxisValues; label: string }[] = [
|
|
|
|
{
|
|
|
|
value: "state__name",
|
2023-05-15 05:52:06 +00:00
|
|
|
label: "State name",
|
2023-05-11 12:08:46 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "state__group",
|
2023-05-15 05:52:06 +00:00
|
|
|
label: "State group",
|
2023-05-11 12:08:46 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "priority",
|
|
|
|
label: "Priority",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "labels__name",
|
|
|
|
label: "Label",
|
|
|
|
},
|
|
|
|
{
|
2023-08-08 07:31:43 +00:00
|
|
|
value: "assignees__id",
|
2023-05-11 12:08:46 +00:00
|
|
|
label: "Assignee",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "estimate_point",
|
2023-05-15 05:52:06 +00:00
|
|
|
label: "Estimate point",
|
2023-05-11 12:08:46 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "issue_cycle__cycle__name",
|
|
|
|
label: "Cycle",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "issue_module__module__name",
|
|
|
|
label: "Module",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "completed_at",
|
|
|
|
label: "Completed date",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "target_date",
|
|
|
|
label: "Due date",
|
|
|
|
},
|
2023-08-18 09:41:25 +00:00
|
|
|
{
|
|
|
|
value: "start_date",
|
|
|
|
label: "Start date",
|
|
|
|
},
|
2023-05-11 12:08:46 +00:00
|
|
|
{
|
|
|
|
value: "created_at",
|
|
|
|
label: "Created date",
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const ANALYTICS_Y_AXIS_VALUES: { value: TYAxisValues; label: string }[] = [
|
|
|
|
{
|
|
|
|
value: "issue_count",
|
|
|
|
label: "Issue Count",
|
|
|
|
},
|
|
|
|
{
|
2023-05-16 05:11:37 +00:00
|
|
|
value: "estimate",
|
|
|
|
label: "Estimate",
|
2023-05-11 12:08:46 +00:00
|
|
|
},
|
|
|
|
];
|
|
|
|
|
2023-05-15 05:52:06 +00:00
|
|
|
export const DATE_KEYS = ["completed_at", "target_date", "start_date", "created_at"];
|