Commit Graph

17 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 69ce3cb277 Attempt to improve coherency of journal entry summaries 2021-04-08 21:17:15 -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 30bce3dd9b Document some javascript functionality 2021-03-21 14:37:57 -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 0829b69e14 Make ingredient input first 2021-02-10 05:25:44 -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 089b2edab2 Prefill journal entry values with previous entry data 2021-01-24 16:10:52 -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