Commit Graph

201 Commits

Author SHA1 Message Date
Christopher C. Wells 5bc1499e1a Correct summing function for entry nutrients 2021-01-24 19:46:44 -08:00
Christopher C. Wells 037d20fbb7 Add phpstan support 2021-01-24 19:43:59 -08:00
Christopher C. Wells d1c66924ea Add "manual" journal entry option 2021-01-24 18:56:03 -08:00
Christopher C. Wells 089b2edab2 Prefill journal entry values with previous entry data 2021-01-24 16:10:52 -08:00
Christopher C. Wells 35f386d681 Add backend support for multiple dates/meals in journal entry 2021-01-24 15:24:03 -08:00
Christopher C. Wells 309ec6810c Move date and meal fields to each line (WIP)
Frontend only, no backend support yet.
2021-01-24 13:07:42 -08:00
Christopher C. Wells 7526138ad2 Add search/load support to recipes 2021-01-23 21:55:21 -08:00
Christopher C. Wells 2a6549c6d2 Fix edit link in Foods list 2021-01-23 21:35:45 -08:00
Christopher C. Wells c29c88776f Add tagging support to foods and recipes 2021-01-23 19:58:03 -08:00
Christopher C. Wells 80bdd0ebae Set default API in boot 2021-01-23 16:29:15 -08:00
Christopher C. Wells ae626e5392 Add search and filtering to food index 2021-01-23 16:16:15 -08:00
Christopher C. Wells 2e55ea1d98 Configure basic API paging, sorting, and filtering 2021-01-23 15:07:49 -08:00
Christopher C. Wells 39455af3c9 Add API relationships 2021-01-23 14:47:40 -08:00
Christopher C. Wells 166427dce6 Establish base JSON:API endpoints 2021-01-23 14:21:37 -08:00
Christopher C. Wells 3101c34071 Add ingredient picker support to journal entry form 2021-01-23 10:33:25 -08:00
Christopher C. Wells 333abbb8f5 Link to recipe show from recipe ingredients 2021-01-23 10:33:25 -08:00
Christopher C. Wells 983b7695dd Add support for recipe recipe ingredients 2021-01-23 10:33:25 -08:00
Christopher C. Wells ff829d9d8d Use `x-spread` for ingredients picker JS 2021-01-23 10:33:25 -08:00
Christopher C. Wells e335c249d8 Fix old ingredients reference 2021-01-23 10:33:25 -08:00
Christopher C. Wells 1c420bc624 Remove remaining FoodAmount references 2021-01-23 10:33:25 -08:00
Christopher C. Wells 670d6127ca Refactor Recipe to support IngredientAmount (WIP)
Only Food IngredientAmounts are supported currently.
2021-01-23 10:33:25 -08:00
Christopher C. Wells 2dfc9b457c Add a migration for FoodAmount -> IngredientAmount 2021-01-23 10:33:25 -08:00
Christopher C. Wells 19eac25413 Update nutrient calculation for IngredientAmount 2021-01-23 10:33:25 -08:00
Christopher C. Wells 5ded6bfce6 Create IngredientAmount class
This class will replace FoodAmount when it has proper support for
calculating nutrients for FoodAmount and Recipe combinations.
2021-01-23 10:33:25 -08:00
Christopher C. Wells 13f1302132 Add initial Recipe support to ingredient picker (WIP)
A new class it likely needed here -- IngredientAmount -- to support either a
Food or a Recipe.
2021-01-23 10:33:25 -08:00
Christopher C. Wells 0aa2267e3b Refactor journal entry form fields structure 2021-01-22 21:11:19 -08:00
Christopher C. Wells fe868a1a08 Handle step deletes 2021-01-22 21:11:19 -08:00
Christopher C. Wells acdd89c192 Handle ingredient deletes 2021-01-22 21:11:19 -08:00
Christopher C. Wells 9f180b9b62 Refactor ingredients field structure 2021-01-22 21:11:19 -08:00
Christopher C. Wells 0c0febed6c Add support frontend support for removing steps (WIP)
Step numbers not working. No backend support yet.
2021-01-22 21:11:19 -08:00
Christopher C. Wells f499e5ffb7 Add support for old values in recipe form 2021-01-22 21:11:19 -08:00
Christopher C. Wells cec27ff0b0 Add frontend ingredient remove elements (WIP)
No backend support yet. Old values are not supported in the form.
2021-01-22 21:11:19 -08:00
Christopher C. Wells b53a76939a Remove Livewire 2021-01-22 21:11:19 -08:00
Christopher C. Wells f2864b76dc Complete AlpineJS-based ingredient picket 2021-01-22 21:11:19 -08:00
Christopher C. Wells cb7483ae06 Begin work on non-livewire ingredient picker (WIP)
This commit is mostly a PoC and looks like it will work in place of the
initial Livewire-based component for a repeatable picker.
2021-01-22 21:11:19 -08:00
Christopher C. Wells 856bfb39b9 Refactor ingredients for ingredient add (WIP)
Currently non-functional as the livewire component does not work inside an
Alpine template.
2021-01-22 21:11:19 -08:00
Christopher C. Wells 372753887f Add ability to add steps to recipe 2021-01-22 21:11:19 -08:00
Christopher C. Wells ac1ec3316b Add limit option to food search 2021-01-22 21:11:19 -08:00
Christopher C. Wells e68dac7f55 Complete initial food picker component 2021-01-22 21:11:19 -08:00
Christopher C. Wells f48249d9e5 Refactor as food-specific picker 2021-01-22 21:11:19 -08:00
Christopher C. Wells 18d15db375 Add basic livewire picker (WIP) 2021-01-22 21:11:19 -08:00
Christopher C. Wells ba7cd55503 Write IDE helper content directly to models 2021-01-18 13:33:21 -08:00
Christopher C. Wells 9a60dbbe6e Add ability to delete journal entries 2021-01-18 13:30:12 -08:00
Christopher C. Wells 195ca1648d Move session message and errors to app layout 2021-01-18 09:23:31 -08:00
Christopher C. Wells 70c9396d0f Add `source` field to Recipe model 2021-01-18 09:22:08 -08:00
Christopher C. Wells f974806b15 Add `detail` field to Food Amount model 2021-01-18 08:59:55 -08:00
Christopher C. Wells 38db1ce41d Convert existing name columns to lowercase 2021-01-18 08:43:31 -08:00
Christopher C. Wells afe2bdafe0 Enforce lower case for food and recipe names 2021-01-18 06:05:21 -08:00
Christopher C. Wells e00373790d Fix sizing of nutrient entry fields 2021-01-18 05:47:12 -08:00
Christopher C. Wells ab28efba52 Add recipe edit support (WIP)
Not possible to remove existing ingredients or steps.
2021-01-15 20:14:35 -08:00