Add raster tile segmentation handoff
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-24 06:14:21 +02:00
parent fcd7d6ebee
commit 140314a81d
9 changed files with 107 additions and 1 deletions
@@ -0,0 +1,28 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
def test_raster_tile_manifest_can_handoff_to_segmentation_lab() -> None:
app = (ROOT / "frontend" / "src" / "App.tsx").read_text(encoding="utf-8")
hook = (ROOT / "frontend" / "src" / "hooks" / "useSegmentationWorkflow.ts").read_text(encoding="utf-8")
detail_panel = (ROOT / "frontend" / "src" / "components" / "datasets" / "DatasetDetailPanel.tsx").read_text(encoding="utf-8")
raster_controls = (ROOT / "frontend" / "src" / "components" / "datasets" / "RasterControls.tsx").read_text(encoding="utf-8")
segmentation_lab = (ROOT / "frontend" / "src" / "components" / "segmentation" / "SegmentationLab.tsx").read_text(
encoding="utf-8",
)
assert "segmentationTileManifestPath" in hook
assert "setSegmentationTileManifestPath" in hook
assert "tile_manifest_path: segmentationTileManifestPath.trim() || null" in hook
assert "segmentationTileManifestPath={segmentationTileManifestPath}" in app
assert "onSetTileManifestPath={setSegmentationTileManifestPath}" in app
assert "onUseTileManifestForSegmentation: useRasterTileManifestForSegmentation" in app
assert "setSegmentationTileManifestPath(manifestPath)" in app
assert "setSelectedSegmentationDatasetId(selectedDataset.id)" in app
assert "onUseTileManifestForSegmentation" in detail_panel
assert "Use in Segmentation Lab" in raster_controls
assert "disabled={!latestRasterTileManifestPath}" in raster_controls
assert "Tile manifest" in segmentation_lab
assert "Raster tile manifest path" in segmentation_lab