How unisonweb/ucm-desktop works
Main Components
a) Frontend Layer:
• Elm Application Core
• TypeScript Integration Layer
• UI Components (Split Pane, Command Palette, Workspace)
• CSS Styling System
b) Backend/Desktop Layer:
• Tauri Runtime
• Native System Integration
• IPC (Inter-Process Communication)
c) External Components:
• UCM CLI Service
• File System Integration
┌─────────────────────────────────────────────┐
• UI Layer │
• ┌─────────┐ ┌──────────┐ ┌──────────────┐ │
• Workspace│ │Command │ │Settings & │ │
• Manager │ │Palette │ │Configuration │ │
• ┘ └──────────┘ └──────────────┘ │
• ┤
• Application Core │
• ┌─────────┐ ┌──────────┐ ┌──────────────┐ │
• Elm │ │TypeScript│ │Window │ │
• Modules │ │Bridge │ │Management │ │
• ┘ └──────────┘ └──────────────┘ │
• ┤
• Desktop Integration │
• ┌─────────┐ ┌──────────┐ ┌──────────────┐ │
• Tauri │ │Native │ │UCM CLI │ │
• Runtime │ │APIs │ │Communication │ │
• ┘ └──────────┘ └──────────────┘ │
• ┘
Component Relationships
• Bidirectional communication between Elm and TypeScript
• Tauri's communication with native system
• Frontend components' interaction with Application Core
• Desktop Integration layer's communication with UCM CLI
Important Details to Highlight
a) Frontend Architecture:
• Split Pane system for workspace management
• Command Palette for user interactions
• Workspace management system
• Theme support (Light/Dark modes)
b) Core Features:
• Project management
• Branch handling
• Workspace organization
• Command execution
c) System Integration:
• UCM CLI communication (Port 5858)
• Token-based authentication
• CORS configuration
• File system access
Technical Stack Indicators
Technology badges or labels for:
• Elm
• TypeScript
• Tauri
• UCM CLI
• CSS Modules