Repository navigation
feat(web): show recipe notes in cooking mode - #855
Merged
dubadub merged 2 commits intoNov 24, 2026
Merged
Conversation
Co-authored-by: Codex <[email protected]>
dubadub
approved these changes
Nov 24, 2026
dubadub
left a comment
Member
There was a problem hiding this comment.
Thanks, this works well: notes keep their file order, step numbers and timers are unaffected, and the note text is escaped properly. I'm approving. Three optional cleanups, here or in a follow-up:
- Steps are sent twice. Each section's cooking-mode JSON now carries every step in both
stepsanditems. The only reader iscooking-mode.js, which usesstepsonly forsection.steps.length, and the picture-dialog e2e test already had to patch both lists. Counting steps fromitemsand droppingstepswould leave one source of truth. - Unused
globalStepNumber.startCookingMode(globalStepNumber)gains a parameter, but nothing passes it: both the Cook button and the keyboard shortcut callstartCookingMode(). Please drop it unless something is going to use it (starting at a given step, for example). - Links only in cooking mode. Cooking mode turns http(s) URLs in notes into links, but
recipe.htmlshows the same notes as plain text. Either keep them plain in cooking mode or add the same linking to the recipe page, so a note looks the same in both views.
- Send each section's steps once, in `items`. Cooking mode counts a section's steps from it, so the `steps` list is gone from the JSON. - Drop the `globalStepNumber` parameter of `startCookingMode`: both callers open cooking mode at the start. - Link http(s) URLs in notes on the recipe page too (`link_urls` filter), with the same rules as cooking mode, so a note reads the same in both views. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Thanks for the review! I took all three in b352a4b:
Checks: |
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
Cooking mode now keeps recipe notes in their file order instead of dropping them. Adjacent notes share a card, including notes before the first step, after the last step, and in sections with no steps. This follows the acceptance recipe in #836.
startCookingMode(globalStepNumber)locates a step independently of inserted note cards, while the usual no-argument call still starts at the beginning.noopener noreferrer.Closes #836.
Verification
On macOS ARM64 with Rust 1.100.0 and Node 26:
cargo test --workspace --no-fail-fast: 1,907 passed, 0 failed.cargo test --no-default-features --no-fail-fast: 489 passed, 0 failed; existing dead-code warnings for disabled server/feed paths remain.cargo clippy --workspace --all-targets --all-features -- -D warnings,cargo fmt --all -- --check,git diff --check, and JavaScript syntax check passed.seed/config/pantry.confchanged. After restoring that fixture, the focused pantry retry passed (347 distinct passing cases across the run and retry, 5 skipped). The existing picture-dialog test now waits for its asynchronously loaded options before reading them.The acceptance sequence is Ingredients (Sear) → Note A → Step 1 → Note B + C → Step 2 → Note D → Note E (Rest) → Bon Appetit. Desktop and phone-size screenshots use a synthetic recipe.
Screenshots
Release note
Cooking mode shows recipe notes between steps without changing step numbers.
Codex assisted with implementation and tests.