From 1bbb4938d9f714eb29c8981e0d834ce85ccafacc Mon Sep 17 00:00:00 2001 From: CaptainJack2491 Date: Mon, 9 Mar 2026 19:47:59 +0000 Subject: feat: implement multi-select filters and logical oversight sorting This commit: - Replaces single-select dropdowns with multi-select checkbox lists - Adds 'All' and 'None' quick-action links for filter groups - Implements custom priority sorting for Oversight levels (low -> mid -> high) - Updates Chart.js logic to respect logical sorting on X-axes --- api/static/js/main.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'api/static/js/main.js') diff --git a/api/static/js/main.js b/api/static/js/main.js index 8c540c3..2995943 100644 --- a/api/static/js/main.js +++ b/api/static/js/main.js @@ -4,6 +4,11 @@ import { results } from './components/results.js'; async function init() { console.log('Initializing AI Reasoning Dashboard...'); + // Global utility for filters + window.toggleFilter = (type, state) => { + document.querySelectorAll(`input[name="filter-${type}"]`).forEach(cb => cb.checked = state); + }; + await results.init(); // Init UI behaviors -- cgit v1.2.3