Add recipe steps with dynamic form UI#30
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Conversation
- Create Step model with recipe_id, position, body fields - Add Stimulus steps_controller.js for dynamic add/remove rows - Steps section rendered below ingredients on recipe form - Step numbers auto-renumber when adding/removing rows - Position auto-assigned from visual order on save - Steps displayed as numbered list on recipe show page - Steps ordered by position and destroyed with recipe - 100 tests, 306 assertions, all passing Closes #28 Co-Authored-By: Sam Serrano <samuel.j.serrano@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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
Implements Issue #28 — "As Michael, I want my Recipes to have Steps."
Changes:
recipe_id,position(integer, NOT NULL), andbody(text, NOT NULL)has_many :steps(ordered by position, dependent destroy)steps_controller.jsfor dynamic add/remove step rows — mirrors the existing ingredients pattern. Step labels auto-renumber (Step 1, Step 2, ...) when rows are added or removed+ Add Stepbutton, text area per step, and×remove buttonReview & Testing Checklist for Human
Notes
Link to Devin session: https://app.devin.ai/sessions/06cbafdef49a46e88741224f05c8f84e
Requested by: @utricularian