Skip to content

Implement Tab/Pane Management UI (Phases 4-8) #206

Closed

Description

@malibio

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)

Phase 5-8: Advanced Features (MEDIUM-LOW PRIORITY)

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:

  1. Start Here: Implement nodespace:// Link Navigation with Dynamic Tab Creation #297 (Link Navigation) - Foundation for all tab workflows
  2. Follow Up: Tab UI Controls: Hover-to-Show Close Button #298 (Tab Controls) - Essential UI controls
  3. Nice to Have: Tab State Persistence (localStorage/Tauri) #299 (Persistence), Split-Pane Layout System #300 (Split-Pane)
  4. Polish: Viewer Coordination: Focus, Scroll, and Cursor Management #301-304 (Advanced features)

Dependencies

Related Issues

Activity

  1. malibio commented on Dec 5, 2025

    @malibio
    CollaboratorAuthor

    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:

    • tab-system.svelte
    • pane-manager.svelte
    • navigation.ts store
    • layout-persistence-service.ts
    • Link navigation working

    Closing this epic tracker - remaining work in #302, #303, #304.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions