Christopher Charbonneau Wells
1fbb9a7dae
Add support for meals customization ( #15 )
...
* Add meals as JSON field on User
* Change journal entry meal field to integer
* Make Quill and Draggable more modular
* Add meals routes and controller (WIP)
* Set default meals during migration
* Handle meals form
* No-op meal field migrations
This allows tests to pass easier and the migrations are not entirely
necessary anyway.
* Update factories and tests for new meals format
* Add basic meals edit test
* Update journal entry processing for new meal values
* Remove temporary migrations
* Only use default enabled meals in tests
* Add User `meals_enabled` attribute
* Ensure NULL values are removed from attributes
* Add meals data to use API response
* Set default meals on user create
2021-05-30 13:11:58 -07:00
Christopher Charbonneau Wells
c15f81ee6b
Add ability to change goal for a date ( #14 )
2021-05-22 14:07:57 -07:00
Christopher C. Wells
ce9bf83221
Prevent potential division by zero error
2021-05-15 21:40:53 -07:00
Christopher C. Wells
91fd85ef83
Add date goal handling for user journal
2021-05-15 21:40:53 -07:00
Christopher C. Wells
ff5661fdf1
Improve Jorunal Entry validation feedback
2021-04-17 19:39:07 -07:00
Christopher C. Wells
232f5ddfe8
Attempt to improve handling for common 1/3 and 2/3 amounts
2021-04-10 14:22:14 -07:00
Christopher C. Wells
69ce3cb277
Attempt to improve coherency of journal entry summaries
2021-04-08 21:17:15 -07:00
Christopher C. Wells
06fa79f1ed
Add detail field to entry item summary when present
2021-04-08 16:57:31 -07:00
Christopher C. Wells
edbcd877c2
Filter supported units in ingredient picker
2021-04-04 14:55:19 -07:00
Christopher C. Wells
29638c711f
Replace meals static array with Collection
2021-04-02 23:42:27 -07:00
Christopher C. Wells
a686e8036b
Add basic Journal Entry controller tests
2021-04-02 23:42:27 -07:00
Christopher C. Wells
51d4db11c6
Refactor nutrients units array as Collection
2021-04-02 23:42:27 -07:00
Christopher C. Wells
0fec1d2ede
Redirect to journal entry date if only one date is used
2021-03-02 20:11:31 -08:00
Christopher C. Wells
905635c022
Only evaluate serving name in summary when serving is used
2021-03-02 20:02:20 -08:00
Christopher C. Wells
73022ac167
Add option to group or not group journal entries
2021-03-02 19:57:06 -08:00
Christopher C. Wells
2f91c320ef
Refactor nutrients data array as a collection
2021-02-21 08:23:30 -08:00
Christopher Charbonneau Wells
414629b469
Add goals support ( #4 )
2021-02-15 14:19:53 -08:00
Christopher C. Wells
33a8591c72
Add handling for recipes by weight in ingredient amounts and journal entries
2021-02-11 20:25:36 -08:00
Christopher C. Wells
3c5d1c1f00
Use mg base unit for cholesterol and sodium
2021-02-10 05:55:01 -08:00
Christopher C. Wells
bb3f1a2e1d
Improve serving name handling for recipes and journal entries
2021-02-07 20:09:14 -08:00
Christopher C. Wells
0e89f19f27
Add path to nutrient-based journal entry
2021-02-06 20:13:33 -08:00
Christopher C. Wells
bf4cec4d27
Use formatted serving unit in other areas
2021-02-06 13:59:19 -08:00
Christopher C. Wells
87311b9ec4
Supper gram-based data entry
2021-01-30 05:56:08 -08:00
Christopher C. Wells
fc4e7a5fb5
Support "servings" unit and require unit
2021-01-27 08:46:12 -08:00
Christopher C. Wells
a575622c9c
Improve mobile usability in forms
2021-01-25 07:31:38 -08:00
Christopher C. Wells
5bc1499e1a
Correct summing function for entry nutrients
2021-01-24 19:46:44 -08:00
Christopher C. Wells
037d20fbb7
Add phpstan support
2021-01-24 19:43:59 -08:00
Christopher C. Wells
d1c66924ea
Add "manual" journal entry option
2021-01-24 18:56:03 -08:00
Christopher C. Wells
35f386d681
Add backend support for multiple dates/meals in journal entry
2021-01-24 15:24:03 -08:00
Christopher C. Wells
309ec6810c
Move date and meal fields to each line (WIP)
...
Frontend only, no backend support yet.
2021-01-24 13:07:42 -08:00
Christopher C. Wells
3101c34071
Add ingredient picker support to journal entry form
2021-01-23 10:33:25 -08:00
Christopher C. Wells
0aa2267e3b
Refactor journal entry form fields structure
2021-01-22 21:11:19 -08:00
Christopher C. Wells
9a60dbbe6e
Add ability to delete journal entries
2021-01-18 13:30:12 -08:00
Christopher C. Wells
81f590515d
Add support for fractional data entry
2021-01-15 06:09:21 -08:00
Christopher C. Wells
f389ebe594
Add food edit form
2021-01-04 06:08:12 -08:00
Christopher C. Wells
a970dd9526
Add extra validation to journal entry store
2021-01-03 09:14:03 -08:00
Christopher C. Wells
2b1d9b8656
Fix journal entry meal labels
2021-01-03 08:52:33 -08:00
Christopher C. Wells
d99d49777b
Add IDE helper for better handling of Laravel builders
2021-01-03 08:40:16 -08:00
Christopher C. Wells
187c1a0e4a
Add recipe nutrient calculation to journal entry store
2021-01-03 06:11:39 -08:00
Christopher C. Wells
dbb752d73c
Add journal entry add support (WIP)
2021-01-02 15:13:55 -08:00
Christopher C. Wells
c1ddb061df
Add basic journal entries index (WIP)
2021-01-01 15:05:36 -08:00
Christopher C. Wells
1ec4439d8e
Add initial "Journal entry" model
2020-12-31 11:00:14 -08:00