Allergy-Friendly Recipe Finder
1. Dashboard (Recipe Results)
2. Data Configuration (Filters)
Filtered Recipes: Showing 0 Results
Active Exclusions: None selected.
Cuisine/Dish Type Filter: All.
Please go to the **Data Configuration (Filters)** tab and select your required allergen exclusions and preferences, then click 'Apply Filters' to see your safe recipes.
Select all allergens you need to exclude from the recipes. (Check to Exclude)
Cuisine/Dish Type Filter: ${dishTypeFilter}.
`; // Render Recipe Cards let html = ''; if (recipes.length === 0) { html = `
No recipes match your current exclusion criteria and preferences.
Please review your selections in the **Data Configuration (Filters)** tab.
`;
} else {
recipes.forEach(recipe => {
// Determine which allergens were excluded but are SAFE for this recipe
const safeAllergens = excludedAllergens.filter(allergen => recipe.free_of.includes(allergen));
const safeAllergensText = safeAllergens.length > 0 ? safeAllergens.join(', ') : 'All selected allergens.';
html += `
Please review your selections in the **Data Configuration (Filters)** tab.
${recipe.name}
Type: ${recipe.type}
Cuisine: ${recipe.cuisine}
✅ SAFE FOR: ${safeAllergensText}
Ingredients:
-
${recipe.ingredients.map(ing => `
- ${ing} `).join('')}
Instructions:
${recipe.instructions}
