detail
Added 'Save it to your recipes' button in DoughCalc's Bake Notes card, next to the existing 'Save to bake log' button (both now present, side by side -- neither replaces the other). New button: takes the bake note text, matches the currently-loaded recipe name (recipeName.textContent) against get_recipes by exact case-insensitive title, and if found APPENDS a dated block (date + bake temp/time/add-ins context + the note text) onto that recipe's existing notes field via update_recipe -- never overwrites, always appends after a blank-line separator. If no matching recipe exists yet, shows a clear message pointing to 'Save as recipe' first rather than silently failing or creating an incomplete recipe. This directly answers the 'notes disappear from the recipe' complaint from earlier -- that was always about the OLD button (Save to bake log, still unchanged, still logs a standalone item) being a different, disconnected feature from the recipe itself. Backed up DoughCalc first (BACKUP.php all_pass true), node --check passed on the extracted script, byte-verified deploy. Then ran a full end-to-end functional probe simulating the exact same fetch/update_recipe calls the button's JS makes against real recipe #26 -- confirmed the append-not-overwrite behavior works correctly (709 chars before, 841 after with the test block appended, notes not clobbered), then restored the original 709-char content and verified the restore landed exactly.