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
fd184df9c7
Merged Nutrient and Readout into QuantityValue
...
Aliased date attributes of Meal and Measurement
2020-05-11 19:36:30 +02:00
cryptogopher
1007385e1f
Added eaten_at to Meal form
2020-04-24 16:53:24 +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
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
cryptogopher
530dba0612
ColumnView fixes
2019-12-21 12:18:31 +01:00
cryptogopher
0c0ca1d286
Replaced Quantity 'primary' attr with ColumnView model
2019-12-14 23:56:36 +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
cryptogopher
98564be4b5
Displaying Measurement readouts, WIP
2019-12-10 20:37:36 +01:00
cryptogopher
681c0279fb
Measurement improvements
...
Added 'new' action.
Separated js views for new/create/edit.
Displaying taken_at in local time.
Fixed readout destruction on edit.
2019-12-06 21:48:06 +01:00
cryptogopher
f769fff930
Updated comments, added before_destroy where applicable
2019-12-03 00:30:30 +01:00
cryptogopher
54040a2764
Added setting taken_at in measurement form
...
Changed action toggle -> retake
2019-12-01 01:08:09 +01:00
cryptogopher
fc2db76a3e
Updated Measurement to reflect ReadoutValue removal
2019-11-30 01:01:43 +01:00
cryptogopher
d3ba8579d6
Minor locale updates
2019-11-16 19:07:16 +01:00
cryptogopher
22aeda720d
Measurement/readouts WIP
2019-11-16 18:39:46 +01:00
cryptogopher
687269062c
Added measurement, readout and readout_value models
...
commands:
rails generate redmine_plugin_model body_tracking measurement
name:string hidden:boolean source:references
rails generate redmine_plugin_model body_tracking readout
measurement:references quantity:references unit:references
rails generate redmine_plugin_model body_tracking readout_value
readout:references value:decimal taken_at:timestamp
2019-11-15 21:52:12 +01:00