Fix IA (max_tokens del modelo de razonamiento + fallback al gateway), sidebar con toggle arriba, busqueda de un solo campo (paciente/global), editar expediente, marketing en visitas, responsive de agenda; doc de diagnostico WhatsApp

This commit is contained in:
2026-09-24 10:01:55 +00:00
parent d75411f0d9
commit e32a79084a
14 changed files with 897 additions and 238 deletions

View File

@@ -5,6 +5,19 @@ export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
/**
* Fecha de HOY en horario local (YYYY-MM-DD).
* No usar `new Date().toISOString().split('T')[0]`: convierte a UTC y, en la
* zona de la clínica (Tijuana, UTC-7/-8), a partir de las 16/17 h devuelve el
* día siguiente, con lo que los módulos mostraban "sin datos del día".
*/
export function todayLocal(d: Date = new Date()): string {
const y = d.getFullYear();
const m = String(d.getMonth() + 1).padStart(2, '0');
const day = String(d.getDate()).padStart(2, '0');
return `${y}-${m}-${day}`;
}
type CsvCell = string | number | boolean | null | undefined;
/**