fix: polish live regional workbench 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-14 21:48:51 +02:00
parent b5bcd9b041
commit 36d6a92825
9 changed files with 80 additions and 26 deletions
@@ -45,6 +45,13 @@ function qualityMetricValue(metric: MetricRead | undefined): string {
return Number.isInteger(value) ? String(value) : value.toFixed(3)
}
function qualityStatusLabel(status: string | null | undefined): string {
if (!status || status === 'waiting') return 'nog niet uitgevoerd'
if (status === 'completed' || status === 'ok') return 'afgerond'
if (status === 'failed') return 'mislukt'
return status
}
function metricByKey(check: QualityCheckRead | null, metricKey: string): MetricRead | undefined {
return check?.metrics.find((metric) => metric.metric_key === metricKey)
}
@@ -169,7 +176,7 @@ export function QualityResultsPanel({
</div>
<div>
<span>Laatste status</span>
<strong>{latestCheck?.status ?? 'waiting'}</strong>
<strong>{qualityStatusLabel(latestCheck?.status)}</strong>
</div>
</div>
</div>
@@ -201,7 +208,7 @@ export function QualityResultsPanel({
</div>
<div>
<span>Laatste vergelijking</span>
<strong>{latestCheck?.status ?? 'waiting'}</strong>
<strong>{qualityStatusLabel(latestCheck?.status)}</strong>
<p className="quality-dataset-name">
Te controleren: {latestCandidateName ?? latestCheck?.candidate_dataset_id ?? 'n.v.t.'} / referentie: {latestReferenceName ?? latestCheck?.reference_dataset_id ?? 'n.v.t.'}
</p>