Skip to content

fix: kitchen recipe list not showing uploaded thumbnails#26

Merged
zduey merged 2 commits intomainfrom
claude/fix-recipe-thumbnail-list-zK2gQ
Apr 20, 2026
Merged

fix: kitchen recipe list not showing uploaded thumbnails#26
zduey merged 2 commits intomainfrom
claude/fix-recipe-thumbnail-list-zK2gQ

Conversation

@zduey
Copy link
Copy Markdown
Owner

@zduey zduey commented Apr 20, 2026

Summary

  • Recipes with uploaded thumbnails displayed correctly on the detail page but not in the kitchen shared recipes list
  • The root cause: get_kitchen_recipes() set image_url from recipe_data.get("image") (the original scraped image URL) while ignoring user_recipe.thumbnail_key, where uploaded thumbnails are stored
  • Fix propagates thumbnail_key through the KitchenRecipe schema and resolves it via StorageBackend in both the list and share route handlers, matching the existing pattern in /me/recipes

Test plan

  • New test test_kitchen_recipe_list_uses_thumbnail_when_present verifies that when a recipe has an uploaded thumbnail, the kitchen recipe list returns the thumbnail URL (not the original image URL)
  • New test test_kitchen_recipe_list_falls_back_to_original_image verifies that when no thumbnail is set, the kitchen recipe list falls back to the original recipe image URL
  • All 93 existing backend tests continue to pass

https://claude.ai/code/session_01N4wWtQZGRSU79mLwfhKxEK

claude added 2 commits April 20, 2026 00:38
Recipes with uploaded thumbnails were correctly displayed on the detail
page but not in the kitchen shared recipes list. The list endpoint was
reading image_url directly from the recipe JSON blob, which only holds
the original scraped image, while ignoring the user_recipe.thumbnail_key
column where uploaded thumbnails are stored.

Fix propagates thumbnail_key through KitchenRecipe and resolves it via
StorageBackend in the route handlers for both list and share endpoints,
matching the existing pattern used by the main /me/recipes list.

https://claude.ai/code/session_01N4wWtQZGRSU79mLwfhKxEK
@zduey zduey marked this pull request as ready for review April 20, 2026 11:58
@zduey zduey changed the title Fix kitchen recipe list not showing uploaded thumbnails fix: kitchen recipe list not showing uploaded thumbnails Apr 20, 2026
@zduey zduey merged commit 964e4b6 into main Apr 20, 2026
8 checks passed
@zduey zduey deleted the claude/fix-recipe-thumbnail-list-zK2gQ branch April 20, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants