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
cryptogopher
3418af87c1
Displaying quantities with fixed precision/MFU unit removed
2020-04-28 16:05:42 +02:00
cryptogopher
dfa20a55d1
Displaying quantities in MEals index, WIP
2020-04-27 18:15:40 +02:00
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
c029ba59c2
Fixed saving Meal exposures
...
According to:
https://stackoverflow.com/questions/34328735/imageable-type-is-not-setting-for-polymorphic-associations
and
https://stackoverflow.com/questions/2494452/rails-polymorphic-association-with-multiple-associations-on-the-same-model
2020-04-25 18:07:58 +02:00
cryptogopher
ab8ed92929
Added MealsController#toggle_exposure
2020-04-25 15:52:35 +02:00
cryptogopher
a4781b4fcd
Renamed: column -> exposure
...
Moved toggle_column_options to body_trackers helper
2020-04-25 15:42:22 +02:00
cryptogopher
5e3322fe96
Removed quantity uniqueness validation
2020-04-25 01:08:33 +02:00
cryptogopher
1007385e1f
Added eaten_at to Meal form
2020-04-24 16:53:24 +02:00
cryptogopher
cdd7107567
Rearranged Meals index columns
2020-04-24 15:36:16 +02:00
cryptogopher
5ab17cf69b
Added MealsController#destroy
2020-04-24 00:54:32 +02:00
cryptogopher
dfeb9af6db
Added Meal edit/update
2020-04-20 22:56:05 +02:00
cryptogopher
6b5cb85b11
Buttons/amount in separate columns
2020-04-20 22:07:10 +02:00
cryptogopher
baaefb2b68
Proper sorting of meals, index
2020-04-20 21:43:12 +02:00
cryptogopher
66cd7926e8
Added adjusting ingredient amount
2020-04-19 21:50:59 +02:00
cryptogopher
03d0a56474
Moved notes form from div to td
2020-04-19 21:34:24 +02:00
cryptogopher
3706206191
Update notes in div
2020-04-19 18:16:07 +02:00
cryptogopher
e659ecc760
Added MealsController#toggle_eaten
2020-04-19 16:03:03 +02:00
cryptogopher
620d86b18a
Updated Meals index
2020-04-19 00:02:39 +02:00
cryptogopher
923df9c8b2
Visual changes
2020-04-18 20:36:09 +02:00