From 4404b309c8f9caf946fc53e5377ac7e03cabdbd1 Mon Sep 17 00:00:00 2001 From: Marcos Fargas Date: Sun, 18 Oct 2026 00:31:33 +0200 Subject: [PATCH] feat(shell): mover Creatividades Ads debajo de Plataforma de marca en Biblioteca de activos --- src/app/dashboard/marca/page.tsx | 2 +- src/components/BrandZone.tsx | 4 ++-- src/components/DashboardShell.tsx | 35 +++++++++++++++++++++++-------- src/lib/tenant-modules.ts | 2 +- 4 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/app/dashboard/marca/page.tsx b/src/app/dashboard/marca/page.tsx index 4d884e3..ba262fc 100644 --- a/src/app/dashboard/marca/page.tsx +++ b/src/app/dashboard/marca/page.tsx @@ -21,7 +21,7 @@ export default async function MarcaPage() {

- Zona de marca · {book.brand_name || tenantLabel} + Plataforma de marca · {book.brand_name || tenantLabel}

ADN, voz, visual, audiencias y copy de ads/RRSS · mismo layout que Estilo y Brief @@ -831,7 +831,7 @@ export default function BrandZone({ {section !== 'overview' ? (

- Zona de marca + Plataforma de marca

{secMeta?.label} diff --git a/src/components/DashboardShell.tsx b/src/components/DashboardShell.tsx index 290f6db..164273a 100644 --- a/src/components/DashboardShell.tsx +++ b/src/components/DashboardShell.tsx @@ -75,13 +75,6 @@ const NAV_ITEMS: NavItem[] = [ iconClass: 'text-blue-500', moduleId: 'activos', }, - { - href: '/dashboard/creatividades', - label: 'Creatividades Ads', - icon: Sparkles, - iconClass: 'text-brand-500', - moduleId: 'creatives', - }, { href: '/dashboard/asistente', label: 'Asistente IA Financiero', @@ -250,6 +243,8 @@ export default function DashboardShell({ (pathname !== null && pathname.startsWith('/dashboard/activos/')) || pathname === '/dashboard/marca' || (pathname !== null && pathname.startsWith('/dashboard/marca/')) || + pathname === '/dashboard/creatividades' || + (pathname !== null && pathname.startsWith('/dashboard/creatividades/')) || pathname === '/dashboard/creatives' || (pathname !== null && pathname.startsWith('/dashboard/creatives/')); @@ -291,7 +286,12 @@ export default function DashboardShell({ ); } if (item.moduleId === 'activos') { - return moduleOn('activos') || moduleOn('marca') || moduleOn('pipeline'); + return ( + moduleOn('activos') || + moduleOn('marca') || + moduleOn('creatives') || + moduleOn('pipeline') + ); } return moduleOn(item.moduleId); }; @@ -434,7 +434,24 @@ export default function DashboardShell({ : 'text-mist-400 group-hover:text-mist-300' }`} /> - Zona de marca + Plataforma de marca + + ) : null} + + {moduleOn('creatives') ? ( + + + Creatividades Ads ) : null} diff --git a/src/lib/tenant-modules.ts b/src/lib/tenant-modules.ts index 0b398cf..613cd29 100644 --- a/src/lib/tenant-modules.ts +++ b/src/lib/tenant-modules.ts @@ -65,7 +65,7 @@ export const DASHBOARD_MODULES: DashboardModuleDef[] = [ { id: 'marca', href: '/dashboard/marca', - label: 'Zona de marca', + label: 'Plataforma de marca', providers: [], hint: 'Brandbook: voz, oferta, ads, LinkedIn, blog', },