From 8480a6d364ff1da0301614074fe296d978cc5ab8 Mon Sep 17 00:00:00 2001 From: Shawn Date: Thu, 21 May 2026 12:20:14 -0400 Subject: [PATCH] Fix mode structure: Scan (barcode+OCR+gallery) + Manual only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed separate OCR and Connect mode toggles β€” merged into Scan - Renamed Barcode mode to Scan with OCR fallback + gallery upload - Added captureScanOcr() β€” tap to capture frame for OCR when barcode fails - handleBarcode() now compares barcode vs OCR result, picks valid ID - Gallery photo picker integrated into Scan mode (OCR + EXIF GPS) - Removed old photoPreviewCard and connect-mode HTML sections - Removed orphaned functions referencing removed elements --- static/index.html | 396 +++++++++++++++++++++------------------------- 1 file changed, 182 insertions(+), 214 deletions(-) diff --git a/static/index.html b/static/index.html index 48bdfd9..7bdfdd1 100644 --- a/static/index.html +++ b/static/index.html @@ -1217,26 +1217,39 @@
- - + - -
- +
-
Barcode Scanner
+
Scan
πŸ“·
Tap to start camera
+
-
Point camera at a barcode
+
Point camera at a barcode or sticker
+
+ +
+
+ + + @@ -1268,45 +1281,7 @@
- -
-
-
OCR Scanner β€” Photograph Sticker
-
-
- πŸ“Έ -
Tap to start camera
-
- - -
-
Point camera at the machine sticker and tap capture
-
-
-
-
- - - - -
- - +
Manual Entry
@@ -1414,75 +1389,8 @@
-
- - -
-
-
🏷️ Scan Connect Label β€” Photo + OCR + GPS
-

- Take or pick a photo of a machine sticker. OCR reads the ID, GPS is extracted automatically. -

-
- - -
-
- - - - - - - - - -
- - - +