Skip to content

Recipe Mock Data Implementation

Created comprehensive recipe mock data for the frontend with all 9 recipes from the documentation, including full ingredient lists, instructions, and metadata.

TypeScript type definitions for recipes including:

  • Recipe - Main recipe interface
  • RecipeIngredient - Ingredient with quantity and unit
  • RecipeFormData - Form data structure
  • Enums for: GlassType, IceType, MeasurementUnit, RecipeCategory, RecipeDifficulty, IngredientType

Recipes screen with:

  • Full mock data for all 9 recipes
  • Search functionality
  • Category filtering (All, Classic, Modern, Signature, Seasonal, Shot, Punch)
  • Recipe cards with ratings, tags, and metadata
  • Pull-to-refresh support

Added Recipes tab to navigation with cocktail glass icon

  • Difficulty: Beginner
  • Ingredients: Appleton Rum, Ginger Beer, Angostura Bitters
  • Glass: Highball
  • Rating: 4.5/5
  • Tags: rum, classic, easy
  • Difficulty: Beginner
  • Ingredients: Bulleit Bourbon, Goldschlager Cinnamon Schnapps, Apple Cider
  • Glass: Rocks
  • Rating: 4.2/5
  • Tags: bourbon, fall, cinnamon
  • Difficulty: Intermediate
  • Ingredients: Tequila, Prickly Pear Syrup, Lime Juice, Black Food Coloring
  • Glass: Rocks
  • Rating: 4.7/5
  • Tags: tequila, margarita, halloween, purple
  • Perfect for DxD 2025! 🎃
  • Difficulty: Beginner
  • Ingredients: Caramel Vodka, Prosecco, Pear Juice, Edible Glitter
  • Glass: Highball
  • Rating: 4.3/5
  • Tags: vodka, sparkling, halloween, shimmer
  • Perfect for DxD 2025! 👻
  • Difficulty: Beginner
  • Ingredients: Crown Royal, Watermelon Pucker, Red Bull
  • Glass: Shot
  • Rating: 3.8/5
  • Tags: whisky, shot, energy, party
  • Difficulty: Beginner
  • Ingredients: Raspberry Vodka, Strawberry Liqueur, Pineapple Juice
  • Glass: Highball
  • Rating: 4.1/5
  • Tags: vodka, fruity, sweet, pink
  • Difficulty: Intermediate
  • Batch Recipe: 12 servings
  • Ingredients: Apple Cider, Prosecco, Vodka, Ginger Beer, Apples, Oranges, Cinnamon
  • Glass: Punch Bowl
  • Rating: 4.8/5
  • Tags: punch, batch, fall, thanksgiving, party
  • Difficulty: Beginner
  • Ingredients: White Rum, Peach Schnapps, Grenadine, Black Cherry Juice
  • Glass: Highball
  • Rating: 4.4/5
  • Tags: rum, halloween, cherry, red
  • Perfect for DxD 2025! 🧛
  • Difficulty: Beginner
  • Ingredients: Modelo Especial Beer, Lime Juice, Worcestershire Sauce, Hot Sauce, Soy Sauce, Tajín
  • Glass: Highball
  • Rating: 4.6/5
  • Tags: beer, mexican, spicy, refreshing, modelo

Each recipe includes:

  • ✅ Unique ID
  • ✅ Name and description
  • ✅ Category (classic, modern, signature, seasonal, shot, punch)
  • ✅ Difficulty level (beginner, intermediate, advanced, expert)
  • ✅ Full ingredient list with quantities and units
  • ✅ Step-by-step instructions
  • ✅ Prep time in minutes
  • ✅ Serving size
  • ✅ Glass type and ice type
  • ✅ Garnish instructions
  • ✅ Tags for filtering
  • ✅ Rating (1-5 stars)
  • ✅ Batch recipe support (Harvest Punch)
  • ✅ Created/updated timestamps
  • ✅ Search by name, description, or tags
  • ✅ Filter by category
  • ✅ Recipe cards with visual hierarchy
  • ✅ Color-coded badges for category and difficulty
  • ✅ Star ratings display
  • ✅ Batch recipe indicator
  • ✅ Ingredient and step counts
  • ✅ Pull-to-refresh
  • ✅ Empty state handling
  • ✅ Dark mode support

Perfect recipes for the Death by Drowning (DxD) 2025 Halloween event:

  1. Little Death - Purple/black margarita fits the theme perfectly
  2. The ShowGhoul - Shimmer effect adds spooky glamour
  3. Dracula’s Blood - Classic Halloween red color
  4. Harvest Punch - Great for serving 30 guests efficiently

All recipes use TypeScript interfaces ensuring:

  • Type-safe ingredient quantities and units
  • Validated glass and ice types
  • Consistent category and difficulty levels
  • Proper measurement unit handling

When backend GraphQL API is implemented:

  • Migrate to GraphQL queries/mutations
  • Add recipe creation/editing forms
  • Implement recipe detail view
  • Add recipe to menu functionality
  • Link recipes to inventory items
  • Calculate ingredient costs
  • Generate shopping lists from recipes
  • Add recipe photos/images
  • User ratings and reviews
  • Recipe variations and substitutions

The recipes screen is now available in the app:

  1. Navigate to the “Recipes” tab (cocktail glass icon)
  2. Browse all 8 recipes
  3. Search by name or tags
  4. Filter by category
  5. View recipe details including ingredients and instructions
  • All recipes are from the original documentation (docs-site/docs/stories/add_recipe.md)
  • Measurements converted to consistent units (oz, ml, cups, etc.)
  • Instructions broken down into clear steps
  • Tags added for better discoverability
  • Ratings estimated based on recipe complexity and appeal
  • Batch recipe (Harvest Punch) properly marked with serving count