cryptogopher
cf3bbb205d
Added Targets index
2020-08-06 21:52:33 +02:00
cryptogopher
ffcc9553d5
Added Target create action
2020-07-25 16:28:55 +02:00
cryptogopher
5b83860ed7
Target form WIP
2020-07-02 18:59:55 +02:00
cryptogopher
0df2c6ec4f
Preliminary Target #new support
2020-06-27 21:52:32 +02:00
cryptogopher
1dd2e2b596
Added Goal model and preliminary Targets index
2020-06-25 03:56:49 +02:00
cryptogopher
8240e5e868
Added Target and Threshold models
2020-06-21 02:48:32 +02:00
cryptogopher
2c4caed737
Fixed Foods index with no foods
2020-06-20 03:31:57 +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
1a807d24d7
Removed 'project: nil'
2020-06-16 02:52:44 +02:00
cryptogopher
fb46784248
Added energy from macronutrients defaults
2020-06-16 01:13:20 +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
74c863c73a
FormulaBuilder now recognizes qualified quantity identifiers
2020-06-06 15:58:12 +02:00
cryptogopher
6785090045
Checking ambiguity of quantity paths in formulas
2020-06-06 00:18:13 +02:00
cryptogopher
356e264c51
Cleaned up nutrients index table
2020-06-02 23:12:50 +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
1bfe2f11fb
Fixed header generation
2020-05-26 22:43:33 +02:00
cryptogopher
2216cea6d5
Displaying heirarchical quantity headers
2020-05-24 18:57:10 +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
ad2f647960
Fixed regression
2020-05-20 23:47:57 +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
cd29e15b32
Fixed food order column ambiguity
2020-05-10 18:22:52 +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
8d6aafd6ef
Model method calls should be indexed
2020-05-06 23:01:17 +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
36a2e7bcbe
Shortened defaults names
2020-05-02 21:49:34 +02:00
cryptogopher
85ec7efa16
Removed some table borders
2020-05-02 17:44:50 +02:00
cryptogopher
b3f7199f93
Moved adjust from IngredientsController to MealsController
2020-05-02 16:49:54 +02:00
cryptogopher
4397249fa9
Separated show for date/meal/ingredient
2020-05-02 15:47:08 +02:00
cryptogopher
3ac73ac3a8
Style changes
2020-05-02 15:17:21 +02:00
cryptogopher
1734910d10
Styling changes
2020-05-02 14:50:42 +02:00
cryptogopher
54fc7ecf7e
Coloring index summaries
2020-05-01 23:44:37 +02:00
cryptogopher
dafebdc529
Displaying date summary
2020-05-01 18:45:22 +02:00
cryptogopher
f6a7f0219e
Summarizing nutrients + displaying meal summary
2020-05-01 18:34:40 +02:00
cryptogopher
9ccd41b422
Styles adjustments
2020-04-30 18:50:28 +02:00
cryptogopher
e74c707729
Displaying amount column in same format as quantities
2020-04-29 23:12:59 +02:00
cryptogopher
da11c0f626
Restyled quantity header
...
Exposure close button removed, toggling only from select
2020-04-29 22:26:48 +02:00
cryptogopher
9f3f90e4f0
Added rounding and not displaying 0
2020-04-28 16:26:14 +02:00