fix(demography): verify D01-D06 in isolated QA with INE traceability

This commit is contained in:
2026-11-20 20:07:16 +02:00
parent 558c11ef17
commit 3f66201cbe
17 changed files with 570 additions and 89 deletions
+23 -1
View File
@@ -24,6 +24,7 @@ function DemographySelection({
territories,
sectors,
sectorReadings = [],
entrySector,
}: {
evidence: DemographicAnalysis;
filters: {
@@ -44,6 +45,7 @@ function DemographySelection({
href: string;
analysis: SectorAnalysis;
}[];
entrySector?: string | null;
}) {
const [selected, setSelected] = useState(filters.territories ?? []);
const [province, setProvince] = useState('');
@@ -211,6 +213,13 @@ function DemographySelection({
</div>
</form>
<DemographicEvidence evidence={evidence} />
{filters.sector === 'tourism' && (
<p>
Os dados de população constituem contexto territorial. Não
há nesta consulta estatísticas sectoriais de Turismo que
permitam avaliar a procura turística por distrito.
</p>
)}
{evidence.territories.length > 0 && (
<section className="space-y-3 rounded border p-4">
<h2 className="text-xl font-semibold">
@@ -227,7 +236,11 @@ function DemographySelection({
className="block py-2 underline"
href={
'/investimentos/iniciar?source=' +
encodeURIComponent('territory:' + t.id)
encodeURIComponent('territory:' + t.id) +
(entrySector
? '&sector=' +
encodeURIComponent(entrySector)
: '')
}
>
Preparar ideia em {t.name}
@@ -235,6 +248,15 @@ function DemographySelection({
))}
</section>
)}
{filters.sector &&
filters.sector !== 'general' &&
sectorReadings.length === 0 && (
<p>
Não há ideias documentadas compatíveis com o sector
seleccionado nesta consulta. Pode preparar a sua própria
ideia, sem substituir o sector escolhido.
</p>
)}
{sectorReadings.map((reading) => (
<section key={reading.href} className="space-y-3">
<h2 className="text-xl font-semibold">{reading.title}</h2>