(FEAT): Wired backend to frontend for recipe creation. #7

Merged
azpect merged 3 commits from feature/recipes into master 2025-07-01 20:04:17 -07:00
Showing only changes of commit 519b71f72d - Show all commits

View File

@ -135,50 +135,50 @@ creation process will take place here
##### UI Requirements ##### UI Requirements
- [ ] Create Recipe Heading Banner - [x] Create Recipe Heading Banner
- [ ] Large, simple text banner that displays a header - [x] Large, simple text banner that displays a header
- [ ] Smaller text section that contains some useful information for using the wizard - [x] Smaller text section that contains some useful information for using the wizard
- [ ] Recipe Creation Wizard - [x] Recipe Creation Wizard
- [ ] **Recipe Details:** required - [x] **Recipe Details:** required
- [ ] **Recipe title:** small text input (1 to 128) - [x] **Recipe title:** small text input (1 to 128)
- [ ] **Recipe description:** large text input - [x] **Recipe description:** large text input
- [ ] **Meal category:** pill radio buttons or drop down* - [x] **Meal category:** pill radio buttons or drop down*
- [ ] **Service size:** numeric input (1 to 16) - [x] **Service size:** numeric input (1 to 16)
- [ ] **Difficulty rating:** star buttons that can be selected (up to 5) - [x] **Difficulty rating:** star buttons that can be selected (up to 5)
- [ ] **Duration:** prep and cook time, individual numeric inputs - [x] **Duration:** prep and cook time, individual numeric inputs
- [ ] **Ingredients:** required - [x] **Ingredients:** required
- [ ] **Dynamic ingredient list:** List of each ingredient - [x] **Dynamic ingredient list:** List of each ingredient
- [ ] **Content:** name and quantity (both text inputs) - [x] **Content:** name and quantity (both text inputs)
- [ ] **Actions:** delete button and **reorder element*** - [ ] **Actions:** delete button and **reorder element***
- [ ] **Add ingredient button:** Simple button to add a blank ingredient row - [x] **Add ingredient button:** Simple button to add a blank ingredient row
- [ ] **Instructions:** required - [x] **Instructions:** required
- [ ] **Dynamic instructions list:** Numbered list of each instruction - [x] **Dynamic instructions list:** Numbered list of each instruction
- [ ] **Content:** number and large text instruction - [x] **Content:** number and large text instruction
- [ ] **Rich text editor?*** - [ ] **Rich text editor?***
- [ ] **Actions:** delete button and **reorder element*** - [ ] **Actions:** delete button and **reorder element***
- [ ] **Add step button:** Simple button to add a blank instruction element - [x] **Add step button:** Simple button to add a blank instruction element
- [ ] **Media & Tags:** optional - [x] **Media & Tags:** optional
- [ ] **Image Upload** - [x] **Image Upload**
- [ ] Single image selector for the thumbnail image - [x] Single image selector for the thumbnail image
- [ ] Small image display once one has been upload - [x] Small image display once one has been upload
- [ ] Remove button to remove the image - [x] Remove button to remove the image
- [ ] Replace button to replace the image - [x] Replace button to replace the image
- [ ] **Tags** - [x] **Tags**
- [ ] Text input to add tags - [x] Text input to add tags
- [ ] Using list of existing tags, use a prefill while typing - [ ] Using list of existing tags, use a prefill while typing
- [ ] Tags that don't exist will be added - [x] Tags that don't exist will be added
- [ ] Display a small list of added tags - [x] Display a small list of added tags
- [ ] Clicking a tag will remove it from the list - [x] Clicking a tag will remove it from the list
- [ ] **Footer & Submit** - [x] **Footer & Submit**
- [ ] Save recipe button to complete the form - [x] Save recipe button to complete the form
- [ ] Button is disabled until the minimum required fields are complete* - [ ] Button is disabled until the minimum required fields are complete*
- [ ] Input Validation - [x] Input Validation
- [ ] Required elements should have a **required indicator** - [x] Required elements should have a **required indicator**
- [ ] Required elements will be validated input - [x] Required elements will be validated input
- [ ] **Valid:** Green outline or indicator* maybe a small, green check mark - [ ] **Valid:** Green outline or indicator* maybe a small, green check mark
- [ ] **Invalid:** Red outline or indicator* maybe a red border with error text - [x] **Invalid:** Red outline or indicator* maybe a red border with error text
'*': Not sure yet, still under consideration '*': Not sure yet, still under consideration
@ -187,13 +187,13 @@ creation process will take place here
##### API Requirements ##### API Requirements
- [ ] Middleware - [x] Middleware
- [ ] **Authentication:** User must be logged in to access this page - [x] **Authentication:** User must be logged in to access this page
- [ ] **Authentication:** User must be logged in to submit the creation of a recipe (fallback) - [x] **Authentication:** User must be logged in to submit the creation of a recipe (fallback)
- [ ] Recipe Creation Wizard - [x] Recipe Creation Wizard
- [ ] Create a new recipe object in the database - [x] Create a new recipe object in the database
- [ ] Recipe should be attached to a user (logged in) - [x] Recipe should be attached to a user (logged in)
- [ ] User should be directed to the view recipe page on a successful creation - [ ] User should be directed to the view recipe page on a successful creation