fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
+24 -9
View File
@@ -1,7 +1,10 @@
import {PortalSidebarNavigation} from '@/components/portal-sidebar-navigation';
import { PortalSidebarNavigation } from '@/components/portal-sidebar-navigation';
import type { ProfileAccess } from '@/types/profile-access';
import { Link, usePage } from '@inertiajs/react';
import { portalNavigation,canShowLegacyManagement } from '@/lib/portal-navigation';
import {
portalNavigation,
canShowLegacyManagement,
} from '@/lib/portal-navigation';
import AppLogo from '@/components/app-logo';
import { NavUser } from '@/components/nav-user';
import {
@@ -18,7 +21,7 @@ import type { Auth } from '@/types';
import type { OpportunityManagementAccess } from '@/types/opportunity-management';
export function AppSidebar() {
const currentPage=usePage();
const currentPage = usePage();
const {
auth,
existingBusinessEnabled,
@@ -37,8 +40,10 @@ export function AppSidebar() {
profileAccess?: ProfileAccess | null;
opportunityManagement?: OpportunityManagementAccess | null;
contentManagementHref?: string | null;
scopedAdministration?: {label:string;href:string}[];
contentManagementAccess?: {opportunities?:{index:string;create?:string|null}};
scopedAdministration?: { label: string; href: string }[];
contentManagementAccess?: {
opportunities?: { index: string; create?: string | null };
};
}>().props;
const groups = portalNavigation({
authenticated: !!auth.user,
@@ -51,9 +56,16 @@ export function AppSidebar() {
contentManagementHref,
contentManagementAccess,
scopedAdministration,
legacyContent: currentPage.props.legacyContentEnabled as boolean|undefined,
procurement: currentPage.props.procurementEnabled as boolean|undefined,
businessReviewUrl: currentPage.props.businessReviewUrl as string|null|undefined,
legacyContent: currentPage.props.legacyContentEnabled as
| boolean
| undefined,
procurement: currentPage.props.procurementEnabled as
| boolean
| undefined,
businessReviewUrl: currentPage.props.businessReviewUrl as
| string
| null
| undefined,
});
return (
<Sidebar collapsible="offcanvas" variant="inset">
@@ -70,7 +82,10 @@ export function AppSidebar() {
</SidebarHeader>
<SidebarContent>
<PortalSidebarNavigation groups={groups} url={currentPage.url}/>
<PortalSidebarNavigation
groups={groups}
url={currentPage.url}
/>
</SidebarContent>
<SidebarFooter>