1
0

53 Commits

Author SHA1 Message Date
cryptogopher
66cd7926e8 Added adjusting ingredient amount 2020-04-19 21:50:59 +02:00
cryptogopher
3ff36df168 IngredientsController#index WIP 2020-04-18 01:22:21 +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
f00f93c9e9 View tracking through params in Ingredients
Squeezed ingredient form
2020-04-04 02:13:46 +02:00
cryptogopher
9f63c14f8a Adding MeasurementRoutine selection/editing support 2020-04-02 02:23:53 +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
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
2d778c831b Introduced plugin layout instead of using Redmine ViewListener render_on 2020-02-22 22:39:12 +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
cryptogopher
cc62ef1002 Added Ingredient comment attribute
Minor view updates
2019-12-27 22:40:07 +01:00
cryptogopher
0c0ca1d286 Replaced Quantity 'primary' attr with ColumnView model 2019-12-14 23:56:36 +01:00
cryptogopher
98564be4b5 Displaying Measurement readouts, WIP 2019-12-10 20:37:36 +01:00
cryptogopher
f769fff930 Updated comments, added before_destroy where applicable 2019-12-03 00:30:30 +01:00
cryptogopher
628578cda5 Scoped all controllers inside body_trackers
Fixed main menu item highlighting
2019-11-27 22:43:58 +01:00
cryptogopher
2ebbe9a306 Added quantity filtering by domain 2019-11-21 01:28:03 +01:00
cryptogopher
22aeda720d Measurement/readouts WIP 2019-11-16 18:39:46 +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
78cf471ecd Preliminary support for comparison formula 2019-11-07 19:55:16 +01:00
cryptogopher
8bad0b0b0f Fixed nutrients listing for absent quantity 2019-11-07 00:03:33 +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
3294689cb4 Added Ingredient visibility filter
Fixed index display (many? -> any? persisted)
2019-11-02 19:30:52 +01:00
cryptogopher
05c79782f5 Ingredient create/import redirect to proper page 2019-11-02 18:53:46 +01:00
cryptogopher
3689abb1dc Changed Ingredient#destroy to ajax 2019-11-02 18:50:14 +01:00
cryptogopher
1acb72f33d Filtering ingredients by name
Nutrients link in sidebar
2019-11-02 15:32:21 +01:00
cryptogopher
cf9c913897 Toggling quantity primariness from nutrients view 2019-11-01 21:43:56 +01:00
cryptogopher
2f0b34d3fe Extra nutrients are displayed in table cells
Fixed column widths with content ellipsizing
2019-10-31 15:28:32 +01:00
cryptogopher
6f9e8926d7 Nutrients list expandable, displays description 2019-10-28 22:08:05 +01:00
cryptogopher
c4e89def0a Created common contextual menu for ingredient/nutrients views
Restored sidebar for nutrients view
2019-10-28 19:51:46 +01:00
cryptogopher
67efb6c6bc Added Ingredient#toggle and dimming hidden items 2019-10-27 22:18:00 +01:00
cryptogopher
c0e3fd2e85 Changed Quantity.displayed -> Quantity.primary 2019-10-22 23:19:58 +02:00
cryptogopher
0001b56ca6 Added nutrient view on ingredients index
Created custom plugin's stylesheet
2019-09-24 23:41:22 +02:00
cryptogopher
9664df4888 Added ingredient source setting/display/import 2019-09-23 22:33:40 +02:00
cryptogopher
593e11ff53 Finished Sources implementation 2019-09-23 20:13:09 +02:00
cryptogopher
c96cea5ca6 New objects are now created through association
Added Sources to sidebar
2019-09-23 15:35:43 +02:00
cryptogopher
9cbd540c43 Defaults/import fixes and ingredients sorting 2019-09-23 00:15:40 +02:00
cryptogopher
3ebc2f58d0 Finished CSV import
Fixed problem with excessive validation
2019-09-22 20:26:07 +02:00
cryptogopher
eb43c4be21 Import fixes 2019-09-21 23:48:59 +02:00
cryptogopher
3a09bf6fce Ingredient CSV import input validation 2019-09-21 22:29:04 +02:00
cryptogopher
b69bdd6049 Added Ingredients import action 2019-09-15 22:27:54 +02:00
cryptogopher
6e3cf2f189 Added Ingredient/Nutrient initialization 2019-09-15 19:55:25 +02:00
cryptogopher
9878b42655 Added Ingredient#destroy 2019-09-15 19:00:04 +02:00
cryptogopher
0dcb13a065 Started Ingredient#create 2019-09-14 23:00:31 +02:00
cryptogopher
faef248449 Adding/deleting nutrients on ingredient form working 2019-09-14 19:15:56 +02:00