Connect all CRM pages to the BFF and CRM service, add module docs, and mark CRM available in the SuperApp catalog. Co-authored-by: Cursor <cursoragent@cursor.com>
53 lines
1.4 KiB
TypeScript
53 lines
1.4 KiB
TypeScript
/** CRM module visual tokens — extends global DS (globals.css). */
|
|
export const crmTokens = {
|
|
accent: "var(--crm-accent)",
|
|
accentSoft: "var(--crm-accent-soft)",
|
|
slate: "var(--crm-slate)",
|
|
success: "var(--crm-success)",
|
|
warning: "var(--crm-warning)",
|
|
danger: "var(--crm-danger)",
|
|
} as const;
|
|
|
|
export const leadStatusLabels: Record<string, string> = {
|
|
new: "جدید",
|
|
contacted: "تماس گرفته",
|
|
qualified: "واجد شرایط",
|
|
unqualified: "نامناسب",
|
|
converted: "تبدیلشده",
|
|
lost: "از دست رفته",
|
|
};
|
|
|
|
export const leadPriorityLabels: Record<string, string> = {
|
|
low: "کم",
|
|
medium: "متوسط",
|
|
high: "بالا",
|
|
urgent: "فوری",
|
|
};
|
|
|
|
export const opportunityStatusLabels: Record<string, string> = {
|
|
open: "باز",
|
|
won: "برنده",
|
|
lost: "باخته",
|
|
on_hold: "معلق",
|
|
};
|
|
|
|
export const activityStatusLabels: Record<string, string> = {
|
|
planned: "برنامهریزی",
|
|
in_progress: "در جریان",
|
|
completed: "تکمیل",
|
|
cancelled: "لغو",
|
|
};
|
|
|
|
export const contactStatusLabels: Record<string, string> = {
|
|
active: "فعال",
|
|
inactive: "غیرفعال",
|
|
archived: "آرشیو",
|
|
};
|
|
|
|
export const organizationStatusLabels: Record<string, string> = {
|
|
active: "فعال",
|
|
inactive: "غیرفعال",
|
|
prospect: "بالقوه",
|
|
archived: "آرشیو",
|
|
};
|