fix: polish measured map quality output
This commit is contained in:
@@ -1140,7 +1140,7 @@ export function MapWorkspace({
|
||||
<span><i className="geo-legend-area" /> Werkgebied</span>
|
||||
{analysisOverlayActive ? (
|
||||
<>
|
||||
<span><i className="geo-legend-layer geo-legend-layer-buildings" /> Gevonden gebouwen</span>
|
||||
<span><i className="geo-legend-layer geo-legend-layer-buildings" /> AI-kandidaten</span>
|
||||
<span><i className="geo-legend-selection" /> Selectie</span>
|
||||
</>
|
||||
) : analysisMode === 'evolution' && temporalComparison?.object_changes.available ? (
|
||||
|
||||
@@ -46,6 +46,10 @@ function qualityMetricValue(metric: MetricRead | undefined): string {
|
||||
return Number.isInteger(value) ? String(value) : value.toFixed(3)
|
||||
}
|
||||
|
||||
function qualityScoreValue(value: number | null | undefined): string {
|
||||
return typeof value === 'number' && Number.isFinite(value) ? value.toFixed(3) : 'n/a'
|
||||
}
|
||||
|
||||
function qualityStatusLabel(status: string | null | undefined): string {
|
||||
if (!status || status === 'waiting') return 'nog niet uitgevoerd'
|
||||
if (status === 'completed' || status === 'ok') return 'afgerond'
|
||||
@@ -173,7 +177,7 @@ export function QualityResultsPanel({
|
||||
</div>
|
||||
<div>
|
||||
<span>Laatste score</span>
|
||||
<strong>{latestCheck?.score ?? 'n/a'}</strong>
|
||||
<strong>{qualityScoreValue(latestCheck?.score)}</strong>
|
||||
</div>
|
||||
<div>
|
||||
<span>Laatste status</span>
|
||||
@@ -272,7 +276,7 @@ export function QualityResultsPanel({
|
||||
<div>
|
||||
<span>Status</span>
|
||||
<strong>{selectedQualityCheck.status}</strong>
|
||||
<p>Score: {selectedQualityCheck.score ?? 'n/a'}</p>
|
||||
<p>Score: {qualityScoreValue(selectedQualityCheck.score)}</p>
|
||||
</div>
|
||||
<div>
|
||||
<span>Afgerond</span>
|
||||
@@ -508,7 +512,7 @@ export function QualityResultsPanel({
|
||||
<div className="quality-score-row">
|
||||
<div>
|
||||
<span>Score</span>
|
||||
<strong>{check.score ?? 'n/a'}</strong>
|
||||
<strong>{qualityScoreValue(check.score)}</strong>
|
||||
</div>
|
||||
<div>
|
||||
<span>Meetwaarden</span>
|
||||
|
||||
@@ -1872,6 +1872,7 @@ details.ai-lab-model-surface > summary strong {
|
||||
|
||||
.geo-image-quality-metrics {
|
||||
grid-column: 1 / -1;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
margin-top: 0.35rem;
|
||||
border-top: 1px solid var(--line);
|
||||
padding-top: 0.65rem;
|
||||
|
||||
Reference in New Issue
Block a user