Special interactive recipes #66
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some recipes are more complex than others. Bread or Pizza for example can be made in a variety of ways and there is not the best way to do it. I propose a kind of interactive recipe for that. Each interactive recipe has to be uniquely designed to fit the dish it is about. As such a special frontend component will have to be created for each recipe. These recipes are part of the regular search results and look like normal recipes from everywhere except their detail view.
Example for bread:
There are at least two kinds of bread I would like to feature in Claypot:
@root Any opinion on this that you would like to share?
From the user perspective there should way to save those configured recipes, maybe they get converted to "real" recipes that simply are not shown in the normal recipe list? How do you imagine the technical implementation?
I like the idea of saving configurations of these special recepies.
From a technical point of view I imagine a new field on the recipe model, maybe called
special_recipe,CharField, can be blank. It can be set to a vue component name and if it is set, this component will be rendered by the frontend.To achieve something like saving (and restoring, obviously) of special recipes I propose a simple interface that these special recipe vue components must comply with: Have them support
v-modeland let the data be JSON serializable. We can handle all the CRUD operations in some generic components that way.