feat: roles con modulos por rol + mejoras Mi dia y descarte
- Matriz de roles (vendedor, administracion_venta, director_ventas, escrituracion, direccion_general, admin) con modulos visibles por rol; auth/me y login incluyen 'modulos'; PATCH /usuarios/:id/rol (admin). - Landing: Cobranza -> Clientes, Chat IA -> Chat Hermes, nuevo modulo Contactos (vista interna leyendo el tablero Contactos), grid filtrado por rol, rol visible en Configuracion de cuenta. - Dashboards: tab 'Tablero comercial' y tabs filtrados por rol. - Boton '<- Menu' en el header de todas las apps. - Mi dia: cada lead muestra el ultimo cambio (que, quien, cuando) desde el activity log de Monday (normalizacion de created_at 100ns/us/ms). - Descarte: el motivo se crea en el grupo de su categoria en el tablero Motivos No Compra.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<meta name="theme-color" content="#1B4332" />
|
||||
<link rel="manifest" href="/pay/manifest.webmanifest" />
|
||||
<link rel="apple-touch-icon" href="/pay/icons/icon-192.png" />
|
||||
<title>FRASA Desarrollos — Cobranza</title>
|
||||
<title>FRASA Desarrollos — Clientes</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Frasa · Cobranza",
|
||||
"short_name": "Cobranza",
|
||||
"name": "Frasa · Clientes",
|
||||
"short_name": "Clientes",
|
||||
"start_url": "/pay/",
|
||||
"scope": "/pay/",
|
||||
"display": "standalone",
|
||||
|
||||
@@ -6,11 +6,19 @@ export default function Layout({ children }: { children: ReactNode }) {
|
||||
<div className="min-h-screen bg-[#F8FAFC] text-[#111827]">
|
||||
<header className="sticky top-0 z-10 border-b border-[#E5E7EB] bg-white/95 backdrop-blur">
|
||||
<div className="mx-auto flex h-16 max-w-[1280px] items-center justify-between px-4 sm:px-6">
|
||||
<Link to="/" className="text-sm tracking-widest">
|
||||
<span className="font-bold">FRASA</span>
|
||||
<span className="text-[#F97316]">.</span>{' '}
|
||||
<span className="font-light text-[#64748B]">COBRANZA</span>
|
||||
</Link>
|
||||
<div className="flex items-center gap-3">
|
||||
<a
|
||||
href="/"
|
||||
className="rounded-lg px-2 py-1.5 text-xs font-medium text-[#64748B] transition-all duration-100 ease-out hover:bg-[#F9FAFB] hover:text-[#111827]"
|
||||
>
|
||||
← Menú
|
||||
</a>
|
||||
<Link to="/" className="text-sm tracking-widest">
|
||||
<span className="font-bold">FRASA</span>
|
||||
<span className="text-[#F97316]">.</span>{' '}
|
||||
<span className="font-light text-[#64748B]">CLIENTES</span>
|
||||
</Link>
|
||||
</div>
|
||||
<nav className="flex items-center gap-3 text-sm sm:gap-6">
|
||||
<Link
|
||||
to="/"
|
||||
|
||||
Reference in New Issue
Block a user