From 52c6c543bbde04ca23baa1a6527f34e609f51a96 Mon Sep 17 00:00:00 2001
From: Claude
Date: Fri, 4 Dec 2026 17:07:49 +0200
Subject: [PATCH] =?UTF-8?q?Mapa=20de=20erros=204.7:=20uma=20ideia=20nova?=
=?UTF-8?q?=20n=C3=A3o=20se=20perde=20ao=20escolher=20o=20dossier?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Quem chega com um artigo, sector ou parque vê primeiro a criação de um
dossier novo para essa ideia; nos dossiers existentes, a acção principal é
continuar com a referência, e abrir o dossier sem ela fica explícito.
Co-Authored-By: Claude Opus 5.5
Claude-Session: https://claude.ai/code/session_01MzJmxFy3izprXr5dSq91jM
---
resources/js/pages/investor-path/index.tsx | 131 +++++++++++-------
.../sector-resource-reference.test.mjs | 7 +
2 files changed, 90 insertions(+), 48 deletions(-)
diff --git a/resources/js/pages/investor-path/index.tsx b/resources/js/pages/investor-path/index.tsx
index 6416d8f3..ecd7a10c 100644
--- a/resources/js/pages/investor-path/index.tsx
+++ b/resources/js/pages/investor-path/index.tsx
@@ -77,6 +77,63 @@ export default function InvestmentContexts({
: {}),
...(guideSelection ? { investment_guide: guideSelection } : {}),
});
+ // A new reference (park, sector, article) is only kept through the explicit
+ // "continuar" action; opening an old dossier by its title would drop it.
+ const carrying = Boolean(zoneSource || sectorSource || contentSource);
+ const createForm = (
+
+ );
return (
@@ -155,13 +212,24 @@ export default function InvestmentContexts({
)}
-
- Prepare cada investimento no seu dossier. Pode trabalhar em
- várias etapas em paralelo.
-