From ff932a56f04c81c75b2cbb24d7b682222f0a8959 Mon Sep 17 00:00:00 2001 From: andersonid Date: Fri, 3 Oct 2025 08:56:45 -0300 Subject: [PATCH] fix: update loadWorkloadDetails to use PatternFly dropdown - Fix timeRange selection in loadWorkloadDetails function - Replace timeRangeSelect with timeRangeText from PatternFly dropdown - Add proper time range mapping for 1h, 6h, 24h, 7d, 30d - Fix Historical Analysis workload details loading with different time ranges --- app/static/index.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index 72c0ef8..ee36161 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -2575,8 +2575,17 @@ const container = document.getElementById(`details-content-${index}`); try { - // Get selected time range - const timeRange = document.getElementById('timeRangeSelect')?.value || '24h'; + // Get selected time range from PatternFly dropdown + const timeRangeText = document.getElementById('timeRangeText')?.textContent || 'Last 24 Hours'; + let timeRange = '24h'; // default + + switch(timeRangeText) { + case 'Last 1 Hour': timeRange = '1h'; break; + case 'Last 6 Hours': timeRange = '6h'; break; + case 'Last 24 Hours': timeRange = '24h'; break; + case 'Last 7 Days': timeRange = '7d'; break; + case 'Last 30 Days': timeRange = '30d'; break; + } container.innerHTML = `