Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ui to directly import JSON #1872

Open
christianlupus opened this issue Oct 30, 2023 · 1 comment
Open

Add ui to directly import JSON #1872

christianlupus opened this issue Oct 30, 2023 · 1 comment
Labels
enhancement New feature or request Frontend Issue or PR related to the frontend code
Projects

Comments

@christianlupus
Copy link
Collaborator

christianlupus commented Oct 30, 2023

The wish was written to have a way to copy and paste JSON data in the web UI. This should be possible with the rework in general.


Would certainly be a great feature I have used Chatgpt to reformat an unstructured recipe into schema .org format to get output like (see below). To be able to import this directly, would be ideal.

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Recipe",
  "name": "2 HOUR Crockpot Bread",
  "author": "Pamela Reed",
  "description": "Easy to make 2 HOUR Crockpot Bread recipe. Throw it in the crock pot and you will have soft homemade bread in 2 hours! This is the best bread to serve with creamy soups and casseroles.",
  "prepTime": "PT45M",
  "cookTime": "PT2H",
  "recipeYield": "10 servings",
  "recipeIngredient": [
    "1 cup warm water",
    "1/3 cup sugar",
    "1 tablespoon active dry yeast",
    "1 1/2 teaspoon salt",
    "2 tablespoons vegetable oil",
    "3 cups all-purpose flour",
    "rosemary (optional)"
  ],
  "recipeInstructions": [
    "Pour warm water into a large bowl. Add sugar and mix until dissolved. Add dry yeast and stir. Let sit for about 10 minutes until foamy. I always find it helps to sit it in a warm spot.",
    "Add salt to the bowl and stir to dissolve. Add vegetable oil.",
    "Add flour and mix with hands until everything is combined. Knead the dough for 5 minutes and form into a round ball.",
    "Place the dough in an olive oil-coated bowl and cover with plastic wrap. Sit in a warm spot for 30 minutes to rise, doubling in size.",
    "Cut a piece of parchment paper and place it in the bottom of the slow cooker. Make sure the parchment paper comes up the bottom of the sides of the slow cooker so when the bread expands, it won't stick to the sides. Additionally, I like to spray the parchment paper with nonstick spray.",
    "Place your dough into the slow cooker. Sprinkle with rosemary.",
    "Cook on HIGH for 2 hours.",
    "Remove from the slow cooker and brush a little bit of butter on top. Place under the broiler for about 1 minute until slightly brown. Keep an eye on it and make sure it does not burn! Broiling is not a necessary step, but I recommend it to get the top crispy!"
  ]
}
</script>

Originally posted by @gewinh in #1671 (comment)

@christianlupus christianlupus changed the title The wish was written to have a way to copy and paste JSON data in the web UI. This should be possible with the rework in general. --- Would certainly be a great feature I have used Chatgpt to reformat an unstructured recipe into schema .org format to get output like (see below). To be able to import this directly, would be ideal. Add ui to directly import JSON Oct 30, 2023
@christianlupus christianlupus added this to To do in UI rework via automation Oct 30, 2023
@christianlupus christianlupus added enhancement New feature or request Frontend Issue or PR related to the frontend code labels Oct 30, 2023
@christianlupus
Copy link
Collaborator Author

See also #1244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Frontend Issue or PR related to the frontend code
Projects
Development

No branches or pull requests

1 participant