Repository navigation
Conversation
Cook Mode now opens on an ingredients page before step 1: a grocery-style checklist with native checkboxes and a −/+ servings stepper that rescales every amount. The scaling engine is a port of the Kaper web app's, so a recipe scales identically in both: amounts round to two decimals and units with no meaningful multiple (to taste, as needed, pinch, dash) pass through. Cook Mode navigation is now a page model (page 0 = ingredients, page n = step n), so the progress bar reads 0% before cooking starts. Recipes with no ingredients skip straight to step 1; recipes whose servings count is not a positive whole number show the amounts as written with no stepper, so a negative or NaN count can never throw mid-render. The desktop leaf keys the component per open so a reused panel never carries one recipe's servings or ticks into the next. The ingredient line markup (amount, name, note, optional, substitution) is extracted into a shared IngredientText so the preview and the checklist cannot drift.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Release 1.5.0: recipe scaling in Cook Mode, and the move to GPL-3.0.
Recipe scaling in Cook Mode
to taste,as needed,pinch, anddashpass through unchanged.IngredientTextcomponent.License (merged from #17)
docs/licensing/.package.jsonmetadata, the README's license and contribution sections, and the changelog are updated.main.jsandstyles.csscarry a license banner, and the Release workflow attachesLICENSEand the two notices to the draft release.Changelog updated and version bumped to 1.5.0 (
manifest.json,versions.json,package.json).Test plan
npm run format:check,npm run lint,npm test(132 tests), andnpm run buildpass locally on the merged branch; CI runs the same.main.jsandstyles.cssstart with the GPL banner.pinchis untouched, and − is disabled at 1.After merge
mainas1.5.0and push the tag; the Release workflow builds and publishes the GitHub release from it. Confirm the draft release containsLICENSE,OBSIDIAN-LINKING-EXCEPTION.txt, andMIT-previous-versions.txtalongside the plugin assets.mainback intodevso it carries the version bump; License future plugin releases under GPL-3.0 #17 then closes as merged.