Add bounded GRB map acquisition
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:29:26 +02:00
parent 47cde21e17
commit 488da4cc83
28 changed files with 1644 additions and 134 deletions
@@ -11,12 +11,13 @@ def read(path: str) -> str:
return (ROOT / path).read_text(encoding="utf-8")
def test_official_raster_catalog_hook_loads_all_governed_registries() -> None:
hook = read("frontend/src/hooks/useOfficialRasterProducts.ts")
def test_official_map_catalog_hook_loads_all_governed_registries() -> None:
hook = read("frontend/src/hooks/useOfficialMapProducts.ts")
assert "datasetsApi.listThematicRasterProducts" in hook
assert "datasetsApi.listDhmvProducts" in hook
assert "datasetsApi.listFloodHazardProducts" in hook
assert "datasetsApi.listGrbProducts" in hook
assert "Promise.all([" in hook
@@ -24,7 +25,7 @@ def test_map_selection_can_acquire_dhmv_and_flood_hazard_products() -> None:
selection_hook = read("frontend/src/hooks/useMapThemeSelectionInsights.ts")
workspace = read("frontend/src/components/map/MapWorkspace.tsx")
assert "'thematic_raster' | 'dhmv' | 'flood_hazard'" in selection_hook
assert "'thematic_raster' | 'dhmv' | 'flood_hazard' | 'grb'" in selection_hook
assert "datasetsApi.acquireDhmv" in selection_hook
assert "datasetsApi.acquireFloodHazard" in selection_hook
assert "datasetsApi.acquireThematicRaster" in selection_hook