1
0

142 Commits

Author SHA1 Message Date
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
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
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
1f5ea1cfb6 compute_quantities: allow indirect associations and model dependencies 2020-05-10 18:06:32 +02:00
cryptogopher
8749710330 Formula can contain model method calls 2020-05-05 01:52:34 +02:00
cryptogopher
b3f7199f93 Moved adjust from IngredientsController to MealsController 2020-05-02 16:49:54 +02:00
cryptogopher
f6a7f0219e Summarizing nutrients + displaying meal summary 2020-05-01 18:34:40 +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
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
c24bdd6f45 Renamed: formula_q -> filter_q
Added Meal related associations to Project
2020-04-25 22:49:48 +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
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
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
50b89de904 Meals index, WIP 2020-04-18 18:29:53 +02:00
cryptogopher
3ff36df168 IngredientsController#index WIP 2020-04-18 01:22:21 +02:00
cryptogopher
ed6b1b9fe7 Preliminary MealsController#create 2020-04-16 22:02:53 +02:00
cryptogopher
e78803e474 Added MealsController#new and form autocomplete for Food
Renamed QuantityColumn -> Exposure
2020-04-15 23:42:58 +02:00
cryptogopher
8e8160c41a Renamed Ingredient -> Food
Ingredient is now part of composition (meal/recipe/dish)
2020-04-14 19:44:19 +02:00
cryptogopher
c3010a70e8 Adding Meals, WIP 2020-04-13 15:36:59 +02:00
cryptogopher
f00f93c9e9 View tracking through params in Ingredients
Squeezed ingredient form
2020-04-04 02:13:46 +02:00
cryptogopher
a7b003dc6f Reload readouts on current readout name change 2020-04-03 22:11:23 +02:00
cryptogopher
14f4c063de Fixed creating/updating with MeasurementRoutine
Updated Measurement links with :view
2020-04-03 18:34:39 +02:00
cryptogopher
9f63c14f8a Adding MeasurementRoutine selection/editing support 2020-04-02 02:23:53 +02:00
cryptogopher
0c724ed63f Moved tracking of view state from session to params 2020-03-29 18:52:30 +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
2efdc08931 Added setting Formula unit in form and when loading defaults 2020-03-25 21:40:24 +01:00
cryptogopher
c262e82c7b Renamed Ingredient comment -> notes 2020-03-25 00:26:35 +01:00
cryptogopher
08860cbfab Query optimizations 2020-03-24 22:16:27 +01:00
cryptogopher
10325c9c39 Added zero_nil to Ingredients filter formula
Displaying formulas errors for Nutrients view
Substituted onblur for Ingredients filters with hidden submit
2020-03-22 01:02:37 +01:00
cryptogopher
5e0e32a855 Optimized out 1 query for Quantity index 2020-03-10 23:17:44 +01:00
cryptogopher
f65569528d Added JS layout 2020-02-22 22:51:15 +01:00
cryptogopher
2d778c831b Introduced plugin layout instead of using Redmine ViewListener render_on 2020-02-22 22:39:12 +01:00
cryptogopher
0f8f74ffec Added zero_nil to Measurement filter formula 2020-02-22 22:14:21 +01:00
cryptogopher
b1e7236460 Added zero_nil to Quantity form and import 2020-02-20 21:55:38 +01:00
cryptogopher
c774f7745d Add child Quantity action added 2020-02-19 21:24:17 +01:00
cryptogopher
b7b7401833 Updated Quantity to use Formula
and upgraded controller actions to match Measurement/Ingredient
2020-02-19 17:57:29 +01:00
cryptogopher
544c0c5293 Updating Quantity to use Formula, WIP 2020-02-17 22:15:30 +01:00
cryptogopher
a4ec6a0c12 Added Ingredient editing
Improved Ingredient to match Measurement functionality
2019-12-30 23:45:59 +01:00
cryptogopher
20deb944c3 Updated Ingredients to use ItemsWithQuantities 2019-12-29 15:12:05 +01:00