# Work through the saved recipes

Family members save recipe links and cookbook photos in the app (Retter → "Gem opskrift til senere").
Each waits as `pending` until you turn it into a dish (or decide not to), so the app shows
"Tilføjet som …" or "Ikke tilføjet: …".

1. `get_pending_recipes` lists what is waiting (id, link or number of photos, title, book/page, tags,
   note, who saved it). Nothing waiting → say so and stop.
2. For each one:
   - **Link:** read the page with your web tool.
   - **Photos:** `get_saved_recipe_photos(id)` gives you the pictures to read, and says what each shows
     (ingredients, method, other). Pages can be split across photos; piece them together.
   - The family's title, book/page (→ `source`) and tags win: use them, add more tags if useful.
   - Decide:
     - not a recipe, unreachable, paywalled, unreadable photo, or it needs ingredients the household
       excludes → **reject** with a short Danish reason ("ikke en opskrift", "kræver login",
       "billedet kan ikke læses");
     - the household already has the dish (`find_dishes`) → **added as** that dish;
     - otherwise draft it following `how_to("add_dish")` (steps 3-5).
   - A note like "mild", "uden koriander", "dobbelt portion" is the household's wish: apply it to the dish.
   - A recipe that builds on another one in the book ("1/3 af linsegryden, s. 26"): ask for that page too,
     make it a dish, and let this one use it (`uses`, see `how_to("add_dish")`). Never guess the base.
3. Show the user every proposal together: per new dish the name, minutes, protein and a compact
   ingredient table; per reject/duplicate one line with the reason. Wait for yes or corrections.
4. Create the approved dishes (`create_dish`), then record each outcome:
   `mark_pending_recipe(id, status="added", recipe_id=<dish id>)` or
   `mark_pending_recipe(id, status="rejected", detail="<reason>")`.
   Ones you couldn't decide stay pending; say why.
5. Report: added (as which dish), rejected (why), still waiting.
