Commit Graph

38 Commits

Author SHA1 Message Date
Christopher C. Wells 6e3c40531d Remove use of deprecated Media Library model method 2022-03-06 14:43:39 -08: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 C. Wells 77b06c62b1 Add formatted days attribute to Goal 2021-05-15 21:40:53 -07:00
Christopher C. Wells b21f483af2 Update Goals tests 2021-05-15 21:40:53 -07:00
Christopher C. Wells 153611e66d Remove Goal `from` and `to` attributes 2021-05-15 21:40:53 -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 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 2b3f0c31f6 Add Media API tests 2021-04-02 23:42:27 -07:00
Christopher C. Wells 192070f826 Ignore API closures for coverage 2021-04-02 23:42:27 -07:00
Christopher C. Wells 3eebcf2756 Add default pagination to all API routes 2021-04-02 23:42:27 -07:00
Christopher C. Wells 152d9eb641 Remove unnecessary docblocks 2021-04-02 23:42:27 -07:00
Christopher C. Wells 0ec83db285 Add Goals API endpoint 2021-04-02 23:42:27 -07:00
Christopher C. Wells 1776d5c83b Re-enable User API endpoint 2021-04-02 23:42:27 -07:00
Christopher C. Wells e97056553a Add API endpoint and relationships for recipe separators 2021-04-02 23:42:27 -07:00
Christopher C. Wells 28c915b8c5 Override Tag class in app models 2021-04-02 23:42:27 -07:00
Christopher C. Wells be9c45a414 Replace recipe active time with cook time 2021-03-13 13:51:37 -08:00
Christopher C. Wells 521479ad88 Add media to API responses 2021-03-12 20:48:08 -08:00
Christopher C. Wells 053c8305a1 Refactor Quill handling as a separate database column 2021-03-08 08:40:36 -08:00
Christopher C. Wells 99300d1b2d Add frontend support for Quill JSON strings 2021-03-08 08:40:36 -08:00
Christopher C. Wells be681f0dd7 Add recipe time fields (WIP)
Not present in th frontend yet.
2021-03-06 09:30:15 -08:00
Christopher C. Wells a32cb2e72d Maintain other scopes when using the custom "search" filter 2021-02-27 13:50:40 -08:00
Christopher C. Wells 7530bd61bd Maintain other scopes when using the custom "search" filter 2021-02-27 13:50:40 -08:00
Christopher C. Wells a14b58483a Add tag filter handling 2021-02-27 13:50:40 -08:00
Christopher C. Wells e356c56bf6 Add ability to google recipe per-ingredient nutrient data 2021-02-16 06:04:14 -08:00
Christopher C. Wells 836c40abf2 Add recipe weight support 2021-02-11 19:49:27 -08:00
Christopher C. Wells afa4e5f93f Add custom serving name field to foods 2021-02-06 13:59:19 -08:00
Christopher C. Wells 6baf888d4f Add source and notes fields to foods 2021-01-27 05:51:38 -08:00
Christopher C. Wells 7526138ad2 Add search/load support to recipes 2021-01-23 21:55:21 -08:00
Christopher C. Wells 2a6549c6d2 Fix edit link in Foods list 2021-01-23 21:35:45 -08:00
Christopher C. Wells c29c88776f Add tagging support to foods and recipes 2021-01-23 19:58:03 -08:00
Christopher C. Wells ae626e5392 Add search and filtering to food index 2021-01-23 16:16:15 -08:00
Christopher C. Wells 2e55ea1d98 Configure basic API paging, sorting, and filtering 2021-01-23 15:07:49 -08:00
Christopher C. Wells 39455af3c9 Add API relationships 2021-01-23 14:47:40 -08:00
Christopher C. Wells 166427dce6 Establish base JSON:API endpoints 2021-01-23 14:21:37 -08:00
Christopher C. Wells ebc6f9cdd5 Remove unused JSON:API elements 2020-12-31 15:00:38 -08:00
Christopher C. Wells 2dd92c8d3a Refactor "ingredients" as "foods" 2020-12-30 15:06:22 -08:00
Christopher C. Wells aa9b504653 Add JSON:API via `cloudcreativity/laravel-json-api` 2020-12-22 22:16:18 -08:00