Preparing search index...

    Function groupDismissedRecipesByProvider

    • Groups dismissed recipes by their source provider.

      Providers appear in the order they are first encountered in recipes, and the recipes within each group keep their input order, so passing a newest-first list yields newest-first groups and members.

      Parameters

      • recipes: dismissedRecipeTableElement[]

        Dismissed recipe records to group

      • resolveProviderName: (providerId: string) => string

        Maps a provider id to its display name (falls back to the id)

      Returns DismissedRecipeGroup[]

      One group per provider, in first-encountered order