feat(mejoras): 14 mejoras al CRM Frasa
Fase 1 - UI: dark mode, skeletons, toasts Fase 2 - Filtros: avanzados Mi día, búsqueda global Ctrl+K Fase 3 - Datos: export Excel, notas apartados, auditoría Fase 4 - Dashboard: gráficas vendedor + métricas uso Fase 5 - Responsive: tablets optimizadas Fase 6 - PWA: IndexedDB offline, push notifications Backend: 3 tablas nuevas, 6 services, 6 endpoints nuevos 721 API tests + fronts verdes.
This commit is contained in:
@@ -3,8 +3,8 @@ import { EstadoVacio, TituloSeccion } from './comunes'
|
||||
import type { ResumenMiDia } from '../lib/mi-tablero'
|
||||
import { fetchResumenMiDia } from '../services/mi-dia'
|
||||
|
||||
const CLASE_CELDA = 'px-4 py-3 text-sm text-[#111827]'
|
||||
const CLASE_ENCABEZADO = 'bg-[#F8FAFC] px-4 py-2 text-left text-xs font-semibold uppercase text-[#64748B]'
|
||||
const CLASE_CELDA = 'px-4 py-3 text-sm text-[#111827] dark:text-[#E2E8F0]'
|
||||
const CLASE_ENCABEZADO = 'bg-[#F8FAFC] px-4 py-2 text-left text-xs font-semibold uppercase text-[#64748B] dark:text-[#94A3B8]'
|
||||
|
||||
/**
|
||||
* Sección "Equipo" (solo coordinador/corporativo/admin): tabla vendedor →
|
||||
@@ -40,14 +40,14 @@ export default function SeccionEquipo() {
|
||||
{!error && !equipo && <EstadoVacio mensaje="Sin datos de equipo" />}
|
||||
{!error && equipo && (
|
||||
<>
|
||||
<p className="mb-4 text-xs text-[#4B5563]">
|
||||
<p className="mb-4 text-xs text-[#4B5563] dark:text-[#CBD5E1]">
|
||||
Leads nuevos sin asignar:{' '}
|
||||
<span className="font-semibold text-[#111827]">{equipo.leadsNuevosSinAsignar}</span>
|
||||
<span className="font-semibold text-[#111827] dark:text-[#E2E8F0]">{equipo.leadsNuevosSinAsignar}</span>
|
||||
</p>
|
||||
{equipo.porVendedor.length === 0 ? (
|
||||
<EstadoVacio mensaje="Sin leads asignados al equipo" />
|
||||
) : (
|
||||
<table className="w-full overflow-hidden rounded-xl border border-[#E5E7EB] bg-white shadow-sm">
|
||||
<table className="w-full overflow-hidden rounded-xl border border-[#E5E7EB] bg-white shadow dark:border-[#1E293B] dark:bg-[#1E293B] -sm">
|
||||
<thead className="border-b border-[#E5E7EB]">
|
||||
<tr>
|
||||
<th className={CLASE_ENCABEZADO}>Vendedor</th>
|
||||
@@ -57,7 +57,7 @@ export default function SeccionEquipo() {
|
||||
</thead>
|
||||
<tbody className="divide-y divide-[#E5E7EB]">
|
||||
{equipo.porVendedor.map((v) => (
|
||||
<tr key={v.mondayUserId} className="transition-colors duration-100 hover:bg-[#F8FAFC]">
|
||||
<tr key={v.mondayUserId} className="transition-colors duration-100 hover:bg-[#F8FAFC] dark:bg-[#0F172A]">
|
||||
<td className={CLASE_CELDA}>{v.nombre ?? `Monday #${v.mondayUserId}`}</td>
|
||||
<td className={CLASE_CELDA}>{v.leadsAsignados}</td>
|
||||
<td className={CLASE_CELDA}>{v.leadsNuevosSemana}</td>
|
||||
|
||||
Reference in New Issue
Block a user