feat: consolidar desenvolvimentos do portal InvestMoz

This commit is contained in:
2026-11-03 23:32:32 +02:00
parent 1da273f1f3
commit 36c8cadb49
345 changed files with 110714 additions and 2799 deletions
@@ -2,6 +2,9 @@ import OpportunityLibraryReuse, {
type LibrarySource,
} from '@/components/opportunity-library-reuse';
import { createOperationKey } from '@/lib/operation-key';
import OpportunityTechnicalIncidents, {
type OpportunityTechnicalIncident,
} from '@/components/opportunity-technical-incidents';
import { valueText } from '@/lib/value-text';
import { Link, router, usePage } from '@inertiajs/react';
import TerritoryGeometryPreview from '@/components/territory-geometry-preview';
@@ -150,6 +153,7 @@ export default function OpportunityResources({
existingLocations,
assessment,
imageProcessingAvailable,
technicalIncidents = [],
librarySources = [],
locationReference = { path: [], differences: [] },
}: {
@@ -164,6 +168,7 @@ export default function OpportunityResources({
existingLocations: { id: string; name: string; location_type: string }[];
assessment: string[];
imageProcessingAvailable: boolean;
technicalIncidents?: OpportunityTechnicalIncident[];
librarySources?: LibrarySource[];
locationReference?: {
path: TerritoryOption[];
@@ -313,6 +318,7 @@ export default function OpportunityResources({
!!opportunity.deleted_at || opportunity.status === 'archived';
return (
<Management title="Imagens, documentos e localizações">
<OpportunityTechnicalIncidents incidents={technicalIncidents} />
<Link href={`${basePath}/${opportunity.id}/edit${returnHash}`}>
Regressar ao rascunho #{opportunity.id}
</Link>