refactor: change to a fork-graph system #2
Labels
No labels
bug
duplicate
enhancement
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
aziis98/diagram-to-tikz#2
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?
In this new model a node holds the latex source of the diagram (hashable so the compilation of the artifacts can be cached).
An edge is a modification either by an LLM or by the user and the edge holds the summary of the update (commit message?). So a user updating a diagram is a walk on this graph and the full walked path is called a chain.
The chain is shareable and holds all history. To get cached previews correct on boh telegram or other socials we need to not only share the
uuidof the chain but also of the current node so the proposal is something like:If somebody shared a chain with an old hash then the UI will show a message like "this isn't the latest version of this diagram, go to the latest version instead".
This requires practically a full rewrite... A good thing would be to also add a nice summary or auto-generated description to diagrams for nice sharable links.