You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't really see how this supposed to work. For example, in the date field above I would expect that I can bulk add dates, but instead it seems that I need to add manually @type and also @id, which doesn't really makes sense in this case. What is the use case for this Bulk add feature?
It should not be visible when there's only primitives available. Thanks for picking that up.
It only makes sense for adding a set of entities (e.g. a set of people) where the user wants to add name and @id without having to navigate to back and forth within describo.
Just one more idea. My guess is that Bulk add will be a rather niche feature not used by many RO-Crate authors (only by advanced users), however this button will appear for every entity type. What do you think about using a combined button like this?
I went down that path initially but then decided against it because it felt like a lot of overhead for it. It also meant that it would be attached to every entity type.
The use case came from trying to create a dataset of tklabels (https://localcontexts.org/labels/traditional-knowledge-labels/). There are 20 entries and it was a lot of stuffing around creating them one by one. In this use case I created a profile to attach TKLabel entities via hasPart so the extra toggle would have been on CreativeWork, URL, Dataset, File and TKLabel. That's why I did it this way - one extra button to bulk add and the existing buttons just work as they do.
With two clicks the user opens the dialog and selects the type they want to add.
I did think that maybe it should be a config option on the component so that it could actually just be disabled. What do you think?
I can see where this is useful. A Profile input configuration would make sense, I totally agree, as in case of most entities I don't feel that bulk addition is ever necessary.
Activity
beepsoft commentedon Oct 23, 2024
Hi Marco,
I see you added
Bulk add:I can't really see how this supposed to work. For example, in the
datefield above I would expect that I can bulk add dates, but instead it seems that I need to add manually @type and also @id, which doesn't really makes sense in this case. What is the use case for thisBulk addfeature?marcolarosa commentedon Oct 23, 2024
It should not be visible when there's only primitives available. Thanks for picking that up.
It only makes sense for adding a set of entities (e.g. a set of people) where the user wants to add name and @id without having to navigate to back and forth within describo.
https://github.com/describo/crate-builder-component/releases/tag/v0.79.2 fixes this
beepsoft commentedon Oct 24, 2024
Thanks for the fix, I just published 0.79.2.
beepsoft commentedon Oct 24, 2024
Just one more idea. My guess is that
Bulk addwill be a rather niche feature not used by many RO-Crate authors (only by advanced users), however this button will appear for every entity type. What do you think about using a combined button like this?This is the second example here: https://element-plus.org/en-US/component/dropdown#triggering-element
The normal button click would add/search the entity as usual and the dropdown would offer the
Bulk addfeature.Something like this.
marcolarosa commentedon Oct 24, 2024
I went down that path initially but then decided against it because it felt like a lot of overhead for it. It also meant that it would be attached to every entity type.
The use case came from trying to create a dataset of tklabels (https://localcontexts.org/labels/traditional-knowledge-labels/). There are 20 entries and it was a lot of stuffing around creating them one by one. In this use case I created a profile to attach TKLabel entities via hasPart so the extra toggle would have been on CreativeWork, URL, Dataset, File and TKLabel. That's why I did it this way - one extra button to bulk add and the existing buttons just work as they do.
With two clicks the user opens the dialog and selects the type they want to add.
I did think that maybe it should be a config option on the component so that it could actually just be disabled. What do you think?
beepsoft commentedon Oct 24, 2024
I can see where this is useful. A Profile input configuration would make sense, I totally agree, as in case of most entities I don't feel that bulk addition is ever necessary.