Fix regional bathymetry context labels
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 17:47:10 +02:00
parent 4fd6c06f5c
commit c50756f67d
9 changed files with 94 additions and 10 deletions
@@ -1,5 +1,10 @@
import type { AreaRead, DatasetCreateResponse, ExportRead, ProjectRead, QualityCheckRead } from '../types'
import { REGIONAL_WORKSPACE_LABEL, REGIONAL_WORKSPACE_PROJECT_NAME } from '../config/primaryFocus'
import {
FLANDERS_WORKSPACE_LABEL,
FLANDERS_WORKSPACE_PROJECT_NAME,
REGIONAL_WORKSPACE_LABEL,
REGIONAL_WORKSPACE_PROJECT_NAME,
} from '../config/primaryFocus'
interface StatusItem {
key: string
@@ -35,6 +40,7 @@ function statusLabel(state: StatusItem['state']): string {
function projectLabel(project: ProjectRead | null): string {
if (!project) return 'Geen werkruimte'
if (project.name === FLANDERS_WORKSPACE_PROJECT_NAME) return FLANDERS_WORKSPACE_LABEL
return project.name === REGIONAL_WORKSPACE_PROJECT_NAME ? REGIONAL_WORKSPACE_LABEL : project.name
}