Commit Graph

150 Commits

Author SHA1 Message Date
Christopher C. Wells 713da8f728 Default food nutrients to zero 2021-02-10 06:02:15 -08:00
Christopher C. Wells 3c5d1c1f00 Use mg base unit for cholesterol and sodium 2021-02-10 05:55:01 -08:00
Christopher C. Wells bb3f1a2e1d Improve serving name handling for recipes and journal entries 2021-02-07 20:09:14 -08:00
Christopher C. Wells c909d3b535 Calculate Recipe ingredient nutrients from serving amount 2021-02-07 19:30:33 -08:00
Christopher C. Wells 0e89f19f27 Add path to nutrient-based journal entry 2021-02-06 20:13:33 -08:00
Christopher C. Wells bf4cec4d27 Use formatted serving unit in other areas 2021-02-06 13:59:19 -08:00
Christopher C. Wells afa4e5f93f Add custom serving name field to foods 2021-02-06 13:59:19 -08:00
Christopher C. Wells cfa9e2c1eb Ensure tags persist from old form data 2021-01-31 14:17:11 -08:00
Christopher C. Wells fa3c1ee69e Sync tags _after_ saving recipe 2021-01-31 13:56:45 -08:00
Christopher C. Wells 87311b9ec4 Supper gram-based data entry 2021-01-30 05:56:08 -08:00
Christopher C. Wells fc4e7a5fb5 Support "servings" unit and require unit 2021-01-27 08:46:12 -08:00
Christopher C. Wells 0eae4af7d6 Correct "serving" unit value check 2021-01-27 08:39:38 -08:00
Christopher C. Wells 6baf888d4f Add source and notes fields to foods 2021-01-27 05:51:38 -08:00
Christopher C. Wells a575622c9c Improve mobile usability in forms 2021-01-25 07:31:38 -08:00
Christopher C. Wells 536b2236f7 Remove unused welcome and dashboard artifacts 2021-01-25 05:47:02 -08:00
Christopher C. Wells 354e73ef67 Prevent exception on empty tags field 2021-01-24 21:06:12 -08:00
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 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 983b7695dd Add support for recipe recipe ingredients 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 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 f499e5ffb7 Add support for old values in recipe 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 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 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 afe2bdafe0 Enforce lower case for food and recipe names 2021-01-18 06:05:21 -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
Christopher C. Wells 63f22274a5 Improve repeating fractionals workaround 2021-01-15 06:13:32 -08:00
Christopher C. Wells 81f590515d Add support for fractional data entry 2021-01-15 06:09:21 -08:00
Christopher C. Wells 3628ab1f51 Assume empty "from unit" is serving 2021-01-15 05:09:42 -08:00
Christopher C. Wells 178d1d7aff Sort recipe ingredient options by name 2021-01-15 04:53:18 -08:00
Christopher C. Wells 03f9d5395a Make recipe description and units fields optional 2021-01-15 04:53:02 -08:00
Christopher C. Wells 5513c2b37c Add food delete form 2021-01-04 20:28:40 -08:00
Christopher C. Wells f389ebe594 Add food edit form 2021-01-04 06:08:12 -08:00
Christopher C. Wells a970dd9526 Add extra validation to journal entry store 2021-01-03 09:14:03 -08:00
Christopher C. Wells 2b1d9b8656 Fix journal entry meal labels 2021-01-03 08:52:33 -08:00
Christopher C. Wells d99d49777b Add IDE helper for better handling of Laravel builders 2021-01-03 08:40:16 -08:00
Christopher C. Wells 187c1a0e4a Add recipe nutrient calculation to journal entry store 2021-01-03 06:11:39 -08:00
Christopher C. Wells dbb752d73c Add journal entry add support (WIP) 2021-01-02 15:13:55 -08:00
Christopher C. Wells 2e7233b3b9 Move nutrient calculation to a support class 2021-01-02 15:13:36 -08:00
Christopher C. Wells 3bc346848c Add support for optgroups in select lists 2021-01-02 15:13:12 -08:00
Christopher C. Wells ab10dd0342 Use slugs for recipe and food routes 2021-01-01 20:34:55 -08:00
Christopher C. Wells 784bc490dc Add basic food show view 2021-01-01 20:00:55 -08:00
Christopher C. Wells c1ddb061df Add basic journal entries index (WIP) 2021-01-01 15:05:36 -08:00
Christopher C. Wells dfad48c71d Refactor journal entries to record nutrients directly 2021-01-01 09:50:19 -08:00
Christopher C. Wells dd40582b64 Update food views for servings data 2020-12-31 15:32:26 -08:00
Christopher C. Wells ebc6f9cdd5 Remove unused JSON:API elements 2020-12-31 15:00:38 -08:00
Christopher C. Wells c33776155a Refactor on servings-based food data (WIP) 2020-12-31 14:59:05 -08:00
Christopher C. Wells 1ec4439d8e Add initial "Journal entry" model 2020-12-31 11:00:14 -08:00
Christopher C. Wells 2dd92c8d3a Refactor "ingredients" as "foods" 2020-12-30 15:06:22 -08:00
Christopher C. Wells 7aab49a3cb Add recipe show view 2020-12-30 14:48:50 -08:00
Christopher C. Wells 545e4c0b5e Add recipe list view 2020-12-30 14:00:04 -08:00
Christopher C. Wells 198a32a915 Add step support to recipe create form 2020-12-30 13:23:41 -08:00
Christopher C. Wells f8c6f81e60 Allow null values for ingredients 2020-12-30 11:57:08 -08:00
Christopher C. Wells d4e3658294 Add support for set number of recipe ingredient amounts 2020-12-30 11:27:38 -08:00
Christopher C. Wells a04be37acb Start Recipe controller (WIP) 2020-12-30 08:30:14 -08:00
Christopher C. Wells c12796cb28 Add Ingredients index view 2020-12-29 10:33:36 -08:00
Christopher C. Wells 9026ee9240 Create Ingredient create form 2020-12-23 14:54:54 -08:00
Christopher C. Wells cccc2d2760 Install and init `laravel/breeze` 2020-12-22 22:28:35 -08:00
Christopher C. Wells aa9b504653 Add JSON:API via `cloudcreativity/laravel-json-api` 2020-12-22 22:16:18 -08:00
Christopher C. Wells 00eb252995 Use overloading in Recipe class 2020-12-22 20:07:24 -08:00
Christopher C. Wells 3060bdbb7c Add support for sodium and cholesterol tracking 2020-12-22 19:55:33 -08:00
Christopher C. Wells e3e84c2e13 Add nutrients per serving methods to Recipe 2020-12-22 15:15:41 -08:00
Christopher C. Wells 013baa88fc Refactor on base 100g unit 2020-12-22 15:08:49 -08:00
Christopher C. Wells 2d1990d415 Add RecipeStep model 2020-12-21 21:23:38 -08:00
Christopher C. Wells 361d3b3a07 Add nutrient sum methods to IngredientAmount and Recipe 2020-12-21 20:56:23 -08:00
Christopher C. Wells 978a3088c4 Add unit support to IngredientAmount 2020-12-21 20:24:47 -08:00
Christopher C. Wells 790e1af828 Add example total calories getter 2020-12-21 19:38:58 -08:00
Christopher C. Wells d54ad13460 Add Recipe model 2020-12-21 15:25:10 -08:00
Christopher C. Wells a4cc3c3f65 Add IngredientAmount model 2020-12-21 13:59:05 -08:00
Christopher C. Wells 18543c4971 Add Ingredient model 2020-12-21 13:54:30 -08:00
Christopher C. Wells dbc7ad9c32 Initial commit -- Laravel base app 2020-12-21 09:46:31 -08:00