Repository navigation
Description
Problem Statement
With the shared node store architecture from #197 in place, we now need to build the user-facing Tab/Pane Management UI that allows users to:
- Open multiple tabs showing different node collections
- Navigate between tabs by clicking `nodespace://` links created by @mentions
- Split the view into side-by-side panes
- Navigate between tabs/panes efficiently
- Manage tab lifecycle (create, close, reorder)
- Persist tab state across sessions
This EPIC tracks Phases 4-8 from the original multi-tab architecture plan, focusing on UI components and user experience.
Status: Phase 3.5 COMPLETE ✅
IMPORTANT UPDATE: Phase 3.5 "Node Ownership Tracking" is ALREADY COMPLETE.
The ReactiveNodeService already implements proper multi-viewer support:
- ✅ Each service instance has a unique `viewerId` (line 44: `const viewerId = uuidv4();`)
- ✅ SharedNodeStore safely shares nodes across multiple viewers
- ✅ Multi-viewer architecture tested and working
- ✅ The temporary cleanup workaround has been removed (see lines 1641-1644 comment)
Reference Files:
- `/packages/desktop-app/src/lib/services/reactive-node-service.svelte.ts:44` - Unique viewer IDs
- `/packages/desktop-app/src/lib/services/shared-node-store.ts` - Multi-viewer safe store
- Lines 1641-1644 confirm multi-viewer support is working
What Already Exists
- ✅ `tab-system.svelte` - Basic tab bar component with keyboard navigation
- ✅ `navigation.ts` - Tab store with `setActiveTab()`, `closeTab()`, `addTab()`
- ✅ `app-shell.svelte` - Integrated tab system in layout
- ✅ Multi-viewer architecture (SharedNodeStore + ReactiveNodeService with unique viewerIds)
- ✅ Multiple viewers (DateNodeViewer, TaskNodeViewer, TextNodeViewer, AIChatNodeViewer)
- ✅ `nodespace://{node-uuid}` links created by @mention system
Sub-Issues
Phase 4: Core Tab Management (HIGH PRIORITY)
- Implement nodespace:// Link Navigation with Dynamic Tab Creation #297
- Tab UI Controls: Hover-to-Show Close Button #298
- Tab State Persistence (localStorage/Tauri) #299
- Split-Pane Layout System #300
Phase 5-8: Advanced Features (MEDIUM-LOW PRIORITY)
- Viewer Coordination: Focus, Scroll, and Cursor Management #301
- Memory & Performance Optimization for Multi-Tab System #302
- Advanced Conflict Resolution UI #303
- Advanced Keyboard Shortcuts & Visual Feedback #304
Architecture Overview
```
┌─────────────────────────────────────────────────────────────┐
│ Desktop Shell │
│ ┌────────────────────────────────────────────────────────┐ │
│ │ Tab Bar Component │ │
│ │ [Tab 1] [Tab 2] [Tab 3] [+] [Split] [Close] │ │
│ └────────────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────┬──────────────────────────────────┐│
│ │ Pane 1 │ Pane 2 (Optional Split) ││
│ │ ┌────────────────┐ │ ┌────────────────┐ ││
│ │ │ BaseNodeViewer │ │ │ BaseNodeViewer │ ││
│ │ │ (parentId: A) │ │ │ (parentId: B) │ ││
│ │ └────────────────┘ │ └────────────────┘ ││
│ └──────────────────────┴──────────────────────────────────┘│
└─────────────────────────────────────────────────────────────┘
│ │
└────────────┬───────────┘
▼
┌─────────────────────┐
│ Shared Node Store │
│ (From #197) │
│ ✅ Multi-viewer │
└─────────────────────┘
```
EPIC-Level Acceptance Criteria
Foundation (Phase 4):
- Clicking `nodespace://` links creates/switches tabs dynamically
- Tab UI has close buttons and add button
- Tab state persists across application restarts
- Split-pane support allows side-by-side viewers
Advanced (Phases 5-8):
- Focus management works correctly when switching tabs/panes
- No memory leaks when opening/closing many tabs
- Visual feedback for external updates and conflicts
- Full keyboard shortcut support (Cmd+1-9, Cmd+W, Cmd+T, etc.)
Performance:
- Tab switching is instant (<50ms)
- Opening/closing tabs is smooth (<100ms)
- Application remains responsive with 5+ tabs open
Implementation Order
Recommended sequence for agents:
- Start Here: Implement nodespace:// Link Navigation with Dynamic Tab Creation #297 (Link Navigation) - Foundation for all tab workflows
- Follow Up: Tab UI Controls: Hover-to-Show Close Button #298 (Tab Controls) - Essential UI controls
- Nice to Have: Tab State Persistence (localStorage/Tauri) #299 (Persistence), Split-Pane Layout System #300 (Split-Pane)
- Polish: Viewer Coordination: Focus, Scroll, and Cursor Management #301-304 (Advanced features)
Dependencies
- Refactor Node Service Architecture for Multi-Tab Support (Phases 1-3: Foundation) #197 (Shared Node Store Architecture) - ✅ COMPLETE
Related Issues
- Epic: ContentEditable Text Editing with Smart Markdown Conversion #54 (ContentEditable Epic) - Similar multi-phase epic pattern
Activity
Fix two critical bugs in BaseNodeViewer and add comprehensive tests
malibio commentedon Dec 5, 2025
Phase 4 is complete (sub-issues #297-301 done). Remaining advanced features (#302-304) are tracked as separate issues. The tab/pane management foundation is fully implemented:
Closing this epic tracker - remaining work in #302, #303, #304.
Fix two critical bugs in BaseNodeViewer and add comprehensive tests
Fix two critical bugs in BaseNodeViewer and add comprehensive tests
Fix two critical bugs in BaseNodeViewer and add comprehensive tests