Giter Club home page Giter Club logo

Comments (5)

greptile-apps avatar greptile-apps commented on September 21, 2024

Disclaimer: This comment was automatically generated with AI. It can give some useful hints as to where to look for, but sometimes it can also give very inaccurate answers so takes this with a pinch of salt :).

To implement a textarea for bulk insertion of multi-select options:

  1. Modify SettingsObjectFieldSelectForm component:

    • Add a textarea input for bulk option insertion.
    • Update the handleSetOptionAsDefault and handleRemoveOptionAsDefault functions to handle multiple options.
  2. Update form rendering:

    • Refer to SettingsDataModelFieldSelectSettingsFormCard for form rendering logic.
  3. Update type selection:

    • Refer to SettingsObjectFieldTypeSelectSection for handling type selection logic.

This will allow users to input multiple options at once for multi-select fields.

References

from twenty.

charlesBochet avatar charlesBochet commented on September 21, 2024

@Bonapara FYI

from twenty.

Bonapara avatar Bonapara commented on September 21, 2024

We should add a ⌘⏎ or shortcut that adds a new option when typing a value.

from twenty.

livingstonlarus avatar livingstonlarus commented on September 21, 2024

@Bonapara interesting, but does not solve the issue. If the user needs to insert 50 options, she still has to do it one by one, even if it's easier with .

What's needed is to be able to paste a full list. Either with a textarea, or maybe just capturing the paste event when focus is in the option input, and populate as many new option inputs as needed. That would be even more elegant than a textarea. But it's not obvious, so a tip should make clear that you can paste a list instead of typing it.

from twenty.

Bonapara avatar Bonapara commented on September 21, 2024

@livingstonlarus, thanks for sharing this use case. We won't implement this in the short term, but we'll keep it in mind and turn this issue into a discussion so people can upvote it!

from twenty.

Related Issues (20)

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.