feat(scope): make Belgium and North Sea operational default
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-22 02:11:48 +02:00
parent 46884cbbc9
commit 0aff8e3b8c
61 changed files with 2499 additions and 194 deletions
+11 -2
View File
@@ -59,8 +59,17 @@ export function useSegmentationWorkflow({
try {
const response = await segmentationApi.listModels()
setSegmentationModels(response.models)
if (!response.models.some((model) => model.model_id === selectedSegmentationModelId) && response.models.length > 0) {
setSelectedSegmentationModelId(response.models[0].model_id)
const selectionStillAvailable = response.models.some((model) => model.model_id === selectedSegmentationModelId)
const selectionConfigured = response.models.some(
(model) => model.model_id === selectedSegmentationModelId && model.configured,
)
if ((!selectionStillAvailable || !selectionConfigured) && response.models.length > 0) {
const configuredModel = response.models.find(
(model) => model.configured && model.model_id !== 'fixture-segmenter',
)
setSelectedSegmentationModelId(
configuredModel?.model_id ?? (selectionStillAvailable ? selectedSegmentationModelId : response.models[0].model_id),
)
}
} catch (error) {
setSegmentationModelError(formatError(error, 'Failed to load segmentation models'))