feat(ocr-pipeline): manual column editor for Step 3

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-02-27 08:27:54 +01:00
parent 1393a994f9
commit 7a3570fe46
4 changed files with 425 additions and 38 deletions

View File

@@ -6,6 +6,7 @@ import type { ColumnResult, ColumnGroundTruth, PageRegion } from '@/app/(admin)/
interface ColumnControlsProps {
columnResult: ColumnResult | null
onRerun: () => void
onManualMode: () => void
onGroundTruth: (gt: ColumnGroundTruth) => void
onNext: () => void
isDetecting: boolean
@@ -39,7 +40,7 @@ const METHOD_LABELS: Record<string, string> = {
position_fallback: 'Fallback',
}
export function ColumnControls({ columnResult, onRerun, onGroundTruth, onNext, isDetecting }: ColumnControlsProps) {
export function ColumnControls({ columnResult, onRerun, onManualMode, onGroundTruth, onNext, isDetecting }: ColumnControlsProps) {
const [gtSaved, setGtSaved] = useState(false)
if (!columnResult) return null
@@ -69,6 +70,12 @@ export function ColumnControls({ columnResult, onRerun, onGroundTruth, onNext, i
>
Erneut erkennen
</button>
<button
onClick={onManualMode}
className="text-xs px-2 py-1 bg-teal-100 text-teal-700 dark:bg-teal-900/30 dark:text-teal-400 rounded hover:bg-teal-200 dark:hover:bg-teal-900/50 transition-colors"
>
Manuell markieren
</button>
</div>
{/* Column list */}