cryptogopher
4eda035e47
Test pass: test_destroy
...
Expand Targets #update success flash and failure handling
Add Target index table checks in modification actions tests
2021-04-29 01:30:13 +02:00
cryptogopher
bbc1467965
Parametrize Target routes with :date
2021-04-25 15:25:41 +02:00
cryptogopher
5ff7d8395a
Test pass: test_edit_binding_target
2021-04-24 15:36:22 +02:00
cryptogopher
bea0a8371d
WIP Targets #edit/#update
...
NestedUniqueness properly restores collection.target
2021-04-23 19:19:44 +02:00
cryptogopher
37e3b98788
Improve #create action
2021-04-20 16:57:15 +02:00
cryptogopher
0b9401b089
Proper nested records uniqueness validation
...
Test pass: test_create_duplicate_for_persisted_target_should_fail
2021-04-19 00:38:28 +02:00
cryptogopher
91fa25830d
Randomize quantity in test_index_table_header_close_exposure
...
Rename: Goal.target_exposures -> Goal.exposures
2021-03-22 00:22:33 +01:00
cryptogopher
5b73e9e7fd
Fix targets#create
2021-03-07 15:07:45 +01:00
cryptogopher
406eabaccc
Fix target subtreshold listing
...
Route targets under goal
2021-03-06 13:00:50 +01:00
cryptogopher
09e27eb754
List binding goal targets
2021-02-21 19:41:24 +01:00
cryptogopher
7f87b3bc84
Add GoalController: #index, #new, #create
2021-02-21 18:10:15 +01:00
cryptogopher
ea308a1e4a
WIP: targets forms
2021-02-21 11:33:30 +01:00
cryptogopher
9e3dc24a14
Dynamic thresholds listing in targets form
2021-02-20 13:55:04 +01:00
cryptogopher
8b17b33603
WIP: Targets configurable with Quantities
2021-02-07 11:02:41 +01:00
cryptogopher
316005bf1f
WIP: #update
2021-01-27 12:12:30 +01:00
cryptogopher
cb4c528908
Test pass: test_edit
2021-01-24 15:05:54 +01:00
cryptogopher
7d096748bf
Test pass: test_index_options_add_exposure
2021-01-19 18:53:02 +01:00
cryptogopher
2a8f60be36
Flashing through #now on AJAX actions
2020-09-05 21:56:05 +02:00
cryptogopher
1b7f2f0abd
Added test_defaults_seed_and_load_into_empty_project
...
Added :defaults scopes to models
Added :sources and :formulas fixtures
Loading defaults from seeds.rb using rake task instead of migration
2020-08-29 01:26:36 +02:00
cryptogopher
8f2a455561
Added defaults load test
2020-08-26 02:07:36 +02:00
cryptogopher
6ba8ad5376
Preliminary Target :edit support
2020-08-25 02:55:21 +02:00
cryptogopher
c2055c4eb4
Replaced #current_goal with @goal
2020-08-24 22:09:04 +02:00
cryptogopher
cf0e14d87d
Allow binding goal saving w/o exposures and disallow destruction
2020-08-22 23:17:24 +02:00
cryptogopher
8b43f22e66
Added: test_create_binding_target_when_binding_goal_does_not_exist
2020-08-22 16:11:43 +02:00
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
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
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
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