feat(agencia): kpis y cartera arriba en portafolio y subpagina panel de control conexiones

This commit is contained in:
Marcos Fargas
2026-10-17 20:53:38 +02:00
parent e35e7bac26
commit 15c8b56b25
3 changed files with 90 additions and 29 deletions

View File

@@ -23,6 +23,7 @@ import {
Sparkles,
Images,
History,
Plug,
} from 'lucide-react';
import SidebarTenantSwitcher from '@/components/SidebarTenantSwitcher';
import type { DashboardModuleId } from '@/lib/tenant-modules';
@@ -137,7 +138,7 @@ function shouldShowDateHeader(pathname: string | null): boolean {
function isActive(pathname: string, href: string): boolean {
if (pathname === href) return true;
if (href !== '/dashboard' && pathname.startsWith(href + '/')) return true;
if (href !== '/dashboard' && href !== '/dashboard/agencia' && pathname.startsWith(href + '/')) return true;
return false;
}
@@ -288,6 +289,15 @@ export default function DashboardShell({
}}
onNavigate={close}
/>
<NavLink
item={{
href: '/dashboard/agencia/conexiones',
label: 'Panel de control · clientes y conexiones',
icon: Plug,
iconClass: 'text-cyan-500',
}}
onNavigate={close}
/>
<NavLink
item={{
href: '/dashboard/historial',