Fix bounded GRB coverage display
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
legal-boundary or water-volume data.
|
||||
- Extended the Flanders map catalog and all-theme analysis so the four GRB
|
||||
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
|
||||
configured while keeping the old generic import/fetch contract non-fetching
|
||||
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.listGrbProducts" in catalog_hook
|
||||
assert "officialMapProducts.grb" in workspace
|
||||
assert "result[product.key] = null" in workspace
|
||||
assert "/datasets/grb/acquire" in contracts
|
||||
assert "geo.api.vlaanderen.be" not in workspace
|
||||
|
||||
@@ -10242,6 +10242,10 @@ Implemented:
|
||||
unsupported.
|
||||
- Extended the Flanders map product catalog with the four GRB products and
|
||||
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:
|
||||
- Focused provider, acquisition, route-envelope and frontend contract tests
|
||||
|
||||
@@ -770,6 +770,11 @@ export function MapWorkspace({
|
||||
&& datasetCoversSelectedArea(dataset, selectedMapAreaId, regionalScopeSelected),
|
||||
) ?? null
|
||||
}
|
||||
if (flandersScopeSelected && officialMapProducts.grb.length > 0) {
|
||||
for (const product of officialMapProducts.grb) {
|
||||
result[product.key] = null
|
||||
}
|
||||
}
|
||||
return result
|
||||
}, [
|
||||
availableMapDatasets,
|
||||
@@ -777,6 +782,7 @@ export function MapWorkspace({
|
||||
floodHazardDatasets,
|
||||
officialMapProducts.dhmv.length,
|
||||
officialMapProducts.floodHazard.length,
|
||||
officialMapProducts.grb,
|
||||
regionalScopeSelected,
|
||||
selectedDhmvProductKey,
|
||||
selectedFloodHazardDatasetId,
|
||||
|
||||
Reference in New Issue
Block a user