1
0

36 Commits

Author SHA1 Message Date
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
580e9156e6 Implemented QuantityInput#lastBefore 2020-05-22 22:10:34 +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
ffb87a09c4 Error reporting on failed loading of default(s) 2020-05-11 20:46:31 +02:00
cryptogopher
e78803e474 Added MealsController#new and form autocomplete for Food
Renamed QuantityColumn -> Exposure
2020-04-15 23:42:58 +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
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
ea8c70e1c0 Added seeding for nutrients/readouts column views 2019-12-26 22:18:43 +01:00
cryptogopher
0c0ca1d286 Replaced Quantity 'primary' attr with ColumnView model 2019-12-14 23:56:36 +01:00
cryptogopher
f769fff930 Updated comments, added before_destroy where applicable 2019-12-03 00:30:30 +01:00
cryptogopher
6e335c243a Fixed Quantity parent list display for new/edit forms 2019-11-27 16:20:53 +01:00
cryptogopher
8c073494e5 Disallowed moving quantity into parent/child relationship if domains differ
Generalized quantity up/down/left/right actions into 'move'
2019-11-22 22:43:11 +01:00
cryptogopher
0820a90897 Setting default quantity domain in form 2019-11-21 23:18:45 +01:00
cryptogopher
2ebbe9a306 Added quantity filtering by domain 2019-11-21 01:28:03 +01:00
cryptogopher
b617043dd5 Changed quantity domain order 2019-11-15 00:31:41 +01:00
cryptogopher
3ce5d5c940 Fix migration of default quantities
Allow Quantity formula to be nil but not blank
Add computed energy quantity
Reverse default quantities deletion order
2019-11-15 00:04:34 +01:00
cryptogopher
2a3e7e8d00 Moved remaining formula code to Formula module 2019-11-07 19:30:02 +01:00
cryptogopher
19e2a45ba8 Moved formula code/validation to separate module 2019-11-07 19:19:31 +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
5c8b7e0def Displaying computed nutrients 2019-11-06 21:26:33 +01:00
cryptogopher
eff672318b Quantity computing from formula looks done, savepoint 2019-11-06 15:59:39 +01:00
cryptogopher
d70a17f58b Preliminary nutrient computation from formulas 2019-11-05 16:02:53 +01:00
cryptogopher
fce6ee57b0 Quantity formula assignment and validation 2019-11-03 18:35:22 +01:00
cryptogopher
cf9c913897 Toggling quantity primariness from nutrients view 2019-11-01 21:43:56 +01:00
cryptogopher
baadd647f8 Quantity destruction destroys dependent
Table data aligned.
Primary quantities highlighted.
2019-10-25 22:46:11 +02:00
cryptogopher
c0e3fd2e85 Changed Quantity.displayed -> Quantity.primary 2019-10-22 23:19:58 +02:00
cryptogopher
ce9f011694 Added Source perms and routing
Added Quantity displayed defaults
2019-09-23 15:05:26 +02:00
cryptogopher
3ebc2f58d0 Finished CSV import
Fixed problem with excessive validation
2019-09-22 20:26:07 +02:00
cryptogopher
a96cd717cf Validating parent quantity domain 2019-09-08 21:10:25 +02:00
cryptogopher
b31ab9d16a Added Quantity nesting with awesome_nested_set 2019-09-08 20:00:35 +02:00
cryptogopher
54ab1c60dc Implemented Quantity 2019-08-23 17:06:09 +02:00
cryptogopher
9a34cc0b95 Added Quantities model and controller
commands:
rails generate redmine_plugin_model body_tracking quantity
rails generate redmine_plugin_controller body_tracking quantities index
create destroy
2019-08-23 00:01:10 +02:00