diff --git a/src/api/dashboard/static/index.html b/src/api/dashboard/static/index.html index 4789842..ae75369 100644 --- a/src/api/dashboard/static/index.html +++ b/src/api/dashboard/static/index.html @@ -1276,9 +1276,7 @@ } } - +
diff --git a/src/api/dashboard/static/js/ui/indicators-panel-new.js b/src/api/dashboard/static/js/ui/indicators-panel-new.js index dc27f5d..d4843e8 100644 --- a/src/api/dashboard/static/js/ui/indicators-panel-new.js +++ b/src/api/dashboard/static/js/ui/indicators-panel-new.js @@ -32,8 +32,10 @@ const LINE_TYPES = ['solid', 'dotted', 'dashed']; // Initialize export function initIndicatorPanel() { + console.log('[IndicatorPanel] Initializing...'); renderIndicatorPanel(); setupEventListeners(); + console.log('[IndicatorPanel] Initialized'); } function getDefaultColor(index) { @@ -97,10 +99,16 @@ export function setActiveIndicators(indicators) { // Render main panel export function renderIndicatorPanel() { const container = document.getElementById('indicatorPanel'); - if (!container) return; + if (!container) { + console.error('[IndicatorPanel] Container #indicatorPanel not found!'); + return; + } + + console.log('[IndicatorPanel] Rendering panel, searchQuery:', searchQuery, 'selectedCategory:', selectedCategory); const available = getAvailableIndicators(); const catalog = available.filter(ind => { + console.log("[IndicatorPanel] Total indicators:", available.length, "Filtered to:", catalog.length); if (searchQuery && !ind.name.toLowerCase().includes(searchQuery.toLowerCase())) return false; if (selectedCategory === 'all') return true; if (selectedCategory === 'favorites') return false;