2023-05-11 17:38:46 +05:30
|
|
|
// types
|
2023-05-15 11:22:06 +05:30
|
|
|
import { TXAxisValues, TYAxisValues } from "types";
|
2023-05-11 17:38:46 +05:30
|
|
|
|
|
|
|
|
export const ANALYTICS_X_AXIS_VALUES: { value: TXAxisValues; label: string }[] = [
|
|
|
|
|
{
|
|
|
|
|
value: "state__name",
|
2023-05-15 11:22:06 +05:30
|
|
|
label: "State name",
|
2023-05-11 17:38:46 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "state__group",
|
2023-05-15 11:22:06 +05:30
|
|
|
label: "State group",
|
2023-05-11 17:38:46 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "priority",
|
|
|
|
|
label: "Priority",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "labels__name",
|
|
|
|
|
label: "Label",
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-08 13:01:43 +05:30
|
|
|
value: "assignees__id",
|
2023-05-11 17:38:46 +05:30
|
|
|
label: "Assignee",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "estimate_point",
|
2023-05-15 11:22:06 +05:30
|
|
|
label: "Estimate point",
|
2023-05-11 17:38:46 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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 15:11:25 +05:30
|
|
|
{
|
|
|
|
|
value: "start_date",
|
|
|
|
|
label: "Start date",
|
|
|
|
|
},
|
2023-05-11 17:38:46 +05:30
|
|
|
{
|
|
|
|
|
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 10:41:37 +05:30
|
|
|
value: "estimate",
|
|
|
|
|
label: "Estimate",
|
2023-05-11 17:38:46 +05:30
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
2023-05-15 11:22:06 +05:30
|
|
|
export const DATE_KEYS = ["completed_at", "target_date", "start_date", "created_at"];
|