Commit Graph

14 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 6a93254781 Tweak factory and seeder for goal changes 2021-05-15 21:40:53 -07:00
Christopher C. Wells dc4d7987e8 Create JournalDate model for setting per-date goals 2021-05-15 21:40:53 -07:00
Christopher C. Wells 1d1df92d8f Add media to User Controller test instances 2021-04-21 08:53:41 -07:00
Christopher C. Wells ef719c9175 Add User admin flag 2021-04-20 16:04:32 -07:00
Christopher C. Wells 0d5b3fe4fc Add User CRUD controller tests 2021-04-20 15:02:45 -07:00
Christopher C. Wells ebb07ffb7d Replace unecessary states in Food factory 2021-04-20 11:55:10 -07:00
Christopher C. Wells 057433eb90 Add support for "oz" as a food serving unit 2021-04-20 11:51:19 -07:00
Christopher C. Wells 809e3ca7d7 Add support for recording recipe volume (WIP)
This offers no practical value yet -- ultimately it will be used to support
volume-based servings for recipes with a total volume set.
2021-04-17 20:31:52 -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 a13bdb4e01 Don't use thirds in seed data 2021-04-07 21:53:49 -07:00
Christopher C. Wells c76b1b07c0 Finalize fake data improvements 2021-04-07 21:28:05 -07:00
Christopher C. Wells 3521f36134 Improve general relevancy of database seeder 2021-04-07 16:36:46 -07:00
Christopher C. Wells 6920d21896 Re-add Seeders and Factories with correct case 2021-04-07 08:58:20 -07:00