How lgm1213/appideagrocerysaver works
Save & Savor is a Rails grocery-savings and meal-planning application. Users set preferences, budget, and stores; browse recipes and deals; generate a deal-aware weekly plan; manage its entries and shopping list; and track savings and cooking feedback. Deal ingestion and matching, recipe preferences, and admin job controls are distinct supporting capabilities. The graph uses README statements and shown controller/job code for relationships; several listed subsystems were not sampled, so their links are limited to documented behavior.
Main entry points: meal_plans_controller.rb Meal Plan Controller · jobs_controller.rb Job Controls · fetch_deals_job.rb Deal Fetch Job · shopping_lists_controller.rb Shopping Lists
Components 26
Account & Setup
- Onboarding
app/controllers/onboarding/steps_controller.rb - User Preferences
app/models/user_preference.rb
Deal Intelligence
- Deal Browser
app/controllers/deals_controller.rb - Deal Fetch Job
app/jobs/fetch_deals_job.rb - Store Scrapers
app/services/scrapers/publix_scraper.rb - Kroger API Client
app/models/kroger/api_client.rb - Ingredient Matcher
app/models/deals/ingredient_matcher.rb - Deal Match Job
app/jobs/match_deals_to_ingredients_job.rb
Meal Planning
- Meal Plan Controller
app/controllers/meal_plans_controller.rb - Week Builder
app/models/meal_plans/week_builder.rb - Deal-Aware Provider
app/models/meal_plans/providers/deal_aware_provider.rb - Plan Entries
app/controllers/meal_plan_entries_controller.rb
Recipes & Feedback
- Recipe Browser
app/controllers/recipes_controller.rb - Recipe Matching
app/models/recipe.rb - Recipe Submission
app/models/recipes/submission.rb - Recipe Ratings
app/controllers/recipe_ratings_controller.rb
Shopping & Savings
- Shopping Lists
app/controllers/shopping_lists_controller.rb - List Items
app/controllers/shopping_list_items_controller.rb - Savings Summary
app/models/savings/summary_service.rb - Savings Dashboard
app/controllers/savings_controller.rb
Admin Operations
- Job Controls
app/controllers/admin/jobs_controller.rb - System Health
app/models/admin/system_health.rb - User Management
app/controllers/admin/users_controller.rb - Email Settings
app/controllers/admin/email_settings_controller.rb - Job Activity
app/controllers/admin/job_executions_controller.rb
Other components
- User
Connections 25
- User → Onboarding: sets preferences
- Onboarding → User Preferences: updates
app/controllers/onboarding/steps_controller.rb - User → Deal Browser: browses deals
- Deal Fetch Job → Store Scrapers: fetches deals
- Deal Fetch Job → Kroger API Client: fetches promotions
- User → Meal Plan Controller: generates plan
- Meal Plan Controller → Week Builder: calls builder
app/controllers/meal_plans_controller.rb - Week Builder → Deal-Aware Provider: uses provider
- User → Plan Entries: edits plan
- Plan Entries → User Preferences: records cooking
app/controllers/meal_plan_entries_controller.rb - User → Recipe Browser: browses recipes
- Recipe Browser → Recipe Matching: filters recipes
- User → Recipe Ratings: rates recipes
- User → Shopping Lists: manages lists
- Shopping Lists → List Items: manages items
- Meal Plan Controller → Shopping Lists: generates list
- User → Savings Dashboard: views savings
- Savings Dashboard → Savings Summary: summarizes savings
- User → Job Controls: triggers jobs
- Job Controls → Deal Fetch Job: enqueues fetch
app/controllers/admin/jobs_controller.rb - Job Controls → Deal Match Job: enqueues matching
app/controllers/admin/jobs_controller.rb - User → System Health: monitors health
- User → User Management: manages users
- User → Email Settings: configures email
- User → Job Activity: reviews executions