From 2baad6806086cf93de9a1aea52093f4700e9225e Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Thu, 23 Apr 2026 16:18:44 +0200 Subject: [PATCH] Remove A/B testing toggles from studio-v2 (customer frontend) Dev-only toggles belong in admin-lehrer (port 3002) only. The customer frontend runs the pipeline with optimal defaults and shows only the finished results. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/VocabularyTab.tsx | 30 ------------------- studio-v2/app/vocab-worksheet/types.ts | 7 ----- .../app/vocab-worksheet/useVocabWorksheet.ts | 1 - 3 files changed, 38 deletions(-) diff --git a/studio-v2/app/vocab-worksheet/components/VocabularyTab.tsx b/studio-v2/app/vocab-worksheet/components/VocabularyTab.tsx index 61a06bd..82af7a8 100644 --- a/studio-v2/app/vocab-worksheet/components/VocabularyTab.tsx +++ b/studio-v2/app/vocab-worksheet/components/VocabularyTab.tsx @@ -120,36 +120,6 @@ export function VocabularyTab({ h }: { h: VocabWorksheetHook }) { - {/* OCR Quality Steps (A/B Testing) */} -
- Steps: - - - -
- {/* Error messages for failed pages */} {h.processingErrors.length > 0 && (
diff --git a/studio-v2/app/vocab-worksheet/types.ts b/studio-v2/app/vocab-worksheet/types.ts index 68327e2..75e3d2f 100644 --- a/studio-v2/app/vocab-worksheet/types.ts +++ b/studio-v2/app/vocab-worksheet/types.ts @@ -140,13 +140,6 @@ export interface VocabWorksheetHook { showSettings: boolean setShowSettings: (show: boolean) => void - // OCR Quality Steps (A/B testing) - ocrEnhance: boolean - setOcrEnhance: (v: boolean) => void - ocrMaxCols: number - setOcrMaxCols: (v: number) => void - ocrMinConf: number - setOcrMinConf: (v: number) => void // QR showQRModal: boolean diff --git a/studio-v2/app/vocab-worksheet/useVocabWorksheet.ts b/studio-v2/app/vocab-worksheet/useVocabWorksheet.ts index 2507d42..a54f271 100644 --- a/studio-v2/app/vocab-worksheet/useVocabWorksheet.ts +++ b/studio-v2/app/vocab-worksheet/useVocabWorksheet.ts @@ -868,7 +868,6 @@ export function useVocabWorksheet(): VocabWorksheetHook { processingErrors, successfulPages, failedPages, currentlyProcessingPage, // OCR settings ocrPrompts, showSettings, setShowSettings, - ocrEnhance, setOcrEnhance, ocrMaxCols, setOcrMaxCols, ocrMinConf, setOcrMinConf, // QR showQRModal, setShowQRModal, uploadSessionId, mobileUploadedFiles, selectedMobileFile, setSelectedMobileFile, setMobileUploadedFiles,