Repository navigation
Real Time UI Implementation
This implementation provides a comprehensive real-time UI for the SolaceCore actor system using JetBrains' Compose Multiplatform. The UI follows a declarative approach and enables real-time monitoring and interaction with the actor system across multiple platforms (Desktop and Web).
The main dashboard provides a comprehensive view of the entire actor system:
- System Overview Cards: Display total actors, running actors, error actors, and system-wide metrics
- Live Metrics: Real-time updates of message throughput, average response times, and system uptime
- Visual Indicators: Color-coded cards and status indicators for immediate system health assessment
Each actor is displayed with detailed real-time information:
-
Actor State Badges: Color-coded status indicators
- 🟢 Running (Green): Actor is actively processing
- 🔴 Error (Red): Actor encountered an error
- 🟠 Paused (Orange): Actor is temporarily paused
- 🔵 Initialized (Blue): Actor is ready but not started
- ⚫ Stopped (Gray): Actor has been stopped
-
Real-Time Metrics:
- Messages received, processed, and failed
- Success rate percentage
- Average and last processing times
- Port-specific and priority-based metrics
- Start/Stop Monitoring: Toggle real-time updates on/off
- Manual Refresh: Force immediate data update
- Connection Status: Visual indicator showing real-time connection state
RealTimeActorService -> StateFlow -> UI Components -> Auto-Updates- Uses Kotlin Coroutines and StateFlow for reactive updates
- 1-second refresh interval for live data
- Efficient state management with minimal re-compositions
- Desktop (JVM): Full Material3 components with native performance
- Web (JS): HTML DOM integration with Compose for Web
-
Shared Logic: Common business logic in
commonMainsource set
SolaceRealTimeUI (Main App)
├── SystemMetricsDashboard (System Overview)
├── MonitoringControlPanel (Interactive Controls)
└── ActorListView (Actor Details)
└── ActorItemView (Individual Actor Cards)
├── ActorStatusBadge (State Indicator)
└── ActorMetricsView (Live Metrics)
Represents UI-optimized actor information:
- ID, name, and current state
- Last update timestamp
- Comprehensive metrics data
System-wide statistics:
- Actor counts by state
- Total message throughput
- Average response times
- System uptime
Core service providing:
- Live data streaming via StateFlow
- Configurable update intervals
- Start/stop monitoring controls
- Future integration points for actual actor system
The current implementation includes simulation data and is designed for easy integration with the actual SolaceCore actor system:
-
Supervisor Integration:
RealTimeActorServicecan be extended to connect withSupervisorActor -
Actor Metrics: Direct integration with
ActorMetricsfrom the core system - State Synchronization: Real-time state updates from actual actors
- Control Interface: Send commands to actors through the UI
./gradlew :composeApp:desktopRun./gradlew :composeApp:webBrowserRun./gradlew :composeApp:compileKotlinDesktop
./gradlew :composeApp:compileKotlinWeb- Launch Application: Real-time monitoring starts automatically
- System Dashboard: View system-wide health and metrics
- Actor List: Monitor individual actor states and performance
- Interactive Controls: Start/stop monitoring or force refresh
- Real-Time Updates: All components update every second with live data
- Framework: Compose Multiplatform 1.7.0
- Language: Kotlin 2.0.21 with coroutines
- UI Library: Material3 design system
- Reactive Updates: StateFlow and collectAsState
- Data Simulation: Realistic actor metrics for demonstration
- Cross-Platform: Shared business logic, platform-specific rendering
This implementation fulfills the requirement for a "declarative UI framework for creating shared user interfaces" that "allows developers to write UI code once and deploy it to multiple targets, maintaining a consistent look and feel while enabling real-time UI updates."
SolaceCore SSOT wiki · published from wiki/ by .github/workflows/publish-wiki.yml · edit the source in the repo, not the wiki.
Orientation
- Architectural Deep Dive
- Architecture Overview
- Design vs Implementation
- Framework Actor System
- Framework Architectural Vision
- Framework Concurrency and Communication
- Framework Data Storage and Management
- Framework Deployment and Containerization
- Framework Development Roadmap
- Framework Hot-Pluggable System
- Framework Implementation Status
- Framework Observability and Monitoring
- Framework Port System
- Framework System Architecture
- Framework Workflow Management
- Project Status
- Project Status Report
- Quick Status
- Solace Core Framework Architecture
- SolaceCore Architecture Overview
- Vision & Solace AI
Runtime
- Actor Builder
- Actor Communication Sequence Diagram
- Actor Core Definitions
- Actor Graph View
- Actor Metrics
- Actor Module Architecture
- Actor Queue Hibernation and Correlation
- Actor Roadmap
- Actor State Recovery Subsystem
- Actor State Serialization Subsystem
- Actor Supervision Module
- Actor System Architecture
- Actor System Class Diagram
- Actor Usage Examples
- Compose App Features
- JVM Scripting Implementations
- Kernel & Ports
- Kernel Channel System
- Kernel Future Enhancements
- Kernel Module Architecture
- Kernel Port Implementations and Exceptions
- Kernel Port Usage Example
- Kernel Testing Strategy
- Lifecycle Class Diagram
- Lifecycle Management Architecture
- Pipeline DSL
- Real-Time UI Implementation
- Scripting Module Architecture
- Scripting Module Design
- Scripting Supporting Components
- Shared Memory
- Storage & Persistence
- Storage Abstractions Architecture
- Storage Caching Subsystem
- Storage Checklist
- Storage Compression Subsystem
- Storage Core Interfaces
- Storage Encryption Subsystem
- Storage File-Based Architecture
- Storage File-Based Implementations
- Storage In-Memory Architecture
- Storage In-Memory Implementations
- Storage JVM Serialization Utilities
- Storage Module Architecture
- Storage Serialization Compression Encryption
- Storage Specialized Interfaces Architecture
- Storage Status and Future Plans
- Storage Testing
- Storage Thread Safety Guide
- Storage Thread Safety and Deadlock Prevention
- Storage Transactions
- Storage Usage Examples
- Supervisor and Hot Swap
- SupervisorActor
- System Architecture Diagram
- Workflow Management Architecture
- Workflow Management Design Concept
- Workflow Orchestration
Solace AI
- Confusion Corrector
- Inference Cube
- Inference Cube Technical Architecture
- Long-Term Memory
- MCP and Tool Format
- Memory & Reflection
- Memory Compression
- Memory Feature Overview
- Memory Retrieval
- Mood & Emotional Model
- Mood Module Implementation
- Mouth Tool Technical Spec
- Multimodal Nudging
- Perception Actors
- Provider Specs
- Reflection Memory
- Solace AI Overview
- Supervisor AI
- Supervisor Emotional Model Integration
- Time Actor
- Voice & Mouth Tool
- Working Memory
- Zoom Level Technical Spec
- Zoom Levels
Reference
- Advanced Workflow Example
- Basic Actor Usage
- Build System and Dependencies
- Development Tooling and Practices
- Documentation Catalog
- Documentation Index
- Feature Index
- Glossary
- How the Wiki Publishes
- JVM Utilities
- Kotlin Implementation Details
- Kotlin-Aligned Architecture Overview
- Kotlin-Aligned Contributing
- Kotlin-Aligned Core Architectural Principles
- Kotlin-Aligned Daily Development Workflow
- Kotlin-Aligned Development Examples
- Kotlin-Aligned Development Workflow
- Kotlin-Aligned Documentation
- Kotlin-Aligned Implementation Status
- Kotlin-Aligned Key Concepts
- Kotlin-Aligned Known Issues
- Kotlin-Aligned Quick Start
- Kotlin-Aligned Running the System
- Kotlin-Aligned System Architecture
- LangChain Actor Code Changes
- LangChain Actor Usage Improvements
- LangChain ActorInterface Code Changes
- LangChain Best Practices
- LangChain Bugs
- LangChain Chain Implementation
- LangChain Code Changes
- LangChain Code Changes Rollout and Impact
- LangChain Configuration Management Improvements
- LangChain Configuration Recommendations
- LangChain Core Architecture Recommendations
- LangChain Directory Structure Changes
- LangChain Documentation Improvements
- LangChain Dynamic Wiring Rollout Notes
- LangChain Fix Proposal
- LangChain Implementation Priorities
- LangChain Lifecycle Management Improvements
- LangChain Memory Integration Recommendations
- LangChain Metrics and Observability Recommendations
- LangChain Migration Strategy
- LangChain New Files Needed
- LangChain New Packages to Add
- LangChain Package-by-Package Improvements
- LangChain Patterns
- LangChain Port Code Changes
- LangChain Port System Recommendations
- LangChain Port Usability Improvements
- LangChain Prompt Management Recommendations
- LangChain Recommendations
- LangChain Recommendations Rollout Plan
- LangChain Required Interface Changes
- LangChain Testing Changes
- LangChain Testing Improvements
- LangChain Testing Recommendations
- LangChain Tool Integration Recommendations
- LangChain Type-Safe Dynamic Wiring
- LangChain Type-Safe Dynamic Wiring System
- LangChain Usage Design Improvements
- Master Checklist
- Roadmap
- Roadmap Issues
- Roadmap Phase 1 Stability and Testing
- Roadmap Phase 2 Production Infrastructure
- Roadmap Phase 3 Documentation and Developer Experience
- Roadmap Phase 4 Graph Database Integration
- Roadmap Phase 5 Security Framework
- Roadmap Phase 6 Distributed System
- Roadmap Phase 7 Advanced Features
- Roadmap Phase 8 Ecosystem Development
- Roadmap Timeline and Success Metrics
- Setup Instructions
- Sketch Architecture
- Status Documentation
- Task 1 Core Tests
- Task 2 Connection Wiring
- Task 3 Concurrency Issues
- Task 4 Dynamic Registration
- Task 5 Integration Tests
- Task 6 Deadlock Detection
- Task Documentation
- Test Coverage Checklist
- Testing Strategy