Commit Graph

84 Commits

Author SHA1 Message Date
Christopher C. Wells 232f5ddfe8 Attempt to improve handling for common 1/3 and 2/3 amounts 2021-04-10 14:22:14 -07:00
Christopher C. Wells 17e640303d Implement FDA guideline-based rounding
Rounding is left out of Food nutrients for now to prevent rounding up before
summing in certain places.
2021-04-08 16:34:30 -07:00
Christopher Charbonneau Wells 350a08a14d
Add Heroku support (#12) 2021-04-06 10:05:10 -07:00
Christopher C. Wells 8788c39d44 Remove breeze boilerplate verification and registration code 2021-04-05 05:41:34 -07:00
Christopher C. Wells edbcd877c2 Filter supported units in ingredient picker 2021-04-04 14:55:19 -07:00
Christopher C. Wells 1776d5c83b Re-enable User API endpoint 2021-04-02 23:42:27 -07:00
Christopher C. Wells e97056553a Add API endpoint and relationships for recipe separators 2021-04-02 23:42:27 -07:00
Christopher C. Wells 28c915b8c5 Override Tag class in app models 2021-04-02 23:42:27 -07:00
Christopher C. Wells 29638c711f Replace meals static array with Collection 2021-04-02 23:42:27 -07:00
Christopher C. Wells 3c37fe4809 Complete initial factories for all models 2021-04-02 23:42:27 -07:00
Christopher C. Wells a6c978981d Add Goal factory 2021-04-02 23:42:27 -07:00
Christopher Charbonneau Wells 0407899496
Add ingredient separators (#10)
* Add weight handling to ingredient sortable

* Add frontend logic for recipe ingredients "separator"

* Add "recipe separator" model

* Update ingredient handlers on recipe save

* Combine ingredients and separators handler in recipe edit

* Handle recipe ingredient separators in recipe show

* Fix handling of old recipe form data
2021-03-26 08:58:37 -07:00
Christopher C. Wells dae2a8d725 Add unit to nutrients summary value 2021-03-17 05:17:22 -07:00
Christopher C. Wells be9c45a414 Replace recipe active time with cook time 2021-03-13 13:51:37 -08:00
Christopher C. Wells c978c5843d Use recipe image as background 2021-03-12 20:48:08 -08:00
Christopher C. Wells ac57f6d33e Add initial recipe image support 2021-03-12 20:48:08 -08:00
Christopher C. Wells 65e3e9c776 Set formatted serving size to null when empty 2021-03-08 15:06:21 -08:00
Christopher C. Wells fafc4c9e33 Remove unused use statement 2021-03-08 08:40:36 -08:00
Christopher C. Wells 053c8305a1 Refactor Quill handling as a separate database column 2021-03-08 08:40:36 -08:00
Christopher C. Wells 99300d1b2d Add frontend support for Quill JSON strings 2021-03-08 08:40:36 -08:00
Christopher C. Wells be681f0dd7 Add recipe time fields (WIP)
Not present in th frontend yet.
2021-03-06 09:30:15 -08:00
Christopher C. Wells 8feb7b37fa Set tags keyword field with array 2021-03-05 14:50:54 -08:00
Christopher C. Wells 5dfd3e17df Use babenkoivan Elasticsearch ecosystem 2021-03-04 22:17:33 -08:00
Christopher C. Wells 794c0712bc Add basic tags front end support 2021-02-27 13:50:40 -08:00
Christopher C. Wells 1b1260bece Add convenience method to get total tags figures per model 2021-02-27 13:50:40 -08:00
Christopher Charbonneau Wells 076882ecdb
Add fulltext search support to ingredient picker 2021-02-24 18:44:17 -08:00
Christopher C. Wells 2f91c320ef Refactor nutrients data array as a collection 2021-02-21 08:23:30 -08:00
Christopher C. Wells ae27a2e4bd Fix Ingredient/HasIngredient trait relationships 2021-02-17 06:05:29 -08:00
Christopher C. Wells e356c56bf6 Add ability to google recipe per-ingredient nutrient data 2021-02-16 06:04:14 -08:00
Christopher C. Wells 8ce5b82825 Add re-ordering support to recipe ingredients and steps 2021-02-15 21:08:36 -08:00
Christopher Charbonneau Wells 414629b469
Add goals support (#4) 2021-02-15 14:19:53 -08:00
Christopher C. Wells 33a8591c72 Add handling for recipes by weight in ingredient amounts and journal entries 2021-02-11 20:25:36 -08:00
Christopher C. Wells 836c40abf2 Add recipe weight support 2021-02-11 19:49:27 -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 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 6baf888d4f Add source and notes fields to foods 2021-01-27 05:51:38 -08:00
Christopher C. Wells 037d20fbb7 Add phpstan support 2021-01-24 19:43:59 -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 c29c88776f Add tagging support to foods and recipes 2021-01-23 19:58:03 -08:00
Christopher C. Wells 2e55ea1d98 Configure basic API paging, sorting, and filtering 2021-01-23 15:07:49 -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 f499e5ffb7 Add support for old values in recipe form 2021-01-22 21:11:19 -08:00