Add multi-tab support to SystemPortal with dockview integration #682
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.
This PR implements comprehensive multi-tab support for the SystemPortal, allowing users to open and work with multiple tags simultaneously in a professional tabbed interface. The implementation uses the dockview library to provide modern tab management with docking capabilities while maintaining full backward compatibility.
Key Features
Multi-Tab Interface: Users can now open multiple tags in separate tabs within the same SystemPortal. Tags can be opened in new tabs by right-clicking and selecting "Open in New Tab", or through the new test button for demonstration purposes.
Professional UI: Integration with dockview provides a modern, professional tabbed interface with drag-and-drop support and docking capabilities, similar to VS Code or other modern IDEs.
Smart Tab Management: The system prevents duplicate tabs by switching to existing tabs when the same bot/tag combination is selected. Tab state is properly managed with active tab tracking and cleanup on tab closure.
Primary Tab Synchronization: The first tab (or explicitly designated primary tab) remains synchronized with the existing
systemPortalBot
andsystemPortalTag
tags, ensuring backward compatibility with existing workflows and scripts.Technical Implementation
The implementation extends the existing SystemPortal architecture across three key components:
SystemPortalCoordinator - Added comprehensive tab management logic with new interfaces
SystemPortalEditorTab
andSystemPortalTabsUpdate
, plus methods for creating, closing, and switching tabs.SystemPortal Vue Component - Enhanced with dockview container integration, conditional rendering for multi-tab vs single-editor modes, and context menu support.
SystemPortal TypeScript - Added dockview initialization, tab rendering with detailed information display, and event handling for tab operations.
Backward Compatibility
Full backward compatibility is maintained:
Usage
The implementation provides a solid foundation for future enhancements like real TagValueEditor integration within tabs, tab persistence, and advanced docking layouts.
Fixes #615.
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:
checkpoint.prisma.io
If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.