Fix bounded GRB coverage display
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-17 21:34:32 +02:00
parent 488da4cc83
commit 0c29411f49
4 changed files with 14 additions and 0 deletions
+3
View File
@@ -20,6 +20,9 @@
legal-boundary or water-volume data. legal-boundary or water-volume data.
- Extended the Flanders map catalog and all-theme analysis so the four GRB - Extended the Flanders map catalog and all-theme analysis so the four GRB
products are usable on demand without browser-side external calls. products are usable on demand without browser-side external calls.
- Prevented a single bounded municipality Dataset from being presented as
complete Flanders coverage; GRB cards remain `Op aanvraag` until the active
selection has produced its measured result.
- Updated the provider registry to report the bounded GRB integration as - Updated the provider registry to report the bounded GRB integration as
configured while keeping the old generic import/fetch contract non-fetching configured while keeping the old generic import/fetch contract non-fetching
and directing callers to the governed project endpoint. and directing callers to the governed project endpoint.
@@ -388,5 +388,6 @@ def test_grb_frontend_and_contracts_use_only_the_governed_backend_path() -> None
assert "datasetsApi.acquireGrb" in selection_hook assert "datasetsApi.acquireGrb" in selection_hook
assert "datasetsApi.listGrbProducts" in catalog_hook assert "datasetsApi.listGrbProducts" in catalog_hook
assert "officialMapProducts.grb" in workspace assert "officialMapProducts.grb" in workspace
assert "result[product.key] = null" in workspace
assert "/datasets/grb/acquire" in contracts assert "/datasets/grb/acquire" in contracts
assert "geo.api.vlaanderen.be" not in workspace assert "geo.api.vlaanderen.be" not in workspace
+4
View File
@@ -10242,6 +10242,10 @@ Implemented:
unsupported. unsupported.
- Extended the Flanders map product catalog with the four GRB products and - Extended the Flanders map product catalog with the four GRB products and
kept all provider traffic behind the backend. kept all provider traffic behind the backend.
- Browser acceptance caught and closed a coverage-label defect: a newly
acquired small Mol Dataset no longer makes a complete-Flanders theme card
appear fully loaded. In the Flanders workspace GRB stays `Op aanvraag`;
the exact bounded result is shown only after selection.
Validation: Validation:
- Focused provider, acquisition, route-envelope and frontend contract tests - Focused provider, acquisition, route-envelope and frontend contract tests
@@ -770,6 +770,11 @@ export function MapWorkspace({
&& datasetCoversSelectedArea(dataset, selectedMapAreaId, regionalScopeSelected), && datasetCoversSelectedArea(dataset, selectedMapAreaId, regionalScopeSelected),
) ?? null ) ?? null
} }
if (flandersScopeSelected && officialMapProducts.grb.length > 0) {
for (const product of officialMapProducts.grb) {
result[product.key] = null
}
}
return result return result
}, [ }, [
availableMapDatasets, availableMapDatasets,
@@ -777,6 +782,7 @@ export function MapWorkspace({
floodHazardDatasets, floodHazardDatasets,
officialMapProducts.dhmv.length, officialMapProducts.dhmv.length,
officialMapProducts.floodHazard.length, officialMapProducts.floodHazard.length,
officialMapProducts.grb,
regionalScopeSelected, regionalScopeSelected,
selectedDhmvProductKey, selectedDhmvProductKey,
selectedFloodHazardDatasetId, selectedFloodHazardDatasetId,