detail
Reviewing USR369's tablet screenshot (font-size fix confirmation), the listed ingredients didn't sum to the displayed total: Flour 490 + Water 355.3 + Starter 98 + Salt 10.8 + Sugar 24.5 = 978.6g, but the displayed Total Dough Weight was 954g -- exactly the sum WITHOUT the 24.5g Sugar add-in. Traced to calc(): const total = flour + waterToAdd + starterWeight + salt + oil + yeast + malt -- addIns were never part of this sum, in the ORIGINAL app design, not something introduced by any of today's fixes. This means every total shown whenever any add-in was present (garlic, herbs, seeds, dried fruit, sugar, cinnamon, malt-as-addin, etc.) has been undercounting the true dough weight since before this session, affecting anything relying on the total (pan-size comparisons, portioning). FIX: added addinGrams(item) -- converts any add-in to grams regardless of its stored display unit (tsp/tbsp/cup/g), using the known density table for recognized ingredients; custom/manual items already in grams pass through directly; a custom item in an unconvertible unit (no known density) is excluded from the total rather than guessed, to avoid fabricating a number. Summed across all add-ins and folded into calc()'s total.