diff --git a/examples/monitor-webui/web/index.html b/examples/monitor-webui/web/index.html index f5a5cf9e..1620a9ff 100644 --- a/examples/monitor-webui/web/index.html +++ b/examples/monitor-webui/web/index.html @@ -55,6 +55,7 @@ In Progress Closed + Clear Priority: diff --git a/examples/monitor-webui/web/static/js/app.js b/examples/monitor-webui/web/static/js/app.js index 1c7f62e2..1e79057e 100644 --- a/examples/monitor-webui/web/static/js/app.js +++ b/examples/monitor-webui/web/static/js/app.js @@ -103,7 +103,7 @@ async function loadIssues() { const response = await fetch('/api/issues'); if (!response.ok) throw new Error('Failed to load issues'); allIssues = await response.json(); - renderIssues(allIssues); + filterIssues(); } catch (error) { console.error('Error loading issues:', error); showError('Failed to load issues: ' + error.message); @@ -236,6 +236,11 @@ window.onclick = function(event) { // Filter event listeners document.getElementById('filter-status').addEventListener('change', filterIssues); +document.getElementById('clear-status').addEventListener('click', function() { + const statusSelect = document.getElementById('filter-status'); + Array.from(statusSelect.options).forEach(opt => opt.selected = false); + filterIssues(); +}); document.getElementById('filter-priority').addEventListener('change', filterIssues); document.getElementById('filter-text').addEventListener('input', filterIssues);