Commit Graph

95 Commits

Author SHA1 Message Date
Bram Wubs f74806ea07 Log a recipe or food from their show pages 2022-10-20 19:05:53 -07:00
Christopher C. Wells 4aaf83c862 Add recipe duplicate functionality 2022-03-06 20:53:50 -08:00
Christopher C. Wells ce4827a8ec Account for serving sizes > 1 in recipe display
Closes #19
2022-02-12 06:27:12 -08:00
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 C. Wells 03f7319157 Add User photo media support 2021-04-21 08:49:05 -07:00
Christopher C. Wells 3bccde1a35 Update Node dependencies; enable Tailwind JIT 2021-04-20 12:16:46 -07:00
Christopher C. Wells e8f2ed8108 Display recipe volume where applicable 2021-04-18 13:55:11 -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 dbee32dc14 Improve error messages in recipe update 2021-04-12 21:20:13 -07:00
Christopher C. Wells ba5ac72db8 Place nutrition facts and operations above content 2021-04-12 19:53:15 -07:00
Christopher C. Wells eea63227b9 Set max width on `aside` for food and recipe show page 2021-04-10 21:22:59 -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 232f5ddfe8 Attempt to improve handling for common 1/3 and 2/3 amounts 2021-04-10 14:22:14 -07:00
Christopher Charbonneau Wells 350a08a14d
Add Heroku support (#12) 2021-04-06 10:05:10 -07:00
Christopher C. Wells 5f19cb44dd Re-add default input to ingredient picker units
This prevents accidentally setting a different value for an existing entry
with an unsupported unit.
2021-04-04 15:51:22 -07:00
Christopher C. Wells e1af68941c Add supported units filtering to recipe edit 2021-04-04 15:46:37 -07:00
Christopher C. Wells 51482f4adb Revert removal of `type="button"` from relevant (non-submit) buttons 2021-04-03 00:29:02 -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 8c8a46c4f6 Add `autocapitalization` and `inputmode` settings to some `input` elements 2021-03-27 12:55:22 -07:00
Christopher C. Wells 594f5c6e4b Ensure ingredients list always has a weight entry 2021-03-27 12:33:36 -07:00
Christopher Charbonneau Wells 0407899496
Add ingredient separators (#10)
* Add weight handling to ingredient sortable

* Add frontend logic for recipe ingredients "separator"

* Add "recipe separator" model

* Update ingredient handlers on recipe save

* Combine ingredients and separators handler in recipe edit

* Handle recipe ingredient separators in recipe show

* Fix handling of old recipe form data
2021-03-26 08:58:37 -07:00
Christopher C. Wells be9c45a414 Replace recipe active time with cook time 2021-03-13 13:51:37 -08:00
Christopher C. Wells 9c68277cc6 Ditch bg-cover approach
Too many problems on mobile with nicer fixed styling.
2021-03-13 05:41:26 -08:00
Christopher C. Wells c978c5843d Use recipe image as background 2021-03-12 20:48:08 -08:00
Christopher C. Wells ac57f6d33e Add initial recipe image support 2021-03-12 20:48:08 -08:00
Christopher C. Wells af65c5c7bb Tweak Quill editor styling 2021-03-10 05:35:42 -08:00
Christopher C. Wells 04631d2106 Adjust recipe show page styles 2021-03-08 08:40:36 -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 46efb6d562 Add Quill editor for recipe description 2021-03-08 08:40:36 -08:00
Christopher C. Wells 700bc380a2 Add basic recipe time display 2021-03-06 10:04:28 -08:00
Christopher C. Wells 98c961b7d1 Use @php instead of {{ when setting title 2021-03-06 09:31:59 -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 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 2a6a1741e1 Improve recipes HTML semantics 2021-03-05 20:41:00 -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 4a754643ec Create link from source field when it is a URL 2021-03-02 19:42:47 -08:00
Christopher C. Wells 794c0712bc Add basic tags front end support 2021-02-27 13:50:40 -08:00
Christopher C. Wells 94678cfa75 Correct target for recipe step remove 2021-02-26 05:28:56 -08:00
Christopher C. Wells 6c01027ad9 Adopt template-based input add/remove system for recipes 2021-02-21 08:59:32 -08:00
Christopher C. Wells d3a881c359 Add recipe delete functionality 2021-02-20 14:36:52 -08:00
Christopher C. Wells b8ae2f5473 Use link styling for nutrients toggle 2021-02-17 05:35:11 -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 8ce5b82825 Add re-ordering support to recipe ingredients and steps 2021-02-15 21:08:36 -08:00
Christopher C. Wells 836c40abf2 Add recipe weight support 2021-02-11 19:49:27 -08:00
Christopher C. Wells 3c5d1c1f00 Use mg base unit for cholesterol and sodium 2021-02-10 05:55:01 -08:00