// types import { TModuleLayoutOptions, TModuleOrderByOptions, TModuleStatus } from "@plane/types"; export const MODULE_STATUS_COLORS: { [key in TModuleStatus]: string; } = { backlog: "#a3a3a2", planned: "#3f76ff", paused: "#525252", completed: "#16a34a", cancelled: "#ef4444", "in-progress": "#f39e1f", }; export const MODULE_STATUS: { i18n_label: string; value: TModuleStatus; color: string; textColor: string; bgColor: string; }[] = [ { i18n_label: "project_modules.status.backlog", value: "backlog", color: MODULE_STATUS_COLORS.backlog, textColor: "text-custom-text-400", bgColor: "bg-custom-background-80", }, { i18n_label: "project_modules.status.planned", value: "planned", color: MODULE_STATUS_COLORS.planned, textColor: "text-blue-500", bgColor: "bg-indigo-50", }, { i18n_label: "project_modules.status.in_progress", value: "in-progress", color: MODULE_STATUS_COLORS["in-progress"], textColor: "text-amber-500", bgColor: "bg-amber-50", }, { i18n_label: "project_modules.status.paused", value: "paused", color: MODULE_STATUS_COLORS.paused, textColor: "text-custom-text-300", bgColor: "bg-custom-background-90", }, { i18n_label: "project_modules.status.completed", value: "completed", color: MODULE_STATUS_COLORS.completed, textColor: "text-green-600", bgColor: "bg-green-100", }, { i18n_label: "project_modules.status.cancelled", value: "cancelled", color: MODULE_STATUS_COLORS.cancelled, textColor: "text-red-500", bgColor: "bg-red-50", }, ]; export const MODULE_VIEW_LAYOUTS: { key: TModuleLayoutOptions; i18n_title: string; }[] = [ { key: "list", i18n_title: "project_modules.layout.list", }, { key: "board", i18n_title: "project_modules.layout.board", }, { key: "gantt", i18n_title: "project_modules.layout.timeline", }, ]; export const MODULE_ORDER_BY_OPTIONS: { key: TModuleOrderByOptions; i18n_label: string; }[] = [ { key: "name", i18n_label: "project_modules.order_by.name", }, { key: "progress", i18n_label: "project_modules.order_by.progress", }, { key: "issues_length", i18n_label: "project_modules.order_by.issues", }, { key: "target_date", i18n_label: "project_modules.order_by.due_date", }, { key: "created_at", i18n_label: "project_modules.order_by.created_at", }, { key: "sort_order", i18n_label: "project_modules.order_by.manual", }, ];