Open felixgirault opened 2 years ago
A good architecture could be to decouple the tree definition from the actual data. It is almost the case but it should be enhanced a little more. Snapshots would be a stack of tree definitions, and the topmost item would be derived to get the actual data (colors and names).
Save snapshots of the current state every time the user is idle for a moment. This would prevent data loss on accidental page refresh, and allow building an undo feature easily.