fix(mi-dia): mostrar desarrollo en cards de leads
- LeadMiDia ahora incluye campo 'desarrollo' - Backend: mapeado desde Monday leads y desde LeadCaptura local - Frontend: FilaLead muestra teléfono · desarrollo · origen
This commit is contained in:
@@ -53,6 +53,7 @@ export interface LeadMiDia {
|
|||||||
email: string
|
email: string
|
||||||
estado: string
|
estado: string
|
||||||
origen: string
|
origen: string
|
||||||
|
desarrollo?: string
|
||||||
updatedAt: string
|
updatedAt: string
|
||||||
/** Tablero del item: 'lead' (tablero Leads) u 'oportunidad' (Oportunidades) */
|
/** Tablero del item: 'lead' (tablero Leads) u 'oportunidad' (Oportunidades) */
|
||||||
fuente: 'lead' | 'oportunidad'
|
fuente: 'lead' | 'oportunidad'
|
||||||
@@ -274,6 +275,7 @@ export async function resumenMiDia(
|
|||||||
email: l.email,
|
email: l.email,
|
||||||
estado: l.estado,
|
estado: l.estado,
|
||||||
origen: l.origen,
|
origen: l.origen,
|
||||||
|
desarrollo: l.desarrollo ?? '',
|
||||||
updatedAt: l.updatedAt,
|
updatedAt: l.updatedAt,
|
||||||
fuente: 'lead',
|
fuente: 'lead',
|
||||||
ultimoCambio: null,
|
ultimoCambio: null,
|
||||||
@@ -288,6 +290,7 @@ export async function resumenMiDia(
|
|||||||
email: o.email,
|
email: o.email,
|
||||||
estado: o.etapa,
|
estado: o.etapa,
|
||||||
origen: o.origen,
|
origen: o.origen,
|
||||||
|
desarrollo: o.desarrollo ?? '',
|
||||||
updatedAt: o.updatedAt,
|
updatedAt: o.updatedAt,
|
||||||
fuente: 'oportunidad',
|
fuente: 'oportunidad',
|
||||||
ultimoCambio: null,
|
ultimoCambio: null,
|
||||||
@@ -656,6 +659,7 @@ export function resumenMiDiaLocal(
|
|||||||
email: c.email ?? '',
|
email: c.email ?? '',
|
||||||
estado: c.etapa,
|
estado: c.etapa,
|
||||||
origen: c.origen ?? '',
|
origen: c.origen ?? '',
|
||||||
|
desarrollo: c.desarrollo ?? '',
|
||||||
updatedAt: c.updatedAt.toISOString(),
|
updatedAt: c.updatedAt.toISOString(),
|
||||||
fuente: 'lead' as const,
|
fuente: 'lead' as const,
|
||||||
ultimoCambio: ultimoCambioLocal(c, usuario.nombre),
|
ultimoCambio: ultimoCambioLocal(c, usuario.nombre),
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ export interface LeadMiDia {
|
|||||||
email: string
|
email: string
|
||||||
estado: string
|
estado: string
|
||||||
origen: string
|
origen: string
|
||||||
|
desarrollo?: string
|
||||||
updatedAt: string
|
updatedAt: string
|
||||||
/** Tablero del item: 'lead' (tablero Leads) u 'oportunidad' (Oportunidades) */
|
/** Tablero del item: 'lead' (tablero Leads) u 'oportunidad' (Oportunidades) */
|
||||||
fuente: 'lead' | 'oportunidad'
|
fuente: 'lead' | 'oportunidad'
|
||||||
|
|||||||
@@ -607,6 +607,7 @@ function FilaLead({
|
|||||||
</p>
|
</p>
|
||||||
<p className="mt-1 text-xs text-[#64748B] dark:text-[#94A3B8]">
|
<p className="mt-1 text-xs text-[#64748B] dark:text-[#94A3B8]">
|
||||||
{lead.telefono || 'Sin teléfono'}
|
{lead.telefono || 'Sin teléfono'}
|
||||||
|
{lead.desarrollo ? ` · ${lead.desarrollo}` : ''}
|
||||||
{lead.origen ? ` · ${lead.origen}` : ''}
|
{lead.origen ? ` · ${lead.origen}` : ''}
|
||||||
</p>
|
</p>
|
||||||
{lead.ultimoCambio && (
|
{lead.ultimoCambio && (
|
||||||
|
|||||||
Reference in New Issue
Block a user