You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shopping list silently drops ingredients whose names differ only by case #694
Root cause is in the cooklang 0.19.0 dependency, ingredient_list.rscategorize(): the lookup is an IndexMap keyed by name.to_lowercase(), so .collect() keeps only the last of sugar/Sugar.
CookCLI can fix this in AggregatedList::build (pre-merge case variants); alternatively the dependency can fix categorize.
Repro
Recipe case2.cook:
Add @sugar{1%cup} and @Sugar{2%cups}.
$ cook shopping-list case2.cook
Sugar 2 cups
The 1 cup of sugar vanishes. Same via the web UI: POST /api/shopping_list returns only Sugar.
Expected
Both entries appear on the list (sugar 1 cup and Sugar 2 cups, or an aggregated 3 cups).
Actual
Only Sugar 2 cups is listed; the 1 cup is silently dropped.
Acceptance criteria (red → green)
Red: the repro prints only Sugar 2 cups.
Green: the repro lists both case variants (or their sum); the web UI answer contains both names.
Verification
Executed repro, verified on the CLI and the web UI.
Activity
fix(shopping-list): merge case variants into one item (#694) (#747)