cryptogopher
8240e5e868
Added Target and Threshold models
2020-06-21 02:48:32 +02:00
cryptogopher
4df88598f8
Fixed Quantity defaults import after removing :name uniqueness
...
Added awesome_nested_set #each_with_path
2020-06-20 00:52:37 +02:00
cryptogopher
61498018e7
Added Targets table
...
Fixed Quantity#after_save for default quantities
2020-06-18 01:53:09 +02:00
cryptogopher
bea036dc52
Updated quantity name ambiguoty check on creation
2020-06-13 18:48:19 +02:00
cryptogopher
6b3714817c
Formula reports ambiguous quantity identifiers
...
Formula returns error.details for Rails 4
Formula distinguishes root path (::Identifier)
Quantity validates name changes against introducing formulas'
ambiguities
2020-06-13 18:18:53 +02:00
cryptogopher
6785090045
Checking ambiguity of quantity paths in formulas
2020-06-06 00:18:13 +02:00
cryptogopher
ba634eb516
Fixed deletion of quantity formula
2020-05-29 00:10:05 +02:00
cryptogopher
008cfdcd26
Relaxed quantity name uniqueness check
2020-05-28 23:19:59 +02:00
cryptogopher
a8d31f26d2
Simplified QuantityInput#lastBefore
2020-05-23 17:24:32 +02:00
cryptogopher
580e9156e6
Implemented QuantityInput#lastBefore
2020-05-22 22:10:34 +02:00
cryptogopher
976271d6b4
Fixed association
2020-05-21 00:23:38 +02:00
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
fa9c329a81
Formula#calculate is using QuantityInput
...
Updated FormulaBuilder to properly index parts[]
2020-05-17 18:14:19 +02:00
cryptogopher
c402fe8353
Removed ITEM_TYPES in favor of uniformly named scopes/attributes
2020-05-16 17:37:51 +02:00
cryptogopher
7584c650da
Fixed formula validation during import of defaults
...
Previously it did not consider in-memory records and failed sometimes
2020-05-11 22:38:27 +02:00
cryptogopher
ffb87a09c4
Error reporting on failed loading of default(s)
2020-05-11 20:46:31 +02:00
cryptogopher
fd184df9c7
Merged Nutrient and Readout into QuantityValue
...
Aliased date attributes of Meal and Measurement
2020-05-11 19:36:30 +02:00
cryptogopher
abd7d02b89
Added QuantityInput class
2020-05-10 21:55:12 +02:00
cryptogopher
1f5ea1cfb6
compute_quantities: allow indirect associations and model dependencies
2020-05-10 18:06:32 +02:00
cryptogopher
9d19890f6f
Extracted quantity value resolving to Formula#resolve
2020-05-08 15:46:38 +02:00
cryptogopher
9c3d31c131
Fixes for formula computation
...
Added default quantity
2020-05-05 22:02:48 +02:00
cryptogopher
8749710330
Formula can contain model method calls
2020-05-05 01:52:34 +02:00
cryptogopher
f6a7f0219e
Summarizing nutrients + displaying meal summary
2020-05-01 18:34:40 +02:00
cryptogopher
a4781b4fcd
Renamed: column -> exposure
...
Moved toggle_column_options to body_trackers helper
2020-04-25 15:42:22 +02:00
cryptogopher
5e3322fe96
Removed quantity uniqueness validation
2020-04-25 01:08:33 +02:00
cryptogopher
1007385e1f
Added eaten_at to Meal form
2020-04-24 16:53:24 +02:00
cryptogopher
e659ecc760
Added MealsController#toggle_eaten
2020-04-19 16:03:03 +02:00
cryptogopher
620d86b18a
Updated Meals index
2020-04-19 00:02:39 +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
c3010a70e8
Adding Meals, WIP
2020-04-13 15:36:59 +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
f00f93c9e9
View tracking through params in Ingredients
...
Squeezed ingredient form
2020-04-04 02:13:46 +02:00
cryptogopher
9f63c14f8a
Adding MeasurementRoutine selection/editing support
2020-04-02 02:23:53 +02:00
cryptogopher
18419f1aeb
Added MeasurementRoutine as a nested Measurement model
...
Updated ItemsWithQuantities to work with MeasurementRoutine
Replaced ColumnViews HABTM with polymorphic HMT
Added Measurement notes
Added destroy restrictions on Quantity
Replaced BodyTrackingPluginController with Finders concern
Removed 'body_trackers' prefix from paths
Unified styling for textarea
2020-03-29 00:56:37 +01:00
cryptogopher
e7a33c684f
Dispplaying units of computed values
...
Fixed formula error messages display when filter formula not given
2020-03-25 23:07:59 +01:00
cryptogopher
2efdc08931
Added setting Formula unit in form and when loading defaults
2020-03-25 21:40:24 +01:00
cryptogopher
031b857925
Added reference to Unit in Formula
...
Updated defaults identifiers and units in default formulas
2020-03-25 17:57:49 +01:00
cryptogopher
08860cbfab
Query optimizations
2020-03-24 22:16:27 +01:00
cryptogopher
08ac719566
Fixes after introducing Formula model
2020-03-24 00:53:02 +01:00
cryptogopher
c3b783e942
Displaying errors for uncomputable formulas in nutrients view
2020-03-21 00:38:39 +01:00
cryptogopher
9a79e8fa55
Making Formula#calculate public
2020-03-20 00:57:20 +01:00
cryptogopher
4e537f3981
Moved Formula to separate model
2020-02-16 18:34:07 +01:00
cryptogopher
aa26e66312
Fixed calculation for indexed formulas
...
Delegated Quantity formula calls
2020-02-04 00:13:49 +01:00
cryptogopher
df8703ba3c
Updated Formula::calculate to use FormulaBuilder
2020-01-27 00:59:33 +01:00
cryptogopher
20deb944c3
Updated Ingredients to use ItemsWithQuantities
2019-12-29 15:12:05 +01:00
cryptogopher
056d3b150d
Removed Measurement 'hidden' attribute
2019-12-27 01:48:22 +01:00
cryptogopher
ea8c70e1c0
Added seeding for nutrients/readouts column views
2019-12-26 22:18:43 +01:00
cryptogopher
b6dbf369d1
Measurement index improvements
2019-12-21 18:01:46 +01:00