fix(kitchen): keep quantities written in words in shopping list and views #175

Merged
abiwab merged 2 commits from fix/text-only-quantity into dev/1.5 2026-11-17 17:05:56 +01:00
Owner

A quantity with no number (@sel{une pincée}, @poivre{selon le goût}) compiles as a unit with no qty, as data-formats.mdx documents, but three places dropped it: the shopping list, the section's ingredients and the step text.

  • generateShoppingList (kitchen) lists it in variable_entries: an added field, nothing existing changes.
  • aggregateSectionIngredients (kitchen) lists it as written, like a measured mention.
  • formatUsageQuantity (renderer) shows the unit alone when there is no number.

Already the case on main, kept for 1.5 since no 1.4.3 is planned before it.

Conformance: goldens warn-018 and 026 gain variable_entries. The 1.3.0 digest of 026 ({1/0 cups}) is regenerated: its shopping entry now lists cups (the case is named in legacy-1.3.0.test.ts).

Changeset: patch kitchen + renderer.

A quantity with no number (`@sel{une pincée}`, `@poivre{selon le goût}`) compiles as a unit with no `qty`, as `data-formats.mdx` documents, but three places dropped it: the shopping list, the section's ingredients and the step text. - `generateShoppingList` (kitchen) lists it in `variable_entries`: an added field, nothing existing changes. - `aggregateSectionIngredients` (kitchen) lists it as written, like a measured mention. - `formatUsageQuantity` (renderer) shows the unit alone when there is no number. Already the case on `main`, kept for 1.5 since no 1.4.3 is planned before it. **Conformance**: goldens `warn-018` and `026` gain `variable_entries`. The 1.3.0 digest of **026** (`{1/0 cups}`) is regenerated: its shopping entry now lists `cups` (the case is named in `legacy-1.3.0.test.ts`). Changeset: `patch` kitchen + renderer.
abiwab merged commit 1b7763f163 into dev/1.5 2026-11-17 17:05:56 +01:00
abiwab deleted branch fix/text-only-quantity 2026-11-17 17:05:57 +01:00
Sign in to join this conversation.
No description provided.