brendantwhite / morplees Goto Github PK
View Code? Open in Web Editor NEWA shopping / recipe app that Brendan likes
A shopping / recipe app that Brendan likes
Would greatly simplify the auto-creation of SLItems on SLRecipe creation, if we could get all Products from the SLRecipe's Recipe.
like it says on the tin
Remove 'View' pages, jump straight to 'Edit' ... maybe? On Resources?
... or is it just me, doing testing all the time, that wants to skip the View page? Maybe regular users will WANT to land on View, and only change to Edit if they need to edit something?
Change from "only check tenant / family if the session variable is set" to "always check (unless specifically exempt)".
Then find all the places in eg login that it breaks, and specifically exempt those places.
Maybe ping back to the guy whose post I followed to implement single db multi tenancy in the first place.
When creating a new family - have an option to generate a bunch of standard ingredients / products? And maybe a bunch of default recipes, if I can work out how itoethically and legally source them?
Or maybe just have a way that a person from one family can share products and/or recipes with a person from another family? Presumably after first requiring approval from the other person?
New ShoppingList view - "Pantry Check" or "Stocktake" or similar
List all SLItems, with a tick box for the new "already have in pantry" boolean
When a ShoppingLIst is created, automatically add any Products with the auto-add boolean set
Steps to Reproduce:
1 - Go to the list of families, select a family
2 - At the bottom of the page, select the Users relation
3 - Click "New User" and fill in the name and email of a new user
4 - Click the "Create" button.
5 - Observe the 500 error.
Products should not have Shop as mandatory.
This is partly just a useful user feature in itself, but it also is a useful precursor to being able to create new products directly from the recipe ingredients list
Laravel 9
PHP 8.1 for enum stuff
Replace the default Laravel readme with a Morplees readme, even if it's quite short
Steps to reproduce:
1 - From the login page, click ''Forgot your Password"
2 - Enter an email address FOR A VALID USER and click "Email Password Reset Link"
3 - Observe the 500 error
The fix might be as simple as just configuring an email provider.
Just before migration to Prod, re-do the data migration from Shopping.xlsx to capture any last-minute changes
Blocked for now as we're nowhere near initial Prod release
As a householder, sometimes I want to do a specific shopping list for just one or two recipes, WITHOUT adding all the regular items.
When adding a New Item on the Pantry window, currently you can only select from pre-existing products. It would be great to allow the user to seamlessly create new products.
Move Edit button to the bottom
Move Save button to the top
Move Cancel to be next to Save
Move any other buttons that make sense
Maybe a new Class to inherit from???
remove morph relationship
Add regular (ie mandatory) 1 to many for Products
Add OPTIONAL (ie nullable) 1 to many for recipes
Some resources might be cleaner and simpler using Simple / Modal resources.
eg Pantry might be cleaner with a modal Add Pantry Item button. Probs others as well.
also Shopping page
in View Family, leave Users relation manager, remove Shops, Recipes, Shopping Lists.
When entering ingredients, get a list of suggested existing products, but can enter new product and it auto-creates
Precursor:
#35 Shop should be Optional on Product
There is currently no way for a new user to register.
Add a way for a new user to register, perhaps from the login screen.
If the user wants to start a brand new family, let them do that (after first checking that's what they want).
If the user wants to join an existing family, give them a path of some sort to do that. Options include:
The second option might be quicker and easier. ;-)
Currently it goes to the list of all families I can see ... which is only one. mine.
Maybe fade out, or even better zoom out, from https://animate.style
particularly for tick boxes on eg Product list
blocked by filamentphp/filament#1499
Change boolean "Default in List" to "Auto-add to new shopping lists" or similar
Switch on soft deletes for 'major' models, like Shopping List, Product, Resource
Do NOT switch on soft deletes for 'minor' model SLItems. They can just get deleted when the SLRecipe is gone.
Not sure about SLRecipes - soft delete or hard?
...when creating a new shopping list.
Then immediately remove Need Soon flag? Leave the flag there and remove it when the product is set to In Basket? Or when it's in basked and then the shopping list is Closed?
Brief intro for new users
Enter recipes, then:
1 - Menu
2 - Pantry
3 - Shop
Tweak SL Recipes model to:
Auto-add SLItems (from ingredients) on SLRecipe creation
Auto-remove SLItems on SL Deletion (or can just handle this via database commands on migration?)
Auto-remove old items and auto-add new items when Recipe is changed on SLRecipe record
On the Shopping page, insert a new button to add a new item to the shipping list, similar to the button on the Pantry page
currently only admin users can crate new users
... is there any way we could share recipes between families? Or maybe copy them from one family to another?
Don't know how we'd handle ingredients / products across two different families ... particularly since products need shops...
Write a web scraper to scrape a recipe (or a group of recipes?) from an existing recipe website
Probs extendable, so we can do a number of different websites in time.
on view product page, have a button to add it to the current shopping list
When we're on v3 we will be able to sort tables by multiple fields.
This would be good to do on the Pantry and Shopping pages.
(Blocked untill Filament v3 is released, and we've upgraded.)
Probably just reuse the existing shopping list recipes page.
Remove existing booleans
Add boolean "Already Got It" or "Already in Pantry"
Add boolean "In Shopping Basket"
add a function to toggle each boolean
on the View Recipe page, have a button to add it to the current menu
Error 500
If the product is used as an ingredient in a recipe then deleting the product gives error 500
Re-do icons so they're all from the same family, before migration to Prod? Maybe?
In the shopping list, and also the pantry check, if you tick an item that is already ticked, it un-ticks.
But if two people tick at the same time, it ticks and then immediately un-ticks, so it doesn't end up ticked at all.
So change Toggle to:
Pay for and adopt this Carrot and Apple icon
New ShoppingList view - "Shopping" or similar
List SLItems that do NOT have "already in pantry" boolean ticked, with a tick box for the new "in basket" boolean
When adding or editing a recipe, when adding a Step and/or an Ingredient:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.