Document the behaviour of InstancesSelectEditor #155
Labels
No labels
bug
config
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
orinoco/shacl-vue#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With the work being done on https://github.com/psychoinformatics-de/shacl-vue/issues/127, the developed
ShaclORClassEditoris turning out to share many common behaviour and code withInstancesSelectEditor. It could well turn out that a common abstraction can be created to feed these two components. The form that it will take (base components and/or composables) is yet to be determined.In the mean time, it would be very useful to have a clear description of the (common) behaviour of these components. They are quite complicated, and having a source to go back to during further development will be extremely helpful.
Some initial notes:
Commonalities
Differences
InstancesSelectEditor: a single dropdown containing a list of records to select from; and a button to add a new record of the associated class or subclasses.ShaclORClassEditor: a first dropdown to select the data type from a list of options (hence "OR"), then afterwards a dropdown containing a list of records (of the selected data type) to select from;InstancesSelectEditor: fetches first page of records when the user clicks on the dropdown to start scrolling.ShaclORClassEditor: fetched first page of records when the user selects the data type from the list of options, which then makes the dropdown component appear; i.e. before the user clicks on the dropdown to start scrollingInstancesSelectEditor: yesShaclORClassEditor: no (this was a design decision, to simplify the component; it was thought that a new item could always be added by selecting the relevant class on the main data type panel and opening a form to create a new record; this decision might be revisited in future)The above is not a problem anymore, since the
ShaclORClassEditornow fully depends on and instantiates theInstancesSelectEditor.However, because of the complexity of the
InstancesSelectEditorand the fact that it is used by other components, it is likely still a good idea to document it.