fix more structure for UI and classification

This commit is contained in:
larssand
2026-09-08 09:50:58 +02:00
parent 59ac227dfd
commit c3e482f9ab
2 changed files with 83 additions and 23 deletions

File diff suppressed because one or more lines are too long

View File

@@ -94,6 +94,30 @@ class DashboardTests(unittest.TestCase):
self.assertIn("openDetailIds", HTML) self.assertIn("openDetailIds", HTML)
self.assertIn("addEventListener('toggle'", HTML) self.assertIn("addEventListener('toggle'", HTML)
def test_dashboard_suggests_review_from_detector_history(self):
self.assertIn("label:'Suggested', render:suggestReview", HTML)
self.assertIn("likely false positive", HTML)
self.assertIn("likely worth confirming", HTML)
self.assertIn("not enough history", HTML)
def test_dashboard_secondary_findings_panels_are_collapsible(self):
self.assertIn('<summary>Related Activity Across Sources</summary>', HTML)
self.assertIn('<summary>Block Candidates</summary>', HTML)
self.assertIn('<summary>Threat Intelligence</summary>', HTML)
self.assertIn('<summary>Policy Findings</summary>', HTML)
self.assertIn('id="relatedActivity"', HTML)
def test_dashboard_diagnostics_sections_are_collapsible(self):
self.assertIn("collapsibleSection('stream-coverage'", HTML)
self.assertIn("collapsibleSection('top-services'", HTML)
self.assertIn("class=\"collapsible-section\"", HTML)
self.assertIn("diag-stream-coverage", HTML)
def test_dashboard_table_scroll_position_survives_refresh(self):
self.assertIn("tableScrollLeft", HTML)
self.assertIn("data-table-id", HTML)
self.assertIn("addEventListener('scroll'", HTML)
def test_dashboard_has_bulk_review_bar(self): def test_dashboard_has_bulk_review_bar(self):
self.assertIn('id="bulkReviewBar"', HTML) self.assertIn('id="bulkReviewBar"', HTML)
self.assertIn('id="selectAllDeviations"', HTML) self.assertIn('id="selectAllDeviations"', HTML)