juno
juno copied to clipboard
Edit datastore entry in the console
Feature
In Juno's console, if collections are not set to "private," developers have the ability to list and browse objects persisted on the chain. Additionally, they can delete entries. However, they currently lack the capability to manually edit these entries.
The objective of this feature is to introduce an "Edit" function that allows developers to modify content.
UX
A document can contains lots of data (up to roughly 2mb), and the number of fields may vary significantly - that is, their length is not fixed. We might consider imposing a limit on this function; for instance, a document with a depth of X can be edited, but if the depth exceeds this limit, we could offer a "download/upload JSON" feature instead.
For the same reason, we might want to display the edit feature in a modal rather than within the same browser pane, let me know what you think.
Persisting data on the chain could present challenges, so our initial focus should be on the UI/UX aspect. Addressing the actual on-chain update will be a separate task.
Pre-work
It's important to note that the sole objective of this feature request is to implement an "Edit" feature. There was a prior attempt to introduce a "Create new document" feature, but it was not completed. The impediment was related to permissions. When a document is created in a satellite, it becomes associated with the user who created it. Consequently, an admin developer is unable to create documents in the administration for a user due to technical and security constraints.