mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
feat: Enhance Embedding Pool UI with sidebar summary
- Add renderEmbeddingPoolSidebar() for config summary display - Show status, target model, strategy, and provider stats - Improve visual hierarchy with icon indicators - Update sidebar rendering for embedding-pool tab 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -163,6 +163,16 @@ async function saveEmbeddingPoolConfig() {
|
||||
|
||||
// Reload the embedding pool section
|
||||
await renderEmbeddingPoolMainPanel();
|
||||
|
||||
// Update sidebar summary
|
||||
const sidebarContainer = document.querySelector('.api-settings-sidebar');
|
||||
if (sidebarContainer) {
|
||||
const contentArea = sidebarContainer.querySelector('.provider-list, .endpoints-list, .embedding-pool-sidebar-info, .embedding-pool-sidebar-summary, .cache-sidebar-info');
|
||||
if (contentArea && contentArea.parentElement) {
|
||||
contentArea.parentElement.innerHTML = renderEmbeddingPoolSidebar();
|
||||
if (window.lucide) lucide.createIcons();
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
console.error('Failed to save embedding pool config:', err);
|
||||
@@ -2729,6 +2739,16 @@ async function onTargetModelChange(modelId) {
|
||||
// Discover providers for this model
|
||||
await discoverProvidersForTargetModel(modelId);
|
||||
renderDiscoveredProviders();
|
||||
|
||||
// Update sidebar summary
|
||||
const sidebarContainer = document.querySelector('.api-settings-sidebar');
|
||||
if (sidebarContainer) {
|
||||
const contentArea = sidebarContainer.querySelector('.provider-list, .endpoints-list, .embedding-pool-sidebar-info, .embedding-pool-sidebar-summary, .cache-sidebar-info');
|
||||
if (contentArea && contentArea.parentElement) {
|
||||
contentArea.parentElement.innerHTML = renderEmbeddingPoolSidebar();
|
||||
if (window.lucide) lucide.createIcons();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user