Compact detection source tile rows
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-13 13:38:18 +02:00
parent 4455e242c6
commit d188014be2
6 changed files with 22 additions and 2 deletions
@@ -820,7 +820,9 @@ export function DetectionLab({
<td>{detection.class_name}</td>
<td>{detection.confidence.toFixed(2)}</td>
<td>{detection.model_name}</td>
<td>{detection.source_tile_path || 'n/a'}</td>
<td className="source-tile-cell" title={detection.source_tile_path ?? undefined}>
{formatSourceTilePath(detection.source_tile_path)}
</td>
</tr>
))}
</tbody>
@@ -1110,3 +1112,11 @@ function downloadJsonFile(filename: string, payload: unknown): void {
function formatNullableNumber(value: number | null, digits: number): string {
return typeof value === 'number' && Number.isFinite(value) ? value.toFixed(digits) : 'n/a'
}
function formatSourceTilePath(path: string | null | undefined): string {
if (!path) {
return 'n/a'
}
const parts = path.replace(/\\/g, '/').split('/').filter(Boolean)
return parts[parts.length - 1] ?? path
}
+4
View File
@@ -1043,6 +1043,10 @@ section th {
line-height: 1;
}
.source-tile-cell {
white-space: nowrap;
}
.workbench-inspector .job-result,
.workbench-inspector pre {
max-height: 16rem;