page detection and segmentation results instead of returning all of them
/detection/runs/{id}/detections and its GeoJSON sibling returned every
persisted detection, as did the segmentation equivalents. A regional run holds
tens of thousands, and these are the endpoints the results table and the map
overlay call after every run.
They now take limit and offset, default to 2.000, and report total, limit,
offset and truncated so the complete population stays visible while what is
transferred does not. The GeoJSON responses carry the same window in a
geointel_result_window foreign member.
Rows are ordered by confidence, so a capped overlay draws the strongest
detections rather than an arbitrary slice, and the lab says how many of how
many are being shown rather than silently presenting a page as the whole run.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -98,6 +98,9 @@ interface DetectionLabProps {
|
||||
detectionWorkflowStage: DetectionWorkflowStage
|
||||
selectedDetectionRunId: string
|
||||
detectionItems: DetectionRead[]
|
||||
/** Complete population behind the returned page. */
|
||||
detectionTotal?: number
|
||||
detectionTruncated?: boolean
|
||||
detectionClassFilter: string
|
||||
detectionMinConfidenceFilter: number
|
||||
loadingDetectionResults: boolean
|
||||
@@ -159,6 +162,8 @@ export function DetectionLab({
|
||||
detectionWorkflowStage,
|
||||
selectedDetectionRunId,
|
||||
detectionItems,
|
||||
detectionTotal,
|
||||
detectionTruncated = false,
|
||||
detectionClassFilter,
|
||||
detectionMinConfidenceFilter,
|
||||
loadingDetectionResults,
|
||||
@@ -679,6 +684,13 @@ export function DetectionLab({
|
||||
</details> : null}
|
||||
|
||||
<div className="ai-lab-results-surface" aria-label="Resultaten van de beeldanalyse">
|
||||
{detectionTruncated ? (
|
||||
<p className="geo-data-notice">
|
||||
Deze run leverde {(detectionTotal ?? detectionItems.length).toLocaleString('nl-BE')} detecties op;
|
||||
hieronder en op de kaart staan de {detectionItems.length.toLocaleString('nl-BE')} met de hoogste
|
||||
zekerheid. De tellingen in de kwaliteitscontrole gebruiken de volledige run.
|
||||
</p>
|
||||
) : null}
|
||||
<div className="panel-title-row">
|
||||
<div>
|
||||
<h3>Gevonden objecten</h3>
|
||||
|
||||
Reference in New Issue
Block a user