From 2c3ae1de22b9a919588a82b7aff0dfa8eafa2b3d Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 2 Jun 2026 18:05:54 -0400 Subject: [PATCH] feat: add Scan New button to OCR matched-assets result view When OCR detects serial numbers matching assets in the DB but no machine_id pattern (XXXXX-XXXXXX) is found, the result now shows: - 'Asset found via serial/ID match' heading - Matched assets with name, serial_number, machine_id, matched_on - View Details button per matched asset - Scan New + Retake buttons at the bottom When machine_id IS found AND matched_assets also has entries, the matched assets are shown as supplementary info below the main result. The OCR vision prompt already asked for 'serial numbers' (no change needed on server side). --- static/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index 2253f67..7eed1e0 100644 --- a/static/index.html +++ b/static/index.html @@ -3427,7 +3427,10 @@
✅ Asset found via serial/ID match
${data.raw_text ? `
OCR text: ${esc(data.raw_text)}
` : ''} ${matchedHtml} -
`; +
+ + +
`; setOcrStatus('Asset found via serial/ID match!', 'success'); } else { el.innerHTML = `