feat(ops): add managed NE management and batch CLI collection

Introduce workbench operations for multi-vendor NE CRUD/connect-test and Netmiko batch collection with job lifecycle controls, log downloads, and paginated run filters.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-05-27 23:34:29 +08:00
parent 282dbe75af
commit 042c015045
36 changed files with 3695 additions and 17 deletions

View file

@ -511,6 +511,22 @@ pre {
cursor: pointer;
}
.link-btn--danger {
color: #c62828;
}
.link-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.table-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.status {
margin-top: 12px;
color: #9db2cf;
@ -555,21 +571,28 @@ pre {
position: fixed;
right: 20px;
bottom: 20px;
padding: 10px 12px;
padding: 12px 16px;
border-radius: 8px;
border: 1px solid #2c405f;
background: #0f1e34;
border: 1px solid #cbd5e1;
background: #fff;
color: #1e293b;
font-size: 14px;
line-height: 1.45;
z-index: 60;
max-width: 420px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.toast--ok {
border-color: #1f5a3a;
border-color: #81c784;
background: #e8f5e9;
color: #1b5e20;
}
.toast--error {
border-color: #5f1f2a;
border-color: #ef9a9a;
background: #ffebee;
color: #b71c1c;
}
.inline-spinner {
@ -739,6 +762,201 @@ pre {
}
}
.page-stack {
display: flex;
flex-direction: column;
gap: 16px;
}
.panel--warn {
border-color: #ffe082;
background: #fff8e1;
color: #5d4037;
}
.panel__toolbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 12px;
}
.panel__toolbar h2 {
margin: 0;
}
.panel__actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.table-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 50;
background: rgba(15, 23, 42, 0.45);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.modal {
width: min(720px, 100%);
max-height: 90vh;
overflow: auto;
background: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
}
.modal h3 {
margin: 0 0 16px;
}
.modal__actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 16px;
}
.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.form-hint {
margin: 0 0 12px;
font-size: 12px;
color: #64748b;
}
.form-label__required {
color: #c62828;
font-weight: 600;
}
.form-label__optional {
color: #94a3b8;
font-weight: 400;
}
.form-field-hint {
font-size: 11px;
color: #94a3b8;
line-height: 1.35;
}
.form-grid label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 12px;
color: #64748b;
}
.form-grid input,
.form-grid select {
font-size: 14px;
}
.form-grid__full {
grid-column: 1 / -1;
}
.form-grid--single {
grid-template-columns: 1fr;
}
.panel__hint {
margin: 0 0 12px;
font-size: 13px;
color: #64748b;
line-height: 1.45;
}
.panel__hint--live {
color: #1565c0;
}
.collect-commands {
width: 100%;
min-height: 160px;
font-family: ui-monospace, Consolas, monospace;
font-size: 13px;
line-height: 1.4;
padding: 10px;
border: 1px solid #cbd5e1;
border-radius: 6px;
resize: vertical;
}
.collect-meta {
font-size: 13px;
color: #64748b;
margin-right: auto;
}
.collect-cmd-preview {
font-size: 12px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6px;
padding: 10px;
max-height: 120px;
overflow: auto;
white-space: pre-wrap;
}
.collect-runs-panel {
display: flex;
flex-direction: column;
gap: 10px;
}
.collect-runs-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
}
.collect-runs-filter {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #475569;
}
.collect-runs-filter select {
min-width: 140px;
padding: 6px 8px;
border: 1px solid #cbd5e1;
border-radius: 6px;
background: #fff;
}
.collect-runs-filter input {
min-width: 180px;
padding: 6px 8px;
border: 1px solid #cbd5e1;
border-radius: 6px;
background: #fff;
}
@media (max-width: 1200px) {
.cards {
grid-template-columns: 1fr;
@ -752,4 +970,7 @@ pre {
.split {
grid-template-columns: 1fr;
}
.form-grid {
grid-template-columns: 1fr;
}
}