1
0

19 Commits

Author SHA1 Message Date
cryptogopher
4230d72206 compute_quantities now returns single hash
Fixed MeasurementsController view management
2020-04-26 20:21:17 +02:00
cryptogopher
9f5f31ca42 Indexing by item, not item.id 2020-04-25 23:28:24 +02:00
cryptogopher
c24bdd6f45 Renamed: formula_q -> filter_q
Added Meal related associations to Project
2020-04-25 22:49:48 +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
8882385dfa Removed :scope filter 2020-03-29 18:06: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
6919f9910c Changed indexing from q_name -> q in compute 2020-03-24 21:59:57 +01:00
cryptogopher
cfe225c014 Filters zero_nil setting and computing fixed 2020-03-24 01:54:26 +01:00
cryptogopher
08ac719566 Fixes after introducing Formula model 2020-03-24 00:53:02 +01:00
cryptogopher
10325c9c39 Added zero_nil to Ingredients filter formula
Displaying formulas errors for Nutrients view
Substituted onblur for Ingredients filters with hidden submit
2020-03-22 01:02:37 +01:00
cryptogopher
c3b783e942 Displaying errors for uncomputable formulas in nutrients view 2020-03-21 00:38:39 +01:00
cryptogopher
320fe93388 Fixed references to formula as model 2020-03-10 22:17:20 +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
b437bee18b Optimized formula computation to run 'eval' once 2020-01-11 23:49:30 +01:00
cryptogopher
20deb944c3 Updated Ingredients to use ItemsWithQuantities 2019-12-29 15:12:05 +01:00
cryptogopher
925def1674 Displaying readouts is working 2019-12-14 01:25:20 +01:00
cryptogopher
96fe7db39d Moved filter/compute to separate module
Converting it to model independent code, WIP
2019-12-12 00:13:30 +01:00