Skip to main content
devtestudinidae

DevTestudinidae

Independent developer writing practical notes on AI-assisted development, automation, troubleshooting, and small web tools.

Spoonie now shows kitchen fractions without hiding the real quantity

한국어판: 레시피 양을 조절할 때, 숫자가 사용자를 속이지 않도록

Spoonie already had serving-size and ingredient-reference calculations. The problem was how some results looked in the kitchen. A mixed quantity such as 6 2/3장 was hard to scan. Rounding an awkward scaled value could hide a useful decimal or turn a small positive amount into 0g.

Three merged changes on December 2, 2026 addressed the display, while keeping the underlying quantity calculations separate: PR #54, PR #55, and PR #56.

What changed for someone cooking

The display-only formatDisplayAmount() and formatDisplayUnit() decide how quantities read on screen. The existing formatAmount() still supplies machine-readable numeric/ASCII values for RecipeSchema JSON-LD. Saved ingredient quantities and the scaling arithmetic were not changed by this display fix.

I checked the released adjustment screen

In the public Mitarashi Dango recipe, the ingredient list shows 1½작은술 and ½큰술. I then opened Match the ingredients I have and changed the reference rice-flour amount from 70g to 1g in real Chrome at 390px and 1440px.

The preview showed the other rice flour at 1g, dough water as 약 1.9ml, and several smaller sauce and seasoning amounts as 아주 조금. There were no browser JavaScript errors during those checks. This is a preview only; I did not apply or save the adjusted recipe.

Actual Spoonie mobile ingredient-adjustment screen: reference rice flour set to 1g, the second flour at 1g, dough water about 1.9ml, and tiny sauce ingredients marked 아주 조금.
Actual 390px mobile preview, captured December 3, 2026. The public recipe credits Shihoko Ura / Chopstick Chronicles as its original recipe source.

How it was verified

PR #54 added the typographic fraction display and passed 430 Vitest tests. PR #55 added bounded precision and approximation marks and passed 447 tests. PR #56 adjusted the very-small-amount wording and passed 454 tests; its matching GitHub browser workflow and Netlify Deploy Preview checks succeeded. Each pull request was merged into the original Spoonie repository.

The live checks establish the screen’s displayed quantities, not the accuracy of a finished dish or whether more readers completed a recipe. Spoonie itself warns that seasoning and cooking time may not scale linearly with ingredient amounts.

Original sources