1
0

286 Commits

Author SHA1 Message Date
cryptogopher
158685459d Unified hash options style 2019-11-27 21:24:49 +01:00
cryptogopher
1982f3b526 Renamed Quantity view: toggle.js => index.js 2019-11-27 20:55:29 +01:00
cryptogopher
ba7631231d Hiding order move links on edit 2019-11-27 20:48:39 +01:00
cryptogopher
f6081276f3 Quantity parent options are updated through UJS 2019-11-27 20:43:39 +01:00
cryptogopher
6e335c243a Fixed Quantity parent list display for new/edit forms 2019-11-27 16:20:53 +01:00
cryptogopher
6433621fa7 Upgraded defaults import to include future fields by default
Added Quantity index formula checkmark display
2019-11-26 21:47:22 +01:00
cryptogopher
80d49de30e Hiding edit link on edit action 2019-11-26 21:20:06 +01:00
cryptogopher
fdfedf3bc9 Added quantity edit form
Changed quantity long text field width setting
2019-11-24 01:26:35 +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
d3ba8579d6 Minor locale updates 2019-11-16 19:07:16 +01:00
cryptogopher
a619b74dce Measurement index/form running 2019-11-16 18:47:53 +01:00
cryptogopher
22aeda720d Measurement/readouts WIP 2019-11-16 18:39:46 +01:00
cryptogopher
eb379c7835 Added measurement index view
Changed locales names from heading_ to link_ where appropriate
2019-11-16 14:44:45 +01:00
cryptogopher
b7b0f7634e Added MeasurementsController
command:
rails generate redmine_plugin_controller body_tracking measurements
index create destroy
2019-11-16 14:18:34 +01:00
cryptogopher
f2fa3db7f7 Added measurements to sidebar 2019-11-16 14:17:55 +01:00
cryptogopher
793edbe7ae Merged new models migrations 2019-11-15 23:13:38 +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
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
0e5a53b4b9 Moved defaults into separate migration 2019-11-14 22:21:40 +01:00
cryptogopher
dc9ebb36f6 Simplified Formula.valid? 2019-11-11 15:46:57 +01:00
cryptogopher
fd11198446 Fixed fieldset toggling 2019-11-11 15:21:05 +01:00
cryptogopher
2e477921e9 Updated Formula get_quantities/calculate for new parsing algo 2019-11-11 15:10:02 +01:00
cryptogopher
613c26728c Removed old (Ripper.lex based) formula validation code
Muted multiple 'disallowed' messages for keywords
Removed unnecessary .to_d call in formula computation
2019-11-11 00:01:31 +01:00
cryptogopher
d768adb86b Formula parsing extensions 2019-11-10 23:37:11 +01:00
cryptogopher
7032bd4fb0 Moved filters ouside of ingredient table, so they are always visible 2019-11-10 23:26:32 +01:00
cryptogopher
13703dc8ed Fixed filtering 2019-11-10 23:23:59 +01:00
cryptogopher
60cfd17c0f WIP on alternative (sexp) formula parsing 2019-11-10 23:14:36 +01:00
cryptogopher
841fcb2807 Working on formula validation to accomodate functions, WIP 2019-11-10 00:48:54 +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
4ab24aa223 Nutrient filter input resized to remaining width 2019-11-08 16:36:34 +01:00
cryptogopher
78cf471ecd Preliminary support for comparison formula 2019-11-07 19:55:16 +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
884f7b2366 Added ingredient filter by nutrients field 2019-11-07 16:25:42 +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
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
dd6b21d834 Simplified ingredient list preparation 2019-11-04 20:48:12 +01:00
cryptogopher
fce6ee57b0 Quantity formula assignment and validation 2019-11-03 18:35:22 +01:00