Org Tree Visual Editor with Drag-and-Drop#282
Draft
etiennechabert wants to merge 1 commit into
Draft
Conversation
f14e79c to
1e6bf72
Compare
Replace the YAML-only org tree editing with a visual editor inside the Data Management view. Nodes can be added, renamed, deleted, and dragged between parents (drop on a virtual folder to nest, drop between siblings to reorder). Unassigned owner-tag values appear in a side panel and can be dragged onto the tree. Tree mutations live in core/models/org-tree-edit.ts as pure helpers (insert / remove / move / append / paths) so they can be unit-tested without React. Wire-up: - New org-tree:save IPC handler that validates + writes the YAML and invalidates the cached tree. Reads reuse the existing config:org-tree channel. - saveOrgTree(tree) added to CostApi; the existing getOrgTree() returns the current tree. - Click-outside dismiss extracted to a shared hook (was duplicated in dimensions.tsx).
1e6bf72 to
2ff9561
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the YAML-only org tree editing with a visual editor inside the Data Management view.
useUnsavedChangesintegration so navigating away with a dirty tree prompts before discardingTree mutations live in
core/models/org-tree-edit.tsas pure helpers (insert / remove / move / append / paths equality), unit-tested without React.