Add one-click GIS workflow run
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-07-05 00:11:03 +02:00
parent a9c108a4d4
commit 533135885c
12 changed files with 140 additions and 25 deletions
+4 -2
View File
@@ -28,11 +28,11 @@ export function useMapSelectionExtract({
const runMapSelectionExtract = async (bbox: VectorSelectionBBox) => {
if (!selectedProjectId || !selectedDataset) {
setMapSelectionError('Open a vector dataset before extracting a map area.')
return
return null
}
if (!isVectorDatasetType(selectedDataset.dataset_type)) {
setMapSelectionError('Area extraction requires an active vector dataset.')
return
return null
}
setMapSelectionLoading(true)
@@ -44,9 +44,11 @@ export function useMapSelectionExtract({
limit: 250,
})
setMapSelectionResult(response)
return response
} catch (error) {
setMapSelectionResult(null)
setMapSelectionError(formatError(error, 'Area extraction failed'))
return null
} finally {
setMapSelectionLoading(false)
}