Consolida rastreabilidade territorial e plano autenticado V2
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import { Link, router, usePage } from '@inertiajs/react';
|
||||
import { useState } from 'react';
|
||||
import InvestmentMapPanel from '@/components/investment-map-panel';
|
||||
import StructureGeographyPanel from '@/components/structure-geography';
|
||||
import StructureGeographyPanel, {
|
||||
LocationList,
|
||||
} from '@/components/structure-geography';
|
||||
import PartnershipSourceLinks from '@/components/partnership-source-links';
|
||||
import TerritorialSources from '@/components/territorial-source-evidence';
|
||||
import { Frame, card, button, money, groupLabels } from './shared';
|
||||
import type { Opportunity, Context } from './shared';
|
||||
export default function Detail({
|
||||
@@ -48,11 +51,31 @@ export default function Detail({
|
||||
</p>
|
||||
)}
|
||||
<p className="text-xl">{r.summary}</p>
|
||||
<TerritorialSources sources={c.source_evidence} />
|
||||
<section className={card + ' space-y-3'}>
|
||||
<h2 className="text-xl font-bold">
|
||||
Implantação declarada da oportunidade
|
||||
</h2>
|
||||
<p>
|
||||
As relações cadastradas não confirmam disponibilidade ou
|
||||
capacidade. Locais dos projetos associados, áreas de impacto
|
||||
e abrangência dos clusters são apresentados separadamente.
|
||||
</p>
|
||||
<LocationList locations={c.opportunity_locations ?? []} />
|
||||
{!c.opportunity_locations?.length && (
|
||||
<p>
|
||||
Implantação estruturada não documentada. O contexto
|
||||
associado abaixo não confirma onde a oportunidade será
|
||||
implantada.
|
||||
</p>
|
||||
)}
|
||||
</section>
|
||||
<InvestmentMapPanel filters={{ opportunity_id: r.id }} />
|
||||
{c.primary_territory_path &&
|
||||
c.primary_territory_path.length > 0 && (
|
||||
<p>
|
||||
Localização:{' '}
|
||||
Território principal cadastrado (implantação por
|
||||
confirmar):{' '}
|
||||
{c.primary_territory_path
|
||||
.map((node) => node.name)
|
||||
.join(' → ')}
|
||||
|
||||
Reference in New Issue
Block a user