diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dcc55f6..96bfa158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ - Exposed all four themes through the existing Flanders map selection flow. Provider calls remain backend-only and full-Flanders monolithic requests remain outside the bounded safety limits. +- Prevented bounded municipality rasters from being labelled as complete + Flanders coverage; every governed thematic card remains `Op aanvraag` until + the active selection has a measured result. - Kept source semantics explicit: land-use agriculture is not the definitive ALZ parcel declaration series, forest is not a legal forest boundary or biomass model, and DOV soil is a 1949-1971 historical baseline rather than diff --git a/backend/tests/test_sprint240_official_flemish_themes.py b/backend/tests/test_sprint240_official_flemish_themes.py index 0ca9d88b..41fd812a 100644 --- a/backend/tests/test_sprint240_official_flemish_themes.py +++ b/backend/tests/test_sprint240_official_flemish_themes.py @@ -404,4 +404,6 @@ def test_official_vector_routes_and_frontend_use_canonical_backend_path(monkeypa assert "datasetsApi.acquireOfficialVector" in selection_hook assert "datasetsApi.listOfficialVectorProducts" in catalog_hook assert "officialMapProducts.officialVector" in workspace + assert "officialMapProducts.thematic" in workspace + assert "result[product.theme] = null" in workspace assert "geo.api.vlaanderen.be" not in workspace diff --git a/docs/CODEX_EXECUTION_LOG.md b/docs/CODEX_EXECUTION_LOG.md index 666fd8fa..52219833 100644 --- a/docs/CODEX_EXECUTION_LOG.md +++ b/docs/CODEX_EXECUTION_LOG.md @@ -10282,6 +10282,9 @@ Implemented: biological value, estimated PHAB habitat areas and historical soil classes. - Connected all four themes to the existing Flanders product catalog and all-theme selection flow without introducing browser-side provider traffic. +- Browser acceptance exposed and closed a coverage-state defect: a bounded + municipality raster can no longer make a complete-Flanders theme appear + preloaded. Governed thematic cards remain `Op aanvraag`. - Added Compose and editable Unraid runtime settings for provider endpoints and transfer/feature guardrails. diff --git a/frontend/src/components/map/MapWorkspace.tsx b/frontend/src/components/map/MapWorkspace.tsx index 79779684..10541908 100644 --- a/frontend/src/components/map/MapWorkspace.tsx +++ b/frontend/src/components/map/MapWorkspace.tsx @@ -772,6 +772,11 @@ export function MapWorkspace({ && datasetCoversSelectedArea(dataset, selectedMapAreaId, regionalScopeSelected), ) ?? null } + if (flandersScopeSelected && officialMapProducts.thematic.length > 0) { + for (const product of officialMapProducts.thematic) { + result[product.theme] = null + } + } if (flandersScopeSelected && officialMapProducts.grb.length > 0) { for (const product of officialMapProducts.grb) { result[product.key] = null @@ -791,6 +796,7 @@ export function MapWorkspace({ officialMapProducts.floodHazard.length, officialMapProducts.grb, officialMapProducts.officialVector, + officialMapProducts.thematic, regionalScopeSelected, selectedDhmvProductKey, selectedFloodHazardDatasetId,