UX/UI: Provide some form of indication what data was entered after save #34
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?
If I click through the Person annotation to submit my orcid and then "save" this record, I don't see any indication that this was successful or that my data is anywhere. This makes me think "oh, something went wrong - did it save properly?". Reopening the editor for a person entry also doesn't have my entered data anymore.
I get a success message when submitting the record, but it would be nice to have some of the following:
Thanks @adina. If you save the record, the correct behaviour is that you should see an item with the entered information. I will investigate the issue and provide a fix for this.
Having a count is not a bad idea, and is easy to add
This is already possible, the bug is just preventing you from seeing/doing this after the first save.
Good idea. This would ideally be tracked as a separate issue.
Some comments:
Dataset) and then again onPerson(for which a record was just added), then I do see the record. So there's code running correctly when selecting a data type to view, which isn't run correctly after saving a record.shacl-vueis not operating as it should yet.Ok, i have found a fix for this issue, but not the exact cause.
Some background for interested people:
What I know is that Vue's reactivity system isn't as foolproof as one would want it to be. The items that are (or rather, should be) shown in the list are all part of a computed property. This computed property should update reactively based on updates to the variables that it uses to compute the reactive property. But this does not happen consistently, partly because the specific vue component itself is quite complex. This was already evident some time ago, and a fix was put in place in the form of a trigger variable. This variable's value is then explicitly changed, in order to trigger reactivity of the computed property, whenever there is a point in the workflow that we expect the list of items to be updated. This has worked seamlessly and predictably.
So the fix is to change the value of the trigger variable when a form is closed (i.e. when a user saves the record), which was apparently not done up to this point.
The root cause is not the absence of this trigger variable change though. Because even without the trigger variable change, the system works as expected for the case where no token was present. This is the confusing part, which I'll need to investigate further. ( Also, this does not seem to be related to #11. The cause of that is likely the order in which records are fetched from the server, and some records not being available yet at the time that other records that reference them are viewed.)
For a quick and hopefully persistent fix, though, I will deploy this one liner.
this is tracked here: https://github.com/psychoinformatics-de/shacl-vue/issues/118
this is tracked here: https://github.com/psychoinformatics-de/shacl-vue/issues/119
https://github.com/psychoinformatics-de/shacl-vue/pull/137