From ac44b52b8bbc18e74063691f20fa22e0646fdbc3 Mon Sep 17 00:00:00 2001 From: DiTus Date: Wed, 25 Feb 2026 22:46:03 +0100 Subject: [PATCH] Fix CSS import and add debug logging for indicator panel - Changed @import style to proper tag for indicators-new.css - Added console logging to initIndicatorPanel for debugging - Added console logging to renderIndicatorPanel to show filter results - This should help diagnose empty panel issue --- src/api/dashboard/static/index.html | 4 +--- src/api/dashboard/static/js/ui/indicators-panel-new.js | 10 +++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) 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;