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