This repository was archived by the owner on Apr 13, 2026. It is now read-only.
Add multi-tab graph pages with per-tab nodes/connections, context menu, and inline rename - #28
Merged
Merged
Conversation
…ization, and context menu Co-authored-by: lunarcloud <1565970+lunarcloud@users.noreply.github.com>
Owner
|
@copilot three notes:
|
Copilot
AI
changed the title
[WIP] Add tabs to graph for organizing nodes
Add multi-tab graph pages with per-tab nodes/connections, context menu, and inline rename
Mar 19, 2026
…t tab to Main Co-authored-by: lunarcloud <1565970+lunarcloud@users.noreply.github.com>
Author
Done in commit
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Adds a tab bar below the ribbon so nodes can be organized across named pages. Each tab owns independent node and connection collections. Tabs support right-click context menu (new tab to the right, rename, delete), inline rename that auto-activates on tab creation (commits on Enter/Escape/focus-loss), and a "+" button that sits immediately to the right of the last tab.
Architecture
TabViewModel— new VM holdingName,IsEditing,Nodes,Connectionsper tabMainWindowViewModel.Nodes/.Connections— now computed properties delegating toActiveTab;OnActiveTabChangedclears selection and notifies bindingsAddTabCommand,AddTabAfterCommand,DeleteTabCommand(last tab protected);NewGraphresets to a single"Main"tabAddTabandAddTabAftersetIsEditing = trueimmediately; aFocusActiveTabRenameBox()helper defers focus and select-all to the renameTextBoxafter Avalonia renders the new itemSerialization
New multi-tab JSON format via
TabDataDTO (title,nodes,layout,connections) nested under atabsarray. Legacy single-tab files (notabskey) deserialize into a single tab automatically.{ "tabs": [ { "title": "Main", "nodes": [...], "layout": {...}, "connections": [...] }, { "title": "Tab 1", "nodes": [...], "layout": {}, "connections": [] } ] }UI
Tab bar is a
ScrollViewerwrapping a horizontalStackPanelcontaining the tabListBoxfollowed directly by the "+" button, so the button always appears immediately after the last tab and scrolls with them. Each tab item's DataTemplate contains a read-modeTextBlockand an edit-modeTextBoxtoggled byIsEditing. Context menu actions dispatch toMainWindowViewModelcommands via code-behind handlers.Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.