fix(recipe): use one servings limit everywhere and allow typing it #111
+176
−82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
MIN_SERVINGS/MAX_SERVINGSnow live in the shared package (@t31/validation/recipe) and are used by the API's Zod schema, the recipe form and the detail page.ServingsStepperreplaces the two duplicated stepper blocks (mobile and desktop): the −/+ buttons stay, and the number is now a labelled number field ("Servings (1–1000)"). Valid whole numbers apply while typing; out-of-range values are clamped and empty/invalid input restores the last value when the field is left (or on Enter). Button changes are announced in a polite live region. Visually unchanged.Validation
npm run checkpasses (212 unit tests), incl. a new test: a 40-serving recipe, +1, typing 250, typing 5000 → clamped to 1000 (+ disabled), clearing → restored.AI usage
Written with Claude Code (Anthropic) to address a teammate's review of the final-delivery findings. Please review the diff as you would any other contribution.
Closes #101