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
@@ -1,4 +1,4 @@
import PortalProductIdentity from '@/components/portal-product-identity';
import '@/components/portal-product-identity';
import { searchTerritoryHref } from '@/lib/search-territory';
import { Link, router, usePage } from '@inertiajs/react';
import {
@@ -45,7 +45,7 @@ export function PortalGroupedMenu() {
auth: {
user: { name?: string; email?: string } | null;
canManagePortal: boolean;
legacyManagementAccess?:boolean;
legacyManagementAccess?: boolean;
};
existingBusinessEnabled?: boolean;
businessReviewUrl?: string | null;
@@ -57,7 +57,9 @@ export function PortalGroupedMenu() {
opportunityManagement?: OpportunityManagementAccess | null;
scopedAdministration?: { label: string; href: string }[];
contentManagementHref?: string | null;
contentManagementAccess?: {opportunities?:{index:string;create?:string|null}};
contentManagementAccess?: {
opportunities?: { index: string; create?: string | null };
};
}>();
const { t, language, requestCount } = useTempoUi();
const mobile = useIsMobile();
@@ -131,7 +133,9 @@ export function PortalGroupedMenu() {
);
const accountGroups = groups.filter(
(group) =>
!['home', 'discovery', 'realization', 'support','work'].includes(group.id),
!['home', 'discovery', 'realization', 'support', 'work'].includes(
group.id,
),
);
const panelLabel = `${t('O meu painel')} — ${requestCount} ${t(requestCount === 1 ? 'pedido recebido' : 'pedidos recebidos')}`;
const institutionalCurrent = url.split('?')[0] === '/contacto';