Group dashboard activities under primary administration and tidy editorial overview
tests / ci (push) Waiting to run
tests / ci (push) Waiting to run
This commit is contained in:
@@ -32,6 +32,7 @@ export function AppSidebar() {
|
||||
contentManagementAccess,
|
||||
profileAccess,
|
||||
scopedAdministration,
|
||||
dashboardNavigation,
|
||||
} = usePage<{
|
||||
auth: Auth;
|
||||
existingBusinessEnabled?: boolean;
|
||||
@@ -41,6 +42,7 @@ export function AppSidebar() {
|
||||
opportunityManagement?: OpportunityManagementAccess | null;
|
||||
contentManagementHref?: string | null;
|
||||
scopedAdministration?: { label: string; href: string }[];
|
||||
dashboardNavigation?: { label: string; href: string }[];
|
||||
contentManagementAccess?: {
|
||||
opportunities?: { index: string; create?: string | null };
|
||||
};
|
||||
@@ -56,6 +58,7 @@ export function AppSidebar() {
|
||||
contentManagementHref,
|
||||
contentManagementAccess,
|
||||
scopedAdministration,
|
||||
dashboardNavigation,
|
||||
legacyContent: currentPage.props.legacyContentEnabled as
|
||||
| boolean
|
||||
| undefined,
|
||||
|
||||
@@ -53,6 +53,7 @@ export function PortalGroupedMenu() {
|
||||
profileAccess?: ProfileAccess | null;
|
||||
opportunityManagement?: OpportunityManagementAccess | null;
|
||||
scopedAdministration?: { label: string; href: string }[];
|
||||
dashboardNavigation?: { label: string; href: string }[];
|
||||
contentManagementHref?: string | null;
|
||||
contentManagementAccess?: {
|
||||
opportunities?: { index: string; create?: string | null };
|
||||
@@ -79,6 +80,7 @@ export function PortalGroupedMenu() {
|
||||
contentManagementHref: props.contentManagementHref,
|
||||
contentManagementAccess: props.contentManagementAccess,
|
||||
scopedAdministration: props.scopedAdministration,
|
||||
dashboardNavigation: props.dashboardNavigation,
|
||||
});
|
||||
const current = currentNavigationGroup(groups, url);
|
||||
const currentItem = currentNavigationItem(groups, url);
|
||||
@@ -93,12 +95,17 @@ export function PortalGroupedMenu() {
|
||||
children.map((item) =>
|
||||
item.children ? (
|
||||
mobile ? (
|
||||
<Fragment key={item.id}>
|
||||
<DropdownMenuLabel className="mt-2 border-t px-3 pt-3 text-xs text-slate-500">
|
||||
<details
|
||||
key={item.id}
|
||||
className="rounded-lg border-b border-slate-100"
|
||||
>
|
||||
<summary className="cursor-pointer px-3 py-3 text-sm font-semibold text-slate-800">
|
||||
{t(item.label)}
|
||||
</DropdownMenuLabel>
|
||||
{items(item.children)}
|
||||
</Fragment>
|
||||
</summary>
|
||||
<div className="border-l border-slate-200 pl-2">
|
||||
{items(item.children)}
|
||||
</div>
|
||||
</details>
|
||||
) : (
|
||||
<DropdownMenuSub key={item.id}>
|
||||
<DropdownMenuSubTrigger className="tempo-menu-item font-semibold">
|
||||
@@ -138,6 +145,7 @@ export function PortalGroupedMenu() {
|
||||
'realization',
|
||||
'support',
|
||||
'work',
|
||||
'administration',
|
||||
].includes(group.id),
|
||||
);
|
||||
const institutionalCurrent = url.split('?')[0] === '/contacto';
|
||||
@@ -203,6 +211,7 @@ export function PortalGroupedMenu() {
|
||||
'discovery',
|
||||
'realization',
|
||||
'support',
|
||||
'administration',
|
||||
].includes(group.id),
|
||||
)
|
||||
.map((group) => (
|
||||
|
||||
Reference in New Issue
Block a user