Coder Social home page Coder Social logo

Comments (3)

NoelDeMartin avatar NoelDeMartin commented on June 16, 2024 1

Ok, I'll keep it in mind for next time I work on the app. Since it's an improvement and not a bug, it'll probably take a while until I do it myself because I'm focused on other things now. If anyone wants to work on this I'm open to PRs. I think it shouldn't be too difficult to achieve, so I'll be adding the "good first issue" label.

from umai.

NoelDeMartin avatar NoelDeMartin commented on June 16, 2024

Hey, thanks for the idea.

I like it, but I'm not sure about the UX implications. This is the feature in Trello you're talking about, right? Importing checklist items. It seems like their approach is to use newlines as separation and they automatically create different items in the list. But I'm not sure how well that would work for Umai.

For ingredients, I think it could work. Newlines would create separate ingredients; and the implication is that you wouldn't be able to have newlines within ingredients (I'm fine with that).

But instructions are more tricky. It's not uncommon to have line breaks within the same instruction step. Maybe I can look for two or more empty lines in a row, or markdown-style list items (like having a -, *, +, or {number}. at the beginning). However, even those could give some false positives, so I think I would only do that when creating new steps (and maybe show a notification explaining what happened). But I wouldn't enable this behaviour to edit existing steps.

Maybe to be consistent, this could also happen only for creating new ingredients, not editing.

What do you think?

from umai.

angelo-v avatar angelo-v commented on June 16, 2024

Hi Noel, I Understand your concerns, did not think about intentional new lines. Yet I think it is easier to merge to items that have been split by accident than it is to copy over every single item manually.

I am ok witj the idea of supporting this only for new items. Usually if you copy over a whole list there is no item yet. I imagine one won't write one or two items and then copy over a list. It's either manual typing everything or copy-pasting everything

from umai.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.