Preparing search index...
    • Pre-computes tag similarity, handles exact matches immediately, and queues fuzzy matches.

      Orchestrates the full tag validation flow:

      1. Runs processTagsForValidation to separate exact vs fuzzy matches
      2. Calls onMatch for each exact match (adds them directly)
      3. Queues remaining fuzzy matches for user validation via setQueue

      The onMatch callback is reused as onValidated in the queue — when a user confirms a fuzzy match, it's treated the same as an exact match.

      Parameters

      • tags: tagTableElement[]

        Tags to validate against the database

      • findSimilarTags: (name: string) => tagTableElement[]

        Database lookup function for fuzzy tag matching

      • onMatch: (tag: tagTableElement) => void

        Callback for exact matches and validated fuzzy matches

      • setQueue: (config: TagQueueConfig) => void

        Setter for the validation queue (from RecipeDialogsContext)

      • OptionalonDismissed: (tag: TagWithSimilarity) => void

        Optional callback when user dismisses a tag from the queue

      Returns void