feat: ingredient/tag search on My Recipes, QR code on printed recipes
My Recipes search previously only matched title/description; now also matches ingredient rawName and tags, mirroring the public search improvement from earlier. Hit and fixed a real bug along the way: embedding drizzle column proxies from a foreign table inside a raw sql`` fragment passed to db.query.recipes.findMany's `where` gets rewritten to the wrong table alias by the relational query builder, producing broken SQL — worked fine in the plain query builder used by /api/v1/search, but not here. Fixed by using literal SQL identifiers for the ingredients subquery instead of column proxies. Recipe print pages get the same QR-code treatment shopping lists got earlier, gated on visibility !== "private" (both public and unlisted resolve at /r/[id]). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -65,6 +65,8 @@
|
||||
"shareCopyFailed": "Échec de la copie du lien",
|
||||
"shareNotPublicNotice": "Ce lien ne fonctionnera qu'une fois la recette définie sur Public — lien copié quand même.",
|
||||
"print": "Imprimer",
|
||||
"qrCodeAlt": "Code QR menant à cette recette",
|
||||
"qrCodeCaption": "Scannez pour voir en ligne",
|
||||
"ingredients": "Ingrédients",
|
||||
"instructions": "Instructions",
|
||||
"photos": "Photos",
|
||||
|
||||
Reference in New Issue
Block a user