Entrega dashboard e correccoes transversais preservando Ofertas instalado
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -15,6 +15,11 @@ import {
|
||||
type Preparation,
|
||||
} from '@/components/private-investment-preparation';
|
||||
import ContextDocuments from '@/components/context-documents';
|
||||
import InvestmentBudgetRange from '@/components/investment-budget-range';
|
||||
import DemographicContext from '@/components/demographic-context';
|
||||
import InvestmentSupplyAggregate from '@/components/investment-supply-aggregate';
|
||||
import InvestmentPromoter from '@/components/investment-promoter';
|
||||
import type { SupplyAggregate } from '@/lib/investor-context';
|
||||
import { SelectedComplements } from '@/components/investment-complements';
|
||||
import InvestmentRequirements from '@/components/investment-requirements';
|
||||
import OpportunityChoices from '@/components/investment-opportunity-choices';
|
||||
@@ -91,6 +96,9 @@ type Path = {
|
||||
private_investment?: Preparation | null;
|
||||
fintech: FintechView | null;
|
||||
investment_context: DossierContext | null;
|
||||
can_set_promoter?: boolean;
|
||||
supply_aggregate_enabled?: boolean;
|
||||
supply_aggregates?: SupplyAggregate[];
|
||||
zone_contexts?: {
|
||||
zone_id: string;
|
||||
consulted_public_version: number;
|
||||
@@ -652,11 +660,16 @@ export default function InvestmentPath(path: Path) {
|
||||
)}
|
||||
{!!path.sector_references?.length && (
|
||||
<section className="space-y-3 rounded border p-4">
|
||||
<h2 className="text-lg font-semibold">Sectores e cadeias de valor</h2>
|
||||
<h2 className="text-lg font-semibold">
|
||||
Sectores e cadeias de valor
|
||||
</h2>
|
||||
{path.sector_references.map((reference) => (
|
||||
<article key={reference.key}>
|
||||
<h3>{reference.title}</h3>
|
||||
<p>{reference.location_label ?? reference.locations_text}</p>
|
||||
<p>
|
||||
{reference.location_label ??
|
||||
reference.locations_text}
|
||||
</p>
|
||||
<p>{reference.value_chain}</p>
|
||||
<Link className="underline" href={reference.href}>
|
||||
Consultar a referência mineral
|
||||
@@ -668,12 +681,39 @@ export default function InvestmentPath(path: Path) {
|
||||
<ContextDocuments
|
||||
source={path.investment_context?.selection.opportunity}
|
||||
/>
|
||||
{path.supply_aggregate_enabled && (
|
||||
<InvestmentSupplyAggregate
|
||||
key={path.case.id}
|
||||
caseId={path.case.id}
|
||||
version={path.case.version}
|
||||
revision={path.investment_context?.revision ?? 0}
|
||||
history={path.supply_aggregates ?? []}
|
||||
disabled={!path.canWrite}
|
||||
/>
|
||||
)}
|
||||
<InvestmentPromoter
|
||||
key={path.case.id}
|
||||
caseId={path.case.id}
|
||||
selected={path.investment_context?.promoter_entity}
|
||||
canEdit={path.can_set_promoter ?? false}
|
||||
/>
|
||||
<PreparationSummary
|
||||
data={path.private_investment}
|
||||
caseId={path.case.id}
|
||||
/>
|
||||
{path.investment_context && (
|
||||
<section className="space-y-2 rounded border border-emerald-300 bg-emerald-50 p-4">
|
||||
<InvestmentBudgetRange
|
||||
values={path.investment_context.fields}
|
||||
/>
|
||||
<DemographicContext
|
||||
territoryId={
|
||||
path.investment_context.fields.locality_id ||
|
||||
path.investment_context.fields.admin_post_id ||
|
||||
path.investment_context.fields.district_id ||
|
||||
path.investment_context.fields.province_id
|
||||
}
|
||||
/>
|
||||
<h2 className="font-semibold">As suas escolhas</h2>
|
||||
{Object.values(path.investment_context.selection).map(
|
||||
(ref) => (
|
||||
|
||||
Reference in New Issue
Block a user