cryptogopher
a416e1ce9b
Fixed importing Foods with QuantityValue
...
Fixed double flash when not followed by request
Added Food#destroy error reporting
Simplified prepare_meals with no ingredients
Renamed scope on item with subitems: subitems -> with_subitems
2020-05-20 23:33:34 +02:00
cryptogopher
c402fe8353
Removed ITEM_TYPES in favor of uniformly named scopes/attributes
2020-05-16 17:37:51 +02:00
cryptogopher
ed6b1b9fe7
Preliminary MealsController#create
2020-04-16 22:02:53 +02:00
cryptogopher
e78803e474
Added MealsController#new and form autocomplete for Food
...
Renamed QuantityColumn -> Exposure
2020-04-15 23:42:58 +02:00
cryptogopher
8e8160c41a
Renamed Ingredient -> Food
...
Ingredient is now part of composition (meal/recipe/dish)
2020-04-14 19:44:19 +02:00
cryptogopher
ced06a25bc
Added :meals and :compositions_ingredients tables
...
Changed Column -> QuantityColumn
Updated :ingredients table to handle recipes
2020-04-13 01:11:34 +02:00
cryptogopher
20deb944c3
Updated Ingredients to use ItemsWithQuantities
2019-12-29 15:12:05 +01:00
cryptogopher
f769fff930
Updated comments, added before_destroy where applicable
2019-12-03 00:30:30 +01:00
cryptogopher
2ebbe9a306
Added quantity filtering by domain
2019-11-21 01:28:03 +01:00
cryptogopher
22aeda720d
Measurement/readouts WIP
2019-11-16 18:39:46 +01:00
cryptogopher
13703dc8ed
Fixed filtering
2019-11-10 23:23:59 +01:00
cryptogopher
eba2aaa8aa
Unknown formula values default to nil
2019-11-09 22:35:29 +01:00
cryptogopher
67b0cd9b66
Unevaluable formulas return nil (instead of throwing error)
...
Filter formula errors are shown in filter view
2019-11-09 20:36:10 +01:00
cryptogopher
70b6e97b87
Filtering ingredients by formula working
2019-11-08 23:42:41 +01:00
cryptogopher
b6c453c37c
Further optimized nutrient calculation defaults
2019-11-07 16:10:15 +01:00
cryptogopher
c1771d44d7
Commented nutrient computation algo
2019-11-07 00:43:30 +01:00
cryptogopher
8bad0b0b0f
Fixed nutrients listing for absent quantity
2019-11-07 00:03:33 +01:00
cryptogopher
88e5cb430a
Quantity computation from formula
2019-11-06 23:11:58 +01:00
cryptogopher
304c8c788d
Aggregated quantity calculation for all ingredients
2019-11-06 22:58:07 +01:00
cryptogopher
ce4d839a10
Simplified returning result
2019-11-06 22:45:09 +01:00
cryptogopher
5c8b7e0def
Displaying computed nutrients
2019-11-06 21:26:33 +01:00
cryptogopher
9664df4888
Added ingredient source setting/display/import
2019-09-23 22:33:40 +02:00
cryptogopher
3ebc2f58d0
Finished CSV import
...
Fixed problem with excessive validation
2019-09-22 20:26:07 +02:00
cryptogopher
b69bdd6049
Added Ingredients import action
2019-09-15 22:27:54 +02:00
cryptogopher
6e3cf2f189
Added Ingredient/Nutrient initialization
2019-09-15 19:55:25 +02:00
cryptogopher
9878b42655
Added Ingredient#destroy
2019-09-15 19:00:04 +02:00
cryptogopher
893e2646d0
Finished Ingredient#create validations
2019-09-15 18:53:00 +02:00
cryptogopher
0dcb13a065
Started Ingredient#create
2019-09-14 23:00:31 +02:00
cryptogopher
faef248449
Adding/deleting nutrients on ingredient form working
2019-09-14 19:15:56 +02:00
cryptogopher
f039917d0e
Added nested nutrients in ingredient form
2019-09-13 19:21:28 +02:00
cryptogopher
c82f903360
Added ingredient index and form
2019-09-13 14:48:43 +02:00
cryptogopher
b63040b037
Added Ingredients model
...
command: rails generate redmine_plugin_model body_tracking ingredient
name:string ref_unit:references ref_amount:decimal hidden:boolean
source:references group:integer
2019-08-28 21:04:46 +02:00