Christopher C. Wells
bc3b4b11d1
Remove unused Console Kernel code
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
29638c711f
Replace meals static array with Collection
2021-04-02 23:42:27 -07:00
Christopher C. Wells
a686e8036b
Add basic Journal Entry controller tests
2021-04-02 23:42:27 -07:00
Christopher C. Wells
3c37fe4809
Complete initial factories for all models
2021-04-02 23:42:27 -07:00
Christopher C. Wells
51d4db11c6
Refactor nutrients units array as Collection
2021-04-02 23:42:27 -07:00
Christopher C. Wells
a6c978981d
Add Goal factory
2021-04-02 23:42:27 -07:00
Christopher C. Wells
01b414c22c
Add tests for Support classes
2021-04-02 23:42:27 -07:00
Christopher C. Wells
d91c26159b
Don't require `ingredients.key` fields
2021-03-27 09:57:57 -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
dae2a8d725
Add unit to nutrients summary value
2021-03-17 05:17:22 -07:00
Christopher C. Wells
8db02e302b
Allow all tags to be removed
2021-03-13 14:00:09 -08: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
521479ad88
Add media to API responses
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
4b31f87f98
Delete ingredient amounts on recipe delete
2021-03-11 19:28:38 -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
fafc4c9e33
Remove unused use statement
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
be681f0dd7
Add recipe time fields (WIP)
...
Not present in th frontend yet.
2021-03-06 09:30:15 -08:00
Christopher C. Wells
8feb7b37fa
Set tags keyword field with array
2021-03-05 14:50:54 -08:00
Christopher C. Wells
2e7c76cbad
Switch to simple analyzer (adds lowercase casting)
2021-03-05 14:48:24 -08:00
Christopher C. Wells
5dfd3e17df
Use babenkoivan Elasticsearch ecosystem
2021-03-04 22:17:33 -08:00
Christopher C. Wells
0fec1d2ede
Redirect to journal entry date if only one date is used
2021-03-02 20:11:31 -08:00
Christopher C. Wells
905635c022
Only evaluate serving name in summary when serving is used
2021-03-02 20:02:20 -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
b46752b6c7
Do not restore weighted search results by name
2021-03-02 19:33:23 -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
794c0712bc
Add basic tags front end support
2021-02-27 13:50:40 -08:00
Christopher C. Wells
1b1260bece
Add convenience method to get total tags figures per model
2021-02-27 13:50:40 -08:00
Christopher Charbonneau Wells
076882ecdb
Add fulltext search support to ingredient picker
2021-02-24 18:44:17 -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
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
713da8f728
Default food nutrients to zero
2021-02-10 06:02:15 -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
bb3f1a2e1d
Improve serving name handling for recipes and journal entries
2021-02-07 20:09:14 -08:00
Christopher C. Wells
c909d3b535
Calculate Recipe ingredient nutrients from serving amount
2021-02-07 19:30:33 -08:00
Christopher C. Wells
0e89f19f27
Add path to nutrient-based journal entry
2021-02-06 20:13:33 -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
cfa9e2c1eb
Ensure tags persist from old form data
2021-01-31 14:17:11 -08:00
Christopher C. Wells
fa3c1ee69e
Sync tags _after_ saving recipe
2021-01-31 13:56:45 -08:00
Christopher C. Wells
87311b9ec4
Supper gram-based data entry
2021-01-30 05:56:08 -08:00
Christopher C. Wells
fc4e7a5fb5
Support "servings" unit and require unit
2021-01-27 08:46:12 -08:00
Christopher C. Wells
0eae4af7d6
Correct "serving" unit value check
2021-01-27 08:39:38 -08:00
Christopher C. Wells
6baf888d4f
Add source and notes fields to foods
2021-01-27 05:51:38 -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
354e73ef67
Prevent exception on empty tags field
2021-01-24 21:06:12 -08:00
Christopher C. Wells
5bc1499e1a
Correct summing function for entry nutrients
2021-01-24 19:46:44 -08:00
Christopher C. Wells
037d20fbb7
Add phpstan support
2021-01-24 19:43:59 -08:00
Christopher C. Wells
d1c66924ea
Add "manual" journal entry option
2021-01-24 18:56:03 -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
c29c88776f
Add tagging support to foods and recipes
2021-01-23 19:58:03 -08:00
Christopher C. Wells
80bdd0ebae
Set default API in boot
2021-01-23 16:29:15 -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
3101c34071
Add ingredient picker support to journal entry form
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
e335c249d8
Fix old ingredients reference
2021-01-23 10:33:25 -08:00
Christopher C. Wells
1c420bc624
Remove remaining FoodAmount references
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
19eac25413
Update nutrient calculation for IngredientAmount
2021-01-23 10:33:25 -08:00
Christopher C. Wells
5ded6bfce6
Create IngredientAmount class
...
This class will replace FoodAmount when it has proper support for
calculating nutrients for FoodAmount and Recipe combinations.
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
Christopher C. Wells
acdd89c192
Handle ingredient deletes
2021-01-22 21:11:19 -08:00
Christopher C. Wells
9f180b9b62
Refactor ingredients field structure
2021-01-22 21:11:19 -08:00
Christopher C. Wells
f499e5ffb7
Add support for old values in recipe form
2021-01-22 21:11:19 -08:00
Christopher C. Wells
b53a76939a
Remove Livewire
2021-01-22 21:11:19 -08:00
Christopher C. Wells
f2864b76dc
Complete AlpineJS-based ingredient picket
2021-01-22 21:11:19 -08:00
Christopher C. Wells
cb7483ae06
Begin work on non-livewire ingredient picker (WIP)
...
This commit is mostly a PoC and looks like it will work in place of the
initial Livewire-based component for a repeatable picker.
2021-01-22 21:11:19 -08:00
Christopher C. Wells
ac1ec3316b
Add limit option to food search
2021-01-22 21:11:19 -08:00
Christopher C. Wells
e68dac7f55
Complete initial food picker component
2021-01-22 21:11:19 -08:00
Christopher C. Wells
f48249d9e5
Refactor as food-specific picker
2021-01-22 21:11:19 -08:00
Christopher C. Wells
18d15db375
Add basic livewire picker (WIP)
2021-01-22 21:11:19 -08:00
Christopher C. Wells
ba7cd55503
Write IDE helper content directly to models
2021-01-18 13:33:21 -08:00
Christopher C. Wells
9a60dbbe6e
Add ability to delete journal entries
2021-01-18 13:30:12 -08:00
Christopher C. Wells
70c9396d0f
Add `source` field to Recipe model
2021-01-18 09:22:08 -08:00
Christopher C. Wells
f974806b15
Add `detail` field to Food Amount model
2021-01-18 08:59:55 -08:00
Christopher C. Wells
afe2bdafe0
Enforce lower case for food and recipe names
2021-01-18 06:05:21 -08:00