Add TSCM advanced features UI

- Add meeting window controls (start/end tracked meetings)
- Add quick actions: capabilities, known devices, cases, playbooks
- Add export options for PDF and JSON/CSV reports
- Add JavaScript functions to connect UI to backend API endpoints
- Add CSS for capabilities grid, modal headers, playbook styles

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-16 16:20:47 +00:00
parent 234f254f4f
commit 6dbf2fda01
3 changed files with 1205 additions and 0 deletions

View File

@@ -723,3 +723,530 @@
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
/* Meeting Window Banner */
.tscm-meeting-banner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
margin-bottom: 12px;
background: linear-gradient(90deg, rgba(255, 51, 102, 0.2), rgba(255, 153, 51, 0.2));
border: 1px solid rgba(255, 51, 102, 0.5);
border-radius: 6px;
animation: meeting-glow 2s ease-in-out infinite;
}
@keyframes meeting-glow {
0%, 100% { box-shadow: 0 0 5px rgba(255, 51, 102, 0.3); }
50% { box-shadow: 0 0 15px rgba(255, 51, 102, 0.5); }
}
.meeting-indicator {
display: flex;
align-items: center;
gap: 8px;
}
.meeting-pulse {
width: 10px;
height: 10px;
background: #ff3366;
border-radius: 50%;
animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(1.2); }
}
.meeting-text {
font-size: 11px;
font-weight: 700;
letter-spacing: 1px;
color: #ff3366;
text-transform: uppercase;
}
.meeting-info {
font-size: 11px;
color: var(--text-secondary);
display: flex;
gap: 12px;
}
/* Capabilities Bar */
.tscm-capabilities-bar {
display: flex;
align-items: center;
gap: 16px;
padding: 8px 12px;
margin-bottom: 12px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color);
border-radius: 6px;
font-size: 11px;
}
.cap-item {
display: flex;
align-items: center;
gap: 4px;
}
.cap-icon {
font-size: 14px;
}
.cap-status {
color: var(--text-muted);
font-size: 10px;
text-transform: uppercase;
}
.cap-status.available { color: #00cc00; }
.cap-status.limited { color: #ffcc00; }
.cap-status.unavailable { color: #ff3333; }
.cap-limitations {
margin-left: auto;
display: flex;
align-items: center;
gap: 4px;
color: #ff9933;
font-size: 10px;
}
.cap-warn {
font-size: 12px;
}
/* Baseline Health Indicator */
.tscm-baseline-health {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
margin-bottom: 12px;
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
font-size: 11px;
}
.health-label {
color: var(--text-muted);
}
.health-name {
color: var(--text-primary);
font-weight: 600;
}
.health-badge {
padding: 2px 8px;
border-radius: 10px;
font-size: 9px;
font-weight: 600;
text-transform: uppercase;
}
.health-badge.healthy {
background: rgba(0, 204, 0, 0.2);
color: #00cc00;
}
.health-badge.noisy {
background: rgba(255, 204, 0, 0.2);
color: #ffcc00;
}
.health-badge.stale {
background: rgba(255, 51, 51, 0.2);
color: #ff3333;
}
.health-age {
color: var(--text-muted);
font-size: 10px;
margin-left: auto;
}
/* Advanced Modal Styles */
.tscm-advanced-modal {
max-width: 600px;
}
.tscm-modal-header {
padding: 16px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.tscm-modal-header h3 {
margin: 0;
font-size: 16px;
}
.tscm-modal-body {
padding: 16px;
max-height: 60vh;
overflow-y: auto;
}
.tscm-modal-section {
margin-bottom: 16px;
}
.tscm-modal-section h4 {
margin: 0 0 8px 0;
font-size: 12px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Capabilities Detail */
.cap-detail-item {
padding: 10px;
margin-bottom: 8px;
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
border-left: 3px solid var(--border-color);
}
.cap-detail-item.available { border-left-color: #00cc00; }
.cap-detail-item.limited { border-left-color: #ffcc00; }
.cap-detail-item.unavailable { border-left-color: #ff3333; }
.cap-detail-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
}
.cap-detail-name {
font-weight: 600;
font-size: 12px;
}
.cap-detail-status {
font-size: 10px;
padding: 2px 6px;
border-radius: 3px;
}
.cap-detail-status.available { background: rgba(0, 204, 0, 0.2); color: #00cc00; }
.cap-detail-status.limited { background: rgba(255, 204, 0, 0.2); color: #ffcc00; }
.cap-detail-status.unavailable { background: rgba(255, 51, 51, 0.2); color: #ff3333; }
.cap-detail-limits {
font-size: 10px;
color: var(--text-muted);
margin-top: 4px;
}
.cap-detail-limits li {
margin-bottom: 2px;
}
/* Known Devices List */
.known-device-item {
padding: 10px;
margin-bottom: 6px;
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
border-left: 3px solid #00cc00;
display: flex;
justify-content: space-between;
align-items: center;
}
.known-device-info {
flex: 1;
}
.known-device-name {
font-weight: 600;
font-size: 12px;
}
.known-device-id {
font-size: 10px;
color: var(--text-muted);
font-family: 'JetBrains Mono', monospace;
}
.known-device-actions {
display: flex;
gap: 6px;
}
.known-device-btn {
padding: 4px 8px;
font-size: 10px;
border: none;
border-radius: 3px;
cursor: pointer;
}
.known-device-btn.remove {
background: rgba(255, 51, 51, 0.2);
color: #ff3333;
}
.known-device-btn.remove:hover {
background: rgba(255, 51, 51, 0.4);
}
/* Cases List */
.case-item {
padding: 12px;
margin-bottom: 8px;
background: rgba(0, 0, 0, 0.2);
border-radius: 6px;
border-left: 3px solid var(--primary-color);
cursor: pointer;
transition: background 0.2s;
}
.case-item:hover {
background: rgba(74, 158, 255, 0.1);
}
.case-item.priority-high { border-left-color: #ff3333; }
.case-item.priority-normal { border-left-color: #4a9eff; }
.case-item.priority-low { border-left-color: #00cc00; }
.case-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
}
.case-name {
font-weight: 600;
font-size: 13px;
}
.case-status {
font-size: 9px;
padding: 2px 6px;
border-radius: 3px;
text-transform: uppercase;
}
.case-status.open { background: rgba(0, 204, 0, 0.2); color: #00cc00; }
.case-status.closed { background: rgba(128, 128, 128, 0.2); color: #888; }
.case-meta {
font-size: 10px;
color: var(--text-muted);
display: flex;
gap: 12px;
}
/* Playbook Styles */
.playbook-item {
padding: 12px;
margin-bottom: 8px;
background: rgba(0, 0, 0, 0.2);
border-radius: 6px;
border-left: 3px solid #ff9933;
}
.playbook-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.playbook-title {
font-weight: 600;
font-size: 13px;
}
.playbook-risk {
font-size: 9px;
padding: 2px 6px;
border-radius: 3px;
text-transform: uppercase;
}
.playbook-risk.high_interest { background: rgba(255, 51, 51, 0.2); color: #ff3333; }
.playbook-risk.needs_review { background: rgba(255, 204, 0, 0.2); color: #ffcc00; }
.playbook-risk.informational { background: rgba(0, 204, 0, 0.2); color: #00cc00; }
.playbook-desc {
font-size: 11px;
color: var(--text-secondary);
margin-bottom: 8px;
}
.playbook-steps {
font-size: 11px;
}
.playbook-step {
padding: 6px 8px;
margin-bottom: 4px;
background: rgba(0, 0, 0, 0.2);
border-radius: 3px;
}
.playbook-step-num {
color: #ff9933;
font-weight: 600;
margin-right: 6px;
}
/* Timeline Styles */
.timeline-container {
padding: 12px;
background: rgba(0, 0, 0, 0.2);
border-radius: 6px;
}
.timeline-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.timeline-device-name {
font-weight: 600;
font-size: 14px;
}
.timeline-metrics {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
margin-bottom: 12px;
}
.timeline-metric {
padding: 8px;
background: rgba(0, 0, 0, 0.3);
border-radius: 4px;
text-align: center;
}
.timeline-metric-value {
font-size: 16px;
font-weight: 700;
color: var(--accent-cyan);
}
.timeline-metric-label {
font-size: 9px;
color: var(--text-muted);
text-transform: uppercase;
}
.timeline-chart {
height: 60px;
background: rgba(0, 0, 0, 0.3);
border-radius: 4px;
position: relative;
overflow: hidden;
}
.timeline-bar {
position: absolute;
bottom: 0;
width: 3px;
background: var(--accent-cyan);
border-radius: 2px 2px 0 0;
}
/* Proximity Badge */
.proximity-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 10px;
font-size: 10px;
font-weight: 600;
}
.proximity-badge.very_close {
background: rgba(255, 51, 51, 0.2);
color: #ff3333;
}
.proximity-badge.close {
background: rgba(255, 153, 51, 0.2);
color: #ff9933;
}
.proximity-badge.moderate {
background: rgba(255, 204, 0, 0.2);
color: #ffcc00;
}
.proximity-badge.far {
background: rgba(0, 204, 0, 0.2);
color: #00cc00;
}
/* Add to Known Device Button */
.add-known-btn {
padding: 4px 8px;
font-size: 10px;
background: rgba(0, 204, 0, 0.2);
color: #00cc00;
border: 1px solid rgba(0, 204, 0, 0.3);
border-radius: 3px;
cursor: pointer;
transition: all 0.2s;
}
.add-known-btn:hover {
background: rgba(0, 204, 0, 0.3);
}
/* Capabilities Grid */
.capabilities-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
margin-bottom: 16px;
}
.cap-detail-item .cap-icon {
font-size: 24px;
display: block;
margin-bottom: 8px;
}
.cap-detail-item .cap-name {
font-weight: 600;
font-size: 12px;
display: block;
margin-bottom: 4px;
}
.cap-detail-item .cap-status {
font-size: 10px;
color: var(--text-muted);
}
.cap-detail-item .cap-detail {
font-size: 9px;
color: var(--text-muted);
display: block;
margin-top: 4px;
font-family: 'JetBrains Mono', monospace;
}
.cap-can-list, .cap-cannot-list {
list-style: none;
padding: 0;
margin: 0;
}
.cap-can-list li, .cap-cannot-list li {
padding: 6px 0;
font-size: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cap-can-list li:last-child, .cap-cannot-list li:last-child {
border-bottom: none;
}
/* Modal Header Classification Colors */
.device-detail-header.classification-cyan {
background: linear-gradient(135deg, rgba(0, 204, 255, 0.2) 0%, rgba(0, 150, 200, 0.1) 100%);
border-bottom: 2px solid #00ccff;
}
.device-detail-header.classification-orange {
background: linear-gradient(135deg, rgba(255, 153, 51, 0.2) 0%, rgba(200, 120, 40, 0.1) 100%);
border-bottom: 2px solid #ff9933;
}
.device-detail-header.classification-green {
background: linear-gradient(135deg, rgba(0, 204, 0, 0.2) 0%, rgba(0, 150, 0, 0.1) 100%);
border-bottom: 2px solid #00cc00;
}
/* Playbook Enhancements */
.playbook-item {
cursor: pointer;
transition: all 0.2s;
}
.playbook-item:hover {
background: rgba(255, 153, 51, 0.1);
}
.playbook-category {
font-size: 9px;
padding: 2px 6px;
background: rgba(255, 153, 51, 0.2);
color: #ff9933;
border-radius: 3px;
text-transform: uppercase;
}
.playbook-meta {
font-size: 10px;
color: var(--text-muted);
margin-top: 8px;
}
.playbook-warning {
padding: 8px 12px;
background: rgba(255, 153, 51, 0.15);
border: 1px solid rgba(255, 153, 51, 0.3);
border-radius: 4px;
font-size: 11px;
margin-top: 8px;
}
/* Case Status Enhancements */
.case-date {
font-size: 10px;
color: var(--text-muted);
margin-top: 4px;
}
/* Known Device Type Badge */
.known-device-type {
font-size: 9px;
padding: 2px 6px;
background: rgba(74, 158, 255, 0.2);
color: #4a9eff;
border-radius: 3px;
margin-left: 8px;
}