StepPageSplit now: - Auto-calls POST /page-split on step entry - Shows oriented image + detection result - If double page: creates sub-sessions named "Title — S. 1/2" - If single page: green badge "keine Trennung noetig" - Manual "Weiter" button (no auto-advance) Also: - StepOrientation wrapper simplified (no page-split in orientation) - StepUpload passes name back via onUploaded(sid, name) - page.tsx: after page-split "Weiter" switches to first sub-session - useKombiPipeline exposes setSessionName Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
584 B
TypeScript
22 lines
584 B
TypeScript
'use client'
|
|
|
|
import { StepOrientation as BaseStepOrientation } from '@/components/ocr-pipeline/StepOrientation'
|
|
|
|
interface StepOrientationProps {
|
|
sessionId: string | null
|
|
onNext: () => void
|
|
onSessionList: () => void
|
|
}
|
|
|
|
/** Thin wrapper — adapts the shared StepOrientation to the Kombi pipeline's simpler onNext() */
|
|
export function StepOrientation({ sessionId, onNext, onSessionList }: StepOrientationProps) {
|
|
return (
|
|
<BaseStepOrientation
|
|
key={sessionId}
|
|
sessionId={sessionId}
|
|
onNext={() => onNext()}
|
|
onSessionList={onSessionList}
|
|
/>
|
|
)
|
|
}
|