-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version tracking #11
Labels
Comments
Here is similar issue in Navigator: ARK-Builders/ARK-Navigator#40 |
Attached bounty: https://gitcoin.co/issue/29633 |
Payout for prototype of this feature: https://etherscan.io/tx/0xa9df96496280e01b5221aed96e2ff858b8ecb0f1861ccd6e1c75de055e4fda3a |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When we modify a note, its
ResourceId
changes as well. This is expected since we use content-addressing. In order to provide proper UX, we need to track versions of the same note and present them to user as a single note. We also need UI elements to present older versions to user ("timeback machine"). User should be able to view or remove unwanted versions. Forking older versions into another note is separate feature.Version storage must be stored in
.ark/versions
file and should look approximately like this:Each entry of the file is a pair of
ResourceId
s, left id is parent and right id is child.This feature needs a button to invoke list of versions, or "timeback machine", for any note. Each version must have a button to see its content (read-only mode), to remove it and to fork it (separate issue).
When we remove a version, we must keep the history unbroken.
Suppose, we have entries like this in storage:
If we want to remove
7705444
version, then we must replace these 2 entries with new entry:The text was updated successfully, but these errors were encountered: