Add comprehensive SSH terminal drawer feature with embedded and popout modes, integrate playbook lint results API with local cache fallback, and enhance host management UI with terminal access buttons
Tests / Backend Tests (Python) (3.10) (push) Has been cancelled
Tests / Backend Tests (Python) (3.11) (push) Has been cancelled
Tests / Backend Tests (Python) (3.12) (push) Has been cancelled
Tests / Frontend Tests (JS) (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / All Tests Passed (push) Has been cancelled

This commit is contained in:
2025-12-17 23:59:17 -05:00
parent 05087aa380
commit 493668f746
110 changed files with 22054 additions and 24 deletions
+199
View File
@@ -2967,6 +2967,205 @@
padding: 12px;
}
}
/* =====================================================
Terminal SSH Drawer Styles
===================================================== */
.terminal-drawer {
position: fixed;
inset: 0;
z-index: 1000;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
}
.terminal-drawer.open {
opacity: 1;
pointer-events: all;
}
.terminal-drawer-backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 0;
}
.terminal-drawer-panel {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 50vw;
min-width: 400px;
max-width: 900px;
background: #0f0f1a;
border-left: 1px solid #374151;
display: flex;
flex-direction: column;
z-index: 1;
transform: translateX(100%);
transition: transform 0.3s ease;
}
.terminal-drawer.open .terminal-drawer-panel {
transform: translateX(0);
}
.terminal-drawer-header {
padding: 0.75rem 1rem;
background: #1a1a2e;
border-bottom: 1px solid #374151;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.terminal-host-info {
display: flex;
align-items: center;
gap: 0.75rem;
}
.terminal-host-name {
font-weight: 600;
color: #fff;
}
.terminal-host-ip {
color: #9ca3af;
font-size: 0.875rem;
}
.terminal-status-badge {
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 500;
}
.terminal-status-badge.online {
background: rgba(34, 197, 94, 0.2);
color: #4ade80;
}
.terminal-status-badge.connecting {
background: rgba(251, 191, 36, 0.2);
color: #fbbf24;
}
.terminal-header-actions {
display: flex;
gap: 0.5rem;
}
.terminal-btn {
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
font-size: 0.875rem;
border: none;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.375rem;
transition: all 0.15s;
}
.terminal-btn-secondary {
background: #374151;
color: #e5e7eb;
}
.terminal-btn-secondary:hover {
background: #4b5563;
}
.terminal-btn-danger {
background: #dc2626;
color: #fff;
}
.terminal-btn-danger:hover {
background: #b91c1c;
}
.terminal-drawer-body {
flex: 1;
position: relative;
overflow: hidden;
background: #000;
}
.terminal-iframe {
width: 100%;
height: 100%;
border: none;
background: #000;
}
.terminal-loading {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #0f0f1a;
}
.terminal-loading .spinner {
width: 48px;
height: 48px;
border: 3px solid #374151;
border-top-color: #3b82f6;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.terminal-loading .loading-text {
margin-top: 1rem;
color: #9ca3af;
}
.terminal-drawer-footer {
padding: 0.5rem 1rem;
background: #1a1a2e;
border-top: 1px solid #374151;
display: flex;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
.terminal-timer {
margin-left: auto;
font-size: 0.875rem;
color: #9ca3af;
font-family: monospace;
}
.terminal-timer.warning {
color: #fbbf24;
}
.terminal-timer.expired {
color: #ef4444;
}
/* Mobile responsive */
@media (max-width: 768px) {
.terminal-drawer-panel {
width: 100vw;
min-width: unset;
max-width: unset;
}
.terminal-host-ip {
display: none;
}
}
</style>
</head>
<body>