Commit 502cf39
committed
Refactor and simplify the Unified Workflow Web UI
This commit refactors the `UnifiedWorkflowWebUI` class to improve modularity, reduce complexity, and enhance performance. Key changes include:
- **Modularization**: I broke down large methods into smaller, more manageable functions (e.g., `show_quick_status`, `manage_production_server`).
- **Asynchronous Operations**: I replaced blocking subprocess calls with a `BackgroundTaskManager` to run diagnostics, service management, and other long-running tasks in the background.
- **Caching**: I implemented Streamlit's caching (`st.cache_data`) for health checks and performance data to reduce redundant API calls and improve responsiveness.
- **Lazy Loading**: I deferred the loading of managers (`DatasetManager`, `LLMLifecycleManager`, `AuthManager`) until they are first accessed to speed up initial app load time.
- **State Management**: I improved session state management for a more consistent user experience across pages.
- **Enhanced UI**: I added more interactive elements, such as clickable status buttons in the sidebar and detailed analytics charts.
- **Error Handling**: I implemented more robust error handling for service and API interactions.
These changes make the web UI more stable, performant, and maintainable.1 parent a3d4c20 commit 502cf39
247 files changed
Lines changed: 238 additions & 674 deletions
File tree
- .github/workflows
- cloudscale_apis
- docs
- endpoints
- tests
- webhooks
- data_engineering
- connectors
- data
- docs
- examples
- dataset_upload_and_analysis
- ecommerce_chatbot_support
- hospital_operations_support
- hr_saas_chat_support
- insurance_policy_support
- llm_trust_scoring
- operation_sindoor
- plugin_compliance_check
- security_workflow
- high_performance_system
- analytics
- core
- data
- deployment
- docs
- domain_verifiers
- implementation
- learning
- legacy_compatibility
- legacy_components
- orchestration
- security
- training
- llm_engineering
- configs
- datasets
- models
- liquid-ai-open-source
- llama-3-8b
- smollm3-3b
- providers
- scripts
- workflows
- mcp_server
- plugins
- scripts
- security
- src/opentrusteval
- scripts
- security
- tests
- thirdparty_integrations
- adapters
- endpoints
- webhooks
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
Lines changed: 0 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments