feat: display precise public labour and economic observations in map context
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-04 11:45:42 +02:00
parent a9241ff26b
commit 3f50f66633
12 changed files with 861 additions and 12 deletions
@@ -1,4 +1,7 @@
import { useEffect, useState } from 'react';
import InvestmentMapIndicators, {
type QuantitativeMapContext,
} from './investment-map-indicators';
import CatalogueInvestmentMap from './catalogue-investment-map';
import type {
InvestmentMapArea,
@@ -51,12 +54,14 @@ export default function ThematicInvestmentMap({
records,
territoryId,
truncated,
quantitative = null,
}: {
points: InvestmentMapFeature[] | null;
areas: InvestmentMapArea[];
records: ThematicMapRecord[];
territoryId?: string;
truncated: boolean;
quantitative?: QuantitativeMapContext | null;
}) {
const [theme, setTheme] = useState('all');
useEffect(() => {
@@ -130,8 +135,8 @@ export default function ThematicInvestmentMap({
(proof) => proof.category === key,
),
).length,
)}
)
)}{' '}
de oportunidades)
</option>
))}
</select>
@@ -140,7 +145,9 @@ export default function ThematicInvestmentMap({
evidência pública seleccionada. Os marcadores localizam a
oportunidade; não representam a posição exacta, capacidade
ou disponibilidade do recurso ou da infra-estrutura. A
pesquisa geral mantém os seus filtros e resultados.
pesquisa geral mantém os seus filtros e resultados. As
contagens desta secção são de oportunidades; os indicadores
territoriais têm contagem própria.
</p>
<p>
Mão-de-obra: a evidência pode descrever necessidades ou
@@ -174,9 +181,9 @@ export default function ThematicInvestmentMap({
</p>
{selected.length === 0 && (
<p>
Sem evidência pública local para esta camada e
estes filtros. Não foram criadas posições no
mapa.
Sem evidência pública local nas oportunidades
desta camada e estes filtros. Não foram criadas
posições no mapa.
</p>
)}
{selected.length > 0 && (
@@ -267,6 +274,7 @@ export default function ThematicInvestmentMap({
</>
)}
</section>
<InvestmentMapIndicators context={quantitative} theme={theme} />
<CatalogueInvestmentMap
points={visiblePoints}
areas={visibleAreas}