feat: add unified team content management entry in QA
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-22 20:55:08 +02:00
parent a1b553372e
commit 97d51db60a
16 changed files with 322 additions and 19 deletions
+5
View File
@@ -26,6 +26,7 @@ export function AppSidebar() {
educationEnabled,
aiEnabled,
opportunityManagement,
contentManagementHref,
profileAccess,
} = usePage<{
auth: Auth;
@@ -34,6 +35,7 @@ export function AppSidebar() {
aiEnabled?: boolean;
profileAccess?: ProfileAccess | null;
opportunityManagement?: OpportunityManagementAccess | null;
contentManagementHref?: string | null;
}>().props;
const groups = portalNavigation({
authenticated: !!auth.user,
@@ -48,6 +50,9 @@ export function AppSidebar() {
href: group.children?.find((item) => item.href)?.href ?? '/',
icon: LayoutGrid,
}));
if (contentManagementHref) {
items.unshift({ title: 'Gestão de conteúdos e oportunidades', href: contentManagementHref, icon: LayoutGrid });
}
if (auth.canManagePortal && opportunityManagement) {
items.push({
title: opportunityManagement.manage.label,
@@ -0,0 +1,6 @@
import { Link, usePage } from '@inertiajs/react';
export default function ContentManagementEntry() {
const { contentManagementHref } = usePage<{ contentManagementHref?: string | null }>().props;
return contentManagementHref ? <Link className="inline-block rounded-lg border px-4 py-3 font-semibold underline" href={contentManagementHref}>Gestão de conteúdos e oportunidades</Link> : null;
}