uwazi icon indicating copy to clipboard operation
uwazi copied to clipboard

Should there be thesauri fields where I can add new values while working on a document?

Open whyfrycek opened this issue 8 years ago • 4 comments

When working on documents, I am trying to add the "source", but I don't know all the "sources" when I define my metadata scheme. Should there be a field type, where I can add new sources on the spot?

For example, in Kanboard, I have categories that are defined in advance and tags where I can choose from previously used ones, but also add new ones on the spot.

whyfrycek avatar Aug 10 '16 13:08 whyfrycek

Definitely. Is a burden having to first define your dictionaries. This has been around for a while now, we will come to a nice solution sometime.

Related to #154 .

/cc @danicatalan

txau avatar Aug 10 '16 14:08 txau

@txau @whyfrycek I am developing a concept to add values to a dictionary from the sidepanel that require some feedback, please take a look the next mockups and tell me what you think about it.

The first case is when a property has a thesauri assigned but that thesauri doesn't have any value. As soon as the user selects the new value, it will be save into the thesauri.

add-value-empty-dictionary

The second case is when the thesauri already has values, but we want to add a new one. I find this solution quite intuitive because if you find for a property that doesn't exist, you can create it on the fly.

add-new-value

The third case is when the we just select an existing thesauri, our current functionality and works like a charm :)

add-existing-value

I've been thinking about the + icon too. First attempt was without any special icon (just another checkbox) and it feels like magic, but maybe it's confusing for the user. In these examples I specified the + icon to tell the user it's a new value, but other ideas are welcome.

danicatalan avatar Feb 28 '17 17:02 danicatalan

We had a quick change of heart regarding the approach to this issue:

  • It would be a modal opened by an "add value" text underneath the property name
  • it would open a modal saying: "Add thesaurus value", list the name of the Thesaurus (not an non-editable input as in the designs)
  • It would present a FORM with two inputs:
  • The first one is a "Group" dropdown selector with <root> as the default, and will list all the groups of the thesaurus... this way you can select where to "nest" the value you are adding
  • The second one is a text input for the Thesaurus name
  • Ideally, typing thigs here would say "duplicate value found" if you already have that value at that nesting level, and, as a nice to have, if identical or similar values are found in other groups.
  • This only requires a save-cancel combo, no need to delete anything
  • This flow doesn't allow to create new groups, at MVP at least

RafaPolit avatar Sep 21 '22 16:09 RafaPolit

Link to the Figma design, though kindly take note to implement as it is described above!

nwyu avatar Sep 23 '22 08:09 nwyu