Skip to content

fix: correct shelf lives, prawn data and step texts of the new recipes - #72

Merged
guplem merged 2 commits into
mainfrom
fix/fichas-cocina-recipe-data
Sep 25, 2026
Merged

guplem merged 2 commits into
mainfrom
fix/fichas-cocina-recipe-data

Conversation

@guplem

@guplem guplem commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Fixes the data errors that a review found in the 29 recipes from #71. It also fixes the Mercadona guide that caused two of them.

Data fixes (RecipeBook.tsr)

  • Gambas con queso: the recipe put 250 g of salt per serving on the shopping list. The salt is a cooking crust that you throw away, so it is now only in the step text.

  • Gambas: the product is peeled frozen prawns, but the steps said to peel them and keep the heads. The steps now thaw them instead. gramsPerPiece changes from 20 to 12, the weight of a medium peeled prawn.

  • Jamón cocido: the opened shelf life changes from 5 to 2 days. Mercadona says 48 hours.

  • Coco rallado: the opened shelf life is now 7 days. Mercadona says one week.

  • Sealed shelf life (shelfLifeDaysClosed) was missing for chilled and frozen items, so the app never warned that they may expire. The new values follow the older similar ingredients:

    Ingredient Days
    Jamón cocido 21
    Chistorra 14
    Queso en lonchas para fundir 45
    Quesitos en porciones 90
    Mantequilla 90
    Almejas 365
    Gambas 365

    Jamón cocido and Chistorra also get canBeFrozen, like the other deli meats.

  • Garlic text: "Ajo troceado" is chopped garlic. Lentejas, Gambas al ajillo and Dorada al horno described whole or sliced cloves, and Lentejas even took the garlic out after cooking. The texts now match chopped garlic.

  • Revuelto de setas: "4 partes del aceite" now says "dos tercios del aceite", which is what the booklet means.

Doc fix (mercadona-api.md)

  • The guide now says to read both storage_instructions and usage_instructions. The opened shelf life is often only in the second field.
  • The guide now says to use drained_weight when unit_size is null.

Not changed

Some booklet portions are small: 62.5 g of pasta, 1-egg tortillas and 1 salmon piece per serving. Some total times are longer than the booklet. These were left as they are on purpose.

Testing

flutter test test/: all 1053 tests pass.

🤖 Generated with Claude Code

guplem and others added 2 commits September 25, 2026 18:32
A review of the 29 "Fichas de cocina" recipes found data errors.

- Gambas con queso put 250 g of salt per serving on the shopping list.
  The salt is a cooking crust that is thrown away, so it now stays in
  the step text only.
- The Gambas product is peeled frozen prawns, but the steps said to
  peel them and keep the heads. The steps now thaw them instead, and
  gramsPerPiece drops from 20 to 12 (medium peeled prawn).
- Jamon cocido kept 5 days after opening; Mercadona says 48 hours.
  Coco rallado had no opened shelf life; Mercadona says one week.
- Chilled and frozen items had no sealed shelf life, so the app never
  warned that they may expire. The values now follow the older similar
  ingredients (deli 14-21, cheese 45-90, frozen 365).
- Ajo troceado is chopped garlic, but three steps talked about whole
  or sliced cloves (and one removed them after cooking).
- Revuelto de setas said "4 partes del aceite"; it means two thirds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guide sent readers only to details.storage_instructions. For many
products the "once opened" text is only in details.usage_instructions,
so the opened shelf life was missed (jamon cocido, coco rallado). The
guide also now says to use drained_weight when unit_size is null.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@guplem guplem added the waiting-for-human-check No human has verified this yet -- direct AI output label Sep 25, 2026
@guplem guplem self-assigned this Sep 25, 2026
@guplem
guplem enabled auto-merge September 25, 2026 16:34
@guplem
guplem merged commit 46f82b4 into main Sep 25, 2026
1 check passed
@guplem
guplem deleted the fix/fichas-cocina-recipe-data branch September 25, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-for-human-check No human has verified this yet -- direct AI output

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant