Document form state management #246
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#246
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?
Recent experience with several issues:
has brought to light that the way in which
shacl-vuemanages form state, and related to that graph-vs-form-data state, is complex (likely much more than it needs to be) and largely undocumented.In order to make future contributions/debugging easier, this whole design should be documented. Ideally this process will also lead to some code refactoring to yield less complexity.
Questions that need to be answered by the documentation (that I can think of at the moment):
formData(fromshacl-tulip'sFormBase)?formDataused, and when is it unnecessary?formDatais saved to the graph store?formData?lastSavedNodeopenFormsopenForms[i].activatedInstancesSelectEditorsavedNodessubmittedNodesnodesToSubmitIdeaS:
openFormsand related functions (addForm,removeForm,formOpen, more?) to theuseFormcomposableopenForms?activatedInstancesSelectEditor, because a form could be opened from (also needs to be documented):ShaclVuemain component, create new itemInstancesSelectEditor"Add item"InstancesSelectEditoritem edit buttonNodeShapeVieweredit button