Always show Pipeline RRSS under Social when Social is visible.

Remove extra module gates so the editorial pipeline link cannot be filtered out of the sidebar.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-10-13 09:59:13 +02:00
parent 7819448edc
commit 4bc9ed7820

View File

@@ -236,18 +236,8 @@ export default function DashboardShell({
<nav className="flex-1 overflow-y-auto space-y-1.5 pr-1"> <nav className="flex-1 overflow-y-auto space-y-1.5 pr-1">
{visibleNav.map((item) => { {visibleNav.map((item) => {
// Sub-enlaces de Social: siempre que Social esté en el menú.
const underSocial = item.moduleId === 'social'; const underSocial = item.moduleId === 'social';
const showCalendarioUnderSocial =
underSocial &&
(isAgency ||
!enabledModules ||
enabledModules.calendario !== false);
const showPipelineRrssUnderSocial =
underSocial &&
(isAgency ||
!enabledModules ||
enabledModules.calendario !== false ||
enabledModules.creatives !== false);
const subLinkCls = (href: string) => const subLinkCls = (href: string) =>
`ml-4 flex items-center gap-2.5 px-3 py-2 rounded-lg text-xs font-medium transition-all ${ `ml-4 flex items-center gap-2.5 px-3 py-2 rounded-lg text-xs font-medium transition-all ${
isActive(pathname, href) isActive(pathname, href)
@@ -257,25 +247,25 @@ export default function DashboardShell({
return ( return (
<div key={item.href} className="space-y-0.5"> <div key={item.href} className="space-y-0.5">
<NavLink item={item} onNavigate={close} /> <NavLink item={item} onNavigate={close} />
{showCalendarioUnderSocial ? ( {underSocial ? (
<Link <>
href="/dashboard/calendario" <Link
onClick={close} href="/dashboard/calendario"
className={subLinkCls('/dashboard/calendario')} onClick={close}
> className={subLinkCls('/dashboard/calendario')}
<CalendarDays className="w-3.5 h-3.5 shrink-0 text-pink-500" /> >
Calendario editorial <CalendarDays className="w-3.5 h-3.5 shrink-0 text-pink-500" />
</Link> Calendario editorial
) : null} </Link>
{showPipelineRrssUnderSocial ? ( <Link
<Link href="/dashboard/creatives"
href="/dashboard/creatives" onClick={close}
onClick={close} className={subLinkCls('/dashboard/creatives')}
className={subLinkCls('/dashboard/creatives')} >
> <Images className="w-3.5 h-3.5 shrink-0 text-fuchsia-500" />
<Images className="w-3.5 h-3.5 shrink-0 text-fuchsia-500" /> Pipeline RRSS
Pipeline RRSS </Link>
</Link> </>
) : null} ) : null}
</div> </div>
); );