Preparing search index...

    State for batch validation of imported recipes

    Tracks the validation progress for ingredients and tags across multiple recipes being imported together.

    interface BatchValidationState {
        uniqueIngredients: Map<string, Partial<ingredientTableElement>>;
        uniqueTags: Map<string, tagTableElement>;
        ingredientMappings: Map<string, ingredientTableElement>;
        tagMappings: Map<string, tagTableElement>;
        ingredientsToValidate: IngredientWithSimilarity[];
        tagsToValidate: TagWithSimilarity[];
    }
    Index

    Properties

    uniqueIngredients: Map<string, Partial<ingredientTableElement>>

    Map of unique ingredients by normalized name

    uniqueTags: Map<string, tagTableElement>

    Map of unique tags by normalized name

    ingredientMappings: Map<string, ingredientTableElement>

    Map of ingredient names to their validated database entries

    tagMappings: Map<string, tagTableElement>

    Map of tag names to their validated database entries

    ingredientsToValidate: IngredientWithSimilarity[]

    Ingredients requiring user validation (pre-computed similarity, sorted: new first)

    tagsToValidate: TagWithSimilarity[]

    Tags requiring user validation (pre-computed similarity, sorted: new first)