From 5047fee43133b07025648241ae6822347beddb07 Mon Sep 17 00:00:00 2001 From: Smittix Date: Fri, 16 Jan 2026 17:01:29 +0000 Subject: [PATCH] Simplify TSCM menu for better UX Redesign the sidebar to be more minimal with collapsible sections for Settings and Advanced options. Primary sweep action is now prominently displayed, with tool buttons condensed to compact icons. Co-Authored-By: Claude Opus 4.5 --- static/css/modes/tscm.css | 45 +++++ templates/index.html | 17 ++ templates/partials/modes/tscm.html | 260 +++++++++++++++-------------- 3 files changed, 194 insertions(+), 128 deletions(-) diff --git a/static/css/modes/tscm.css b/static/css/modes/tscm.css index 550672e..b6b7e91 100644 --- a/static/css/modes/tscm.css +++ b/static/css/modes/tscm.css @@ -1,5 +1,50 @@ /* TSCM Styles */ +/* TSCM Collapsible Sections */ +.tscm-collapsible { + padding: 0 !important; + overflow: hidden; +} +.tscm-collapsible-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 10px 12px; + cursor: pointer; + font-size: 12px; + font-weight: 600; + color: var(--text-secondary); + transition: background 0.2s; +} +.tscm-collapsible-header:hover { + background: rgba(255, 255, 255, 0.03); +} +.tscm-collapse-icon { + font-size: 14px; + font-weight: 400; + color: var(--text-muted); + transition: transform 0.2s; +} +.tscm-collapsible-content { + padding: 0 12px 12px 12px; +} +.tscm-collapsible.expanded .tscm-collapse-icon { + transform: rotate(45deg); +} + +/* TSCM Tool Buttons */ +.tscm-tool-btn { + flex: 1; + display: flex; + align-items: center; + justify-content: center; + padding: 8px; + min-width: 0; +} +.tscm-tool-btn:hover { + background: rgba(74, 158, 255, 0.15); +} + /* TSCM Threat Cards */ .threat-card { display: flex; diff --git a/templates/index.html b/templates/index.html index e2b1a14..e7b66b8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7530,6 +7530,23 @@ } } + // TSCM collapsible section toggle + function toggleTscmSection(contentId) { + const content = document.getElementById(contentId); + const icon = document.getElementById(contentId + 'Icon'); + const section = content.closest('.tscm-collapsible'); + + if (content.style.display === 'none') { + content.style.display = 'block'; + icon.textContent = '-'; + section.classList.add('expanded'); + } else { + content.style.display = 'none'; + icon.textContent = '+'; + section.classList.remove('expanded'); + } + } + async function startTscmSweep() { const sweepType = document.getElementById('tscmSweepType').value; const baselineId = document.getElementById('tscmBaselineSelect').value || null; diff --git a/templates/partials/modes/tscm.html b/templates/partials/modes/tscm.html index 8ee6071..313d1c4 100644 --- a/templates/partials/modes/tscm.html +++ b/templates/partials/modes/tscm.html @@ -1,137 +1,25 @@
+
-

TSCM Sweep Alpha

-
- - +
+

TSCM Sweep

+ Alpha
-
- - -
-
- -
-

Scan Sources

-
-
- - -
- -
-
-
- - -
- -
-
-
- - -
- -
- -
- -
-

Baseline Management

-
- -
- - -
-
- - - - - - -
-

Meeting Window

-
- No active meeting -
-
- -
- - -
- Devices detected during meetings get flagged -
-
- - -
-

Quick Actions

-
- - - - -
-
- - - @@ -156,6 +44,122 @@
+ + + + + + + +
+
+ Settings + + +
+ +
+ + +
+
+ Advanced + + +
+ +
+ + +
+ + + + +
+