Commit Graph

16 Commits

Author SHA1 Message Date
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 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 8c8a46c4f6 Add `autocapitalization` and `inputmode` settings to some `input` elements 2021-03-27 12:55:22 -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 2f91c320ef Refactor nutrients data array as a collection 2021-02-21 08:23:30 -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 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 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