Christopher C. Wells
99e214e822
Update node dependencies
2022-02-11 20:09:00 -08:00
Christopher C. Wells
feb6cce3a4
Update to AlpineJS 3.x
2021-07-12 21:02:27 -07:00
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
91fd85ef83
Add date goal handling for user journal
2021-05-15 21:40:53 -07:00
Christopher C. Wells
15762790a5
Remove old structures from Goals edit template (WIP)
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
a9ef5ddfd4
Replace tiny edit/delete icons with big buttons
2021-04-10 21:10:22 -07:00
Christopher C. Wells
232e2fc6ac
Use date picker for journal and goals index date.
2021-04-10 20:07:18 -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
8d3f2cc35c
Default to separate journal entry lines
2021-04-08 19:58:06 -07:00
Christopher C. Wells
17e640303d
Implement FDA guideline-based rounding
...
Rounding is left out of Food nutrients for now to prevent rounding up before
summing in certain places.
2021-04-08 16:34:30 -07:00
Christopher Charbonneau Wells
350a08a14d
Add Heroku support ( #12 )
2021-04-06 10:05:10 -07:00
Christopher C. Wells
edbcd877c2
Filter supported units in ingredient picker
2021-04-04 14:55:19 -07:00
Christopher C. Wells
367d242ced
Get rid of variable color props in components
...
These PHP-based variables preventing PostCSS from doing its thing.
2021-04-03 00:20:44 -07:00
Christopher C. Wells
a686e8036b
Add basic Journal Entry controller tests
2021-04-02 23:42:27 -07:00
Christopher C. Wells
8c8a46c4f6
Add `autocapitalization` and `inputmode` settings to some `input` elements
2021-03-27 12:55:22 -07:00
Christopher C. Wells
30bce3dd9b
Document some javascript functionality
2021-03-21 14:37:57 -07:00
Christopher C. Wells
24669f0314
Only remove journal entry template when form is valid
2021-03-21 14:26:18 -07:00
Christopher C. Wells
25d9a6442c
Set default amount and unit on journal entry
2021-03-21 14:03:01 -07:00
Christopher C. Wells
f643baf8ff
Further improve HTML semantics
2021-03-05 21:14:29 -08:00
Christopher C. Wells
3524836878
Add page titles
2021-03-05 20:57:37 -08:00
Christopher C. Wells
5bc2684ca7
Moved repeated container components to app layout
2021-03-05 17:20:13 -08:00
Christopher C. Wells
7d3486e62e
Shorten space between header and content
2021-03-03 06:04:43 -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
0b862dc7e9
Update journal entry from nutrients for new nutrients format
2021-02-11 06:51:03 -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
0829b69e14
Make ingredient input first
2021-02-10 05:25:44 -08:00
Christopher C. Wells
aa84819df5
Remove "g" from calories data
2021-02-06 20:32:54 -08:00
Christopher C. Wells
4ae92187e7
Favor summary field in nutrients journal entry
2021-02-06 20:20:16 -08:00
Christopher C. Wells
0e89f19f27
Add path to nutrient-based journal entry
2021-02-06 20:13:33 -08:00
Christopher C. Wells
d8ddaf611d
Use node cloning instead of `x-for` for journal entry lines
2021-01-31 13:50:49 -08:00
Christopher C. Wells
76f29739e7
Prevent overwriting entry data on form error
2021-01-30 14:11:29 -08:00
Christopher C. Wells
fc4e7a5fb5
Support "servings" unit and require unit
2021-01-27 08:46:12 -08:00
Christopher C. Wells
b83366f2d2
Improve mobile usability of journal pages
2021-01-25 20:25:27 -08:00
Christopher C. Wells
a575622c9c
Improve mobile usability in forms
2021-01-25 07:31:38 -08:00
Christopher C. Wells
536b2236f7
Remove unused welcome and dashboard artifacts
2021-01-25 05:47:02 -08:00
Christopher C. Wells
354e73ef67
Prevent exception on empty tags field
2021-01-24 21:06:12 -08:00
Christopher C. Wells
d1c66924ea
Add "manual" journal entry option
2021-01-24 18:56:03 -08:00
Christopher C. Wells
089b2edab2
Prefill journal entry values with previous entry data
2021-01-24 16:10:52 -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
195ca1648d
Move session message and errors to app layout
2021-01-18 09:23:31 -08:00
Christopher C. Wells
81f590515d
Add support for fractional data entry
2021-01-15 06:09:21 -08:00
Christopher C. Wells
dbb752d73c
Add journal entry add support (WIP)
2021-01-02 15:13:55 -08:00