feat: make spatial entry optional and authoritative
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:
Jens
2026-07-26 03:39:50 +02:00
parent 5efcf94d82
commit 25b6f1ab39
21 changed files with 462 additions and 104 deletions
+20
View File
@@ -217,6 +217,25 @@ export function useProjectWorkspace() {
}
}
const activateMunicipality = async (niscode: string): Promise<AreaRead | null> => {
if (!selectedProjectId) {
setErrorMessage('Kies eerst een werkruimte')
return null
}
setLoadingAreas(true)
setErrorMessage(null)
try {
const area = await areasApi.activateMunicipality(selectedProjectId, niscode)
await loadProjectData(selectedProjectId)
return area
} catch (error) {
setErrorMessage(error instanceof Error ? error.message : 'De gemeente kon niet als werkgebied worden geladen')
return null
} finally {
setLoadingAreas(false)
}
}
const archiveProject = async (projectId: string) => {
setArchivingProjectId(projectId)
setErrorMessage(null)
@@ -257,6 +276,7 @@ export function useProjectWorkspace() {
loadProjectData,
createProject,
createArea,
activateMunicipality,
archiveProject,
resetProjectData,
setSelectedProjectId,