Commit Graph

193 Commits

Author SHA1 Message Date
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 a686e8036b Add basic Journal Entry controller tests 2021-04-02 23:42:27 -07:00
Christopher C. Wells 38ca26291f Add Goal tests 2021-04-02 23:42:27 -07:00
Christopher C. Wells 7dd0fd1487 Remove icon nav elements 2021-03-27 21:01:34 -07:00
Christopher C. Wells 4f5b29ce4c Imrpove support for "mobile app" handling 2021-03-27 20:45:42 -07:00
Christopher C. Wells 1ad422f007 Rename kcal 2021-03-27 20:24:24 -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 30bce3dd9b Document some javascript functionality 2021-03-21 14:37:57 -07:00
Christopher C. Wells 24669f0314 Only remove journal entry template when form is valid 2021-03-21 14:26:18 -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 be9c45a414 Replace recipe active time with cook time 2021-03-13 13:51:37 -08:00
Christopher C. Wells 9952803368 Adjust feature image heights 2021-03-13 05:48:32 -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 97b9fb4fb2 Only used fixed/cover on md+ 2021-03-13 05:27:06 -08:00
Christopher C. Wells e1d6da89ad Adjust recipe background behavior for small screens 2021-03-13 04:44:48 -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 7e5e7d5222 Add loading animation to search 2021-03-08 20:29:51 -08:00
Christopher C. Wells 65e3e9c776 Set formatted serving size to null when empty 2021-03-08 15:06:21 -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 debe773def Refactor for clearer `main` and `article` elements 2021-03-05 17:26:01 -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 2ae2e1ad50 Add more data to food view 2021-03-03 06:03:39 -08:00
Christopher C. Wells 67964e492f Remove Google font 2021-03-03 05:34:19 -08:00
Christopher C. Wells 39dfe6d821 Add an app logo 2021-03-02 20:56:01 -08:00
Christopher C. Wells 73022ac167 Add option to group or not group journal entries 2021-03-02 19:57:06 -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 3879898b7d Complete initial tag filter handling 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 794c0712bc Add basic tags front end support 2021-02-27 13:50:40 -08:00
Christopher C. Wells f747c0f191 Don't reset search results until new results are ready
This prevents a stark flash of empty results while the new search query
resolves.
2021-02-26 05:48:15 -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 2f91c320ef Refactor nutrients data array as a collection 2021-02-21 08:23:30 -08:00
Christopher C. Wells d3a881c359 Add recipe delete functionality 2021-02-20 14:36:52 -08:00
Christopher C. Wells 4856ed4b70 Deleted related ingredient amounts on food delete 2021-02-19 05:57:42 -08:00
Christopher C. Wells ae27a2e4bd Fix Ingredient/HasIngredient trait relationships 2021-02-17 06:05:29 -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 Charbonneau Wells 414629b469
Add goals support (#4) 2021-02-15 14:19:53 -08:00
Christopher C. Wells 33a8591c72 Add handling for recipes by weight in ingredient amounts and journal entries 2021-02-11 20:25:36 -08:00
Christopher C. Wells 836c40abf2 Add recipe weight support 2021-02-11 19:49:27 -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 0829b69e14 Make ingredient input first 2021-02-10 05:25:44 -08:00
Christopher C. Wells aa84819df5 Remove "g" from calories data 2021-02-06 20:32:54 -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 6c61d5d103 Switch to icon-based navigation 2021-02-06 19:59:31 -08:00
Christopher C. Wells bf4cec4d27 Use formatted serving unit in other areas 2021-02-06 13:59:19 -08:00
Christopher C. Wells afa4e5f93f Add custom serving name field to foods 2021-02-06 13:59:19 -08:00
Christopher C. Wells 3d81634556 Use string representation for empty tags 2021-01-31 14:29:20 -08:00
Christopher C. Wells c4ba2562e8 Add servings data to recipe picker results 2021-01-31 14:25:30 -08:00
Christopher C. Wells 00b7d7f3f7 Hide ingredient search results when there is no input 2021-01-31 14:23:54 -08:00
Christopher C. Wells 3695810fe7 Don't show typed tag when exact match is found 2021-01-31 14:20:54 -08:00
Christopher C. Wells cfa9e2c1eb Ensure tags persist from old form data 2021-01-31 14:17:11 -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 7f3ed5b704 Update nutrition label styling 2021-01-28 15:00:07 -08:00
Christopher C. Wells fc4e7a5fb5 Support "servings" unit and require unit 2021-01-27 08:46:12 -08:00
Christopher C. Wells 9cae200c0f Set parent route active for all sub-routes 2021-01-27 06:01:42 -08:00
Christopher C. Wells bc77f923a2 Remove edit links from index views 2021-01-27 05:57:57 -08:00
Christopher C. Wells 6baf888d4f Add source and notes fields to foods 2021-01-27 05:51:38 -08:00
Christopher C. Wells ca55a0d6ec Add data to recipe view 2021-01-27 05:43:43 -08:00
Christopher C. Wells 746b061a8d Check for detail before adding to ingredient name 2021-01-25 20:27:43 -08:00
Christopher C. Wells b83366f2d2 Improve mobile usability of journal pages 2021-01-25 20:25:27 -08:00
Christopher C. Wells ed1f69c96f Fix load more behavior 2021-01-25 07:36:32 -08:00
Christopher C. Wells a575622c9c Improve mobile usability in forms 2021-01-25 07:31:38 -08:00
Christopher C. Wells 536b2236f7 Remove unused welcome and dashboard artifacts 2021-01-25 05:47:02 -08:00
Christopher C. Wells 1c63cc9a7e Add placeholder for food show page 2021-01-24 21:11:41 -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
Christopher C. Wells 089b2edab2 Prefill journal entry values with previous entry data 2021-01-24 16:10:52 -08:00
Christopher C. Wells 35f386d681 Add backend support for multiple dates/meals in journal entry 2021-01-24 15:24:03 -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 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 ae626e5392 Add search and filtering to food index 2021-01-23 16:16:15 -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 333abbb8f5 Link to recipe show from recipe ingredients 2021-01-23 10:33:25 -08:00
Christopher C. Wells 983b7695dd Add support for recipe recipe ingredients 2021-01-23 10:33:25 -08:00
Christopher C. Wells ff829d9d8d Use `x-spread` for ingredients picker JS 2021-01-23 10:33:25 -08:00
Christopher C. Wells 670d6127ca Refactor Recipe to support IngredientAmount (WIP)
Only Food IngredientAmounts are supported currently.
2021-01-23 10:33:25 -08:00
Christopher C. Wells 13f1302132 Add initial Recipe support to ingredient picker (WIP)
A new class it likely needed here -- IngredientAmount -- to support either a
Food or a Recipe.
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
Christopher C. Wells fe868a1a08 Handle step deletes 2021-01-22 21:11:19 -08:00