fix: connect documentary anchors to investment preparation and recover accepted territories
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-23 19:17:15 +02:00
parent cdf8fcfba4
commit 3fd5128c62
21 changed files with 1668 additions and 33 deletions
@@ -444,6 +444,10 @@ export default function InvestmentPath(path: Path) {
Os meus investimentos
</Link>
<h1 className="text-2xl font-semibold">{path.case.title}</h1>
{path.investment_context?.selection.portfolio && <p className="rounded border p-4">
Origem documental: <Link className="underline" href={path.investment_context.selection.portfolio.href}>{path.investment_context.selection.portfolio.title}</Link>.
{' '}A localização do investimento é escolhida no contexto.
</p>}
{!!path.opportunity_options?.length && <label className="block rounded border p-4">Oportunidade em tratamento
<select className="ml-2 rounded border p-2" value={path.context_opportunity ?? ''} onChange={event => router.get(`/investimentos/${path.case.id}`, event.target.value ? {opportunity:event.target.value} : {}, {preserveState:false})}>
<option value="">Escolha a oportunidade</option>