fix(kitchen): keep quantities written in words in shopping list and views #175
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!175
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/text-only-quantity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A quantity with no number (
@sel{une pincée},@poivre{selon le goût}) compiles as a unit with noqty, asdata-formats.mdxdocuments, but three places dropped it: the shopping list, the section's ingredients and the step text.generateShoppingList(kitchen) lists it invariable_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-018and026gainvariable_entries. The 1.3.0 digest of 026 ({1/0 cups}) is regenerated: its shopping entry now listscups(the case is named inlegacy-1.3.0.test.ts).Changeset:
patchkitchen + renderer.