Preparing search index...

    Interface UseValidationWorkflowReturn

    Return value of the useValidationWorkflow hook

    interface UseValidationWorkflowReturn {
        phase: ValidationPhase;
        initStage: InitializationStage;
        validationState: BatchValidationState | null;
        progress: ValidationProgress | null;
        importedCount: number;
        skippedRecipes: SkippedRecipeInfo[];
        errorMessage: string | null;
        handlers: ValidationHandlers;
    }
    Index

    Current high-level phase of the workflow

    Granular stage within the 'initializing' phase

    validationState: BatchValidationState | null

    Current batch validation state, or null while initializing

    progress: ValidationProgress | null

    Validation progress counters, or null while initializing

    importedCount: number

    Number of recipes successfully saved to the database

    skippedRecipes: SkippedRecipeInfo[]

    Recipes omitted from the import because they had no valid ingredient names. Populated at two points: before validation (pre-validation skips) and after import (post-mapping skips where all ingredients were mapped away).

    errorMessage: string | null

    Error message when phase is 'error', otherwise null

    Stable handler callbacks to pass to child components