Initial commit: SKEEN Derma Experts - Sistema Integral de Gestión Clínica
- Frontend React (SKEEN Brand) con Vite, TypeScript, Tailwind - Frontend Homenest (versión alternativa) - Módulos Odoo 17 custom (citas, pacientes, monedero, pagos, ventas, inventario, whatsapp) - WACRM fork (Next.js 16 + Supabase) - Hermes + Bridge + Skills (Qwen3.6 via Nan Builders) - Scripts de migración y operación - Documentación extensiva en docs/
This commit is contained in:
53
wacrm/src/lib/template-status.ts
Normal file
53
wacrm/src/lib/template-status.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
/**
|
||||
* Shared display config for message_templates.status.
|
||||
*
|
||||
* The DB stores Meta's raw enum (DRAFT / APPROVED / PENDING / REJECTED /
|
||||
* PAUSED / DISABLED / IN_APPEAL / PENDING_DELETION) — the UI maps it to
|
||||
* a human label + dark-theme badge classes here so the template manager,
|
||||
* inbox picker, and broadcast picker stay aligned.
|
||||
*/
|
||||
|
||||
import type { MessageTemplateStatus } from '@/types';
|
||||
|
||||
export interface TemplateStatusDisplay {
|
||||
label: string;
|
||||
classes: string;
|
||||
}
|
||||
|
||||
export const templateStatusConfig: Record<
|
||||
MessageTemplateStatus,
|
||||
TemplateStatusDisplay
|
||||
> = {
|
||||
DRAFT: {
|
||||
label: 'Draft',
|
||||
classes: 'bg-slate-600/20 text-muted-foreground border-slate-600/30',
|
||||
},
|
||||
PENDING: {
|
||||
label: 'Pending',
|
||||
classes: 'bg-yellow-600/20 text-yellow-400 border-yellow-600/30',
|
||||
},
|
||||
APPROVED: {
|
||||
label: 'Approved',
|
||||
classes: 'bg-primary/20 text-primary border-primary/30',
|
||||
},
|
||||
REJECTED: {
|
||||
label: 'Rejected',
|
||||
classes: 'bg-red-600/20 text-red-400 border-red-600/30',
|
||||
},
|
||||
PAUSED: {
|
||||
label: 'Paused',
|
||||
classes: 'bg-orange-600/20 text-orange-400 border-orange-600/30',
|
||||
},
|
||||
DISABLED: {
|
||||
label: 'Disabled',
|
||||
classes: 'bg-red-900/30 text-red-500 border-red-900/40',
|
||||
},
|
||||
IN_APPEAL: {
|
||||
label: 'In Appeal',
|
||||
classes: 'bg-blue-600/20 text-blue-400 border-blue-600/30',
|
||||
},
|
||||
PENDING_DELETION: {
|
||||
label: 'Pending Deletion',
|
||||
classes: 'bg-slate-700/30 text-muted-foreground border-slate-700/40',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user