feat: expand scheduling, notifications, and queue runtime

- add scheduled task plumbing across backend core, CLI, and frontend surfaces

- add frontend notification UI and keep service pages using the repaired shared stylesheet

- refactor code queue runtime and update baidu netdisk/service integration docs
This commit is contained in:
Codex
2026-05-13 08:43:43 +00:00
parent 6a04144d3f
commit a242e3e3ec
45 changed files with 10421 additions and 6494 deletions
File diff suppressed because one or more lines are too long
+220 -7
View File
@@ -351,7 +351,7 @@ h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
align-items: start;
}
.overview-grid .panel:nth-child(n+3), .dispatch-grid .panel:first-child, .topology-grid .panel:nth-child(3) { grid-column: 1 / -1; }
.overview-grid .panel:nth-child(n+3), .dispatch-grid .panel:first-child, .scheduled-task-page .panel:first-child, .scheduled-task-page .panel:nth-child(3), .topology-grid .panel:nth-child(3) { grid-column: 1 / -1; }
.panel {
min-width: 0;
@@ -412,17 +412,17 @@ h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
}
.metric-hint { margin-top: 3px; color: var(--muted); font-size: 11px; }
.node-card-list, .compact-list, .log-list, .heartbeat-list, .endpoint-list, .policy-grid, .security-board, .result-grid {
.node-card-list, .compact-list, .log-list, .heartbeat-list, .endpoint-list, .policy-grid, .security-board, .result-grid, .schedule-card-grid {
display: grid;
gap: 8px;
}
.node-card, .compact-row, .log-row, .heartbeat-row, .endpoint-list article, .policy-grid article, .security-board article, .result-card, .label-card {
.node-card, .compact-row, .log-row, .heartbeat-row, .endpoint-list article, .policy-grid article, .security-board article, .result-card, .label-card, .schedule-card {
border: 1px solid var(--line-soft);
background: var(--panel-3);
}
.node-card, .result-card { padding: 9px; }
.node-card, .result-card, .schedule-card { padding: 9px; }
.node-card-head {
display: flex;
justify-content: space-between;
@@ -1362,6 +1362,34 @@ td { color: var(--text); }
letter-spacing: 0.12em;
}
.dispatch-actions { display: flex; gap: 6px; align-items: end; }
.schedule-card-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.schedule-card dl {
display: grid;
grid-template-columns: 92px minmax(0, 1fr);
gap: 5px 8px;
margin: 8px 0;
}
.schedule-card dt { color: var(--muted); }
.schedule-card dd { margin: 0; overflow-wrap: anywhere; }
.schedule-form {
grid-template-columns: inherit;
}
.dispatch-form, .schedule-form {
display: grid;
grid-template-columns: 1.2fr 180px 150px 1fr 140px auto;
gap: 8px;
align-items: end;
}
.dispatch-form label, .schedule-form label {
display: grid;
gap: 4px;
color: var(--muted);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.12em;
}
.raw-editor.compact { min-height: 72px; }
.schedule-run-table { min-width: 1180px; }
.dispatch-actions button[type="submit"], .login-form button[type="submit"] {
min-height: 32px;
padding: 0 12px;
@@ -5136,7 +5164,7 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
@media (max-width: 1120px) {
.metric-grid, .policy-grid, .security-board, .docker-metrics, .monitor-chart-grid, .monitor-summary-grid, .performance-metric-stack, .codex-load-test-grid, .baidu-doc-grid, .filebrowser-target-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pipeline-oa-guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dispatch-form { grid-template-columns: 1fr 1fr; }
.dispatch-form, .schedule-form { grid-template-columns: 1fr 1fr; }
.dispatch-actions { align-items: center; }
.page-grid, .docker-layout, .monitor-layout, .performance-top-grid, .performance-grid, .findjob-grid, .findjob-hero, .pipeline-grid, .pipeline-hero, .met-grid, .met-form-grid, .code-queue-layout, .code-queue-hero, .codex-detail-grid, .project-manager-hero, .project-manager-layout, .baidu-netdisk-grid, .baidu-netdisk-hero, .baidu-transfer-forms, .filebrowser-hero { grid-template-columns: 1fr; }
.codex-session-shell { grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr); position: relative; }
@@ -5151,7 +5179,7 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
.pipeline-node-control { max-height: none; min-height: 0; }
.findjob-grid .panel:nth-child(3), .claudeqq-page .findjob-grid .panel:nth-child(n+3), .pipeline-grid .panel:nth-child(3), .pipeline-grid .panel:nth-child(5), .met-grid .panel:nth-child(3), .met-grid .panel:nth-child(5), .met-detail-panel, .baidu-files-panel, .baidu-transfers-panel, .baidu-wide-panel, .baidu-docs-panel { grid-column: 1; }
.gateway-record-grid { grid-template-columns: 1fr; }
.overview-grid .panel:nth-child(n+3), .dispatch-grid .panel:first-child, .topology-grid .panel:nth-child(3) { grid-column: 1; }
.overview-grid .panel:nth-child(n+3), .dispatch-grid .panel:first-child, .scheduled-task-page .panel:first-child, .scheduled-task-page .panel:nth-child(3), .topology-grid .panel:nth-child(3) { grid-column: 1; }
}
@media (max-width: 760px) {
@@ -5323,7 +5351,7 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
padding: 4px 9px;
white-space: nowrap;
}
.metric-grid, .policy-grid, .security-board, .dispatch-form, .docker-metrics, .monitor-chart-grid, .monitor-summary-grid, .gateway-record-grid, .met-detail-kv, .code-queue-metrics, .codex-stats-summary-grid, .codex-form-grid, .baidu-doc-grid { grid-template-columns: 1fr; }
.metric-grid, .policy-grid, .security-board, .dispatch-form, .schedule-form, .schedule-card-grid, .docker-metrics, .monitor-chart-grid, .monitor-summary-grid, .gateway-record-grid, .met-detail-kv, .code-queue-metrics, .codex-stats-summary-grid, .codex-form-grid, .baidu-doc-grid { grid-template-columns: 1fr; }
.compact-row, .heartbeat-row, .log-row, .endpoint-list article, .volume-route, .findjob-hero, .pipeline-hero, .code-queue-hero, .claudeqq-login-card, .baidu-login-card, .baidu-pathbar { grid-template-columns: 1fr; align-items: start; }
.codex-output-line { grid-template-columns: 1fr; }
.codex-transcript { min-height: 360px; }
@@ -5870,3 +5898,188 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
min-height: 360px;
}
}
.notification-icon-btn {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
border-radius: 6px;
background: transparent;
color: var(--text);
cursor: pointer;
font-size: 18px;
transition: background 0.15s;
}
.notification-icon-btn:hover {
background: var(--panel-2);
}
.notification-icon-btn.has-unread {
color: var(--accent);
}
.notification-icon-btn .notification-badge {
position: absolute;
top: 2px;
right: 2px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 8px;
background: var(--danger);
color: #fff;
font-size: 10px;
font-weight: 600;
line-height: 16px;
text-align: center;
}
.notification-popup {
position: absolute;
top: calc(100% + 8px);
right: 0;
width: 360px;
max-height: 480px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
z-index: 9999;
overflow: hidden;
}
.notification-popup-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid var(--line);
font-weight: 600;
font-size: 14px;
}
.notification-popup-actions {
display: flex;
gap: 8px;
}
.notification-popup-clear,
.notification-popup-close {
padding: 4px 8px;
border: none;
border-radius: 4px;
background: transparent;
color: var(--muted);
cursor: pointer;
font-size: 12px;
}
.notification-popup-clear:hover,
.notification-popup-close:hover {
background: var(--panel-2);
color: var(--text);
}
.notification-popup-empty {
padding: 32px 16px;
text-align: center;
color: var(--muted);
font-size: 13px;
}
.notification-popup-list {
max-height: 400px;
overflow-y: auto;
}
.notification-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 16px;
border-bottom: 1px solid var(--line-soft);
}
.notification-item:last-child {
border-bottom: none;
}
.notification-item.success .notification-item-icon {
color: var(--ok);
}
.notification-item.error .notification-item-icon {
color: var(--danger);
}
.notification-item-icon {
flex-shrink: 0;
font-size: 14px;
font-weight: 700;
}
.notification-item-message {
flex: 1;
font-size: 13px;
color: var(--text);
word-break: break-word;
}
.notification-item-dismiss {
flex-shrink: 0;
padding: 2px 6px;
border: none;
border-radius: 4px;
background: transparent;
color: var(--muted);
cursor: pointer;
font-size: 14px;
line-height: 1;
}
.notification-item-dismiss:hover {
background: var(--panel-2);
color: var(--text);
}
.notification-banner {
position: fixed;
top: 70px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 10px;
padding: 12px 20px;
border-radius: 8px;
box-shadow: var(--shadow);
z-index: 10000;
font-size: 14px;
animation: notification-slide-in 0.2s ease-out;
}
@keyframes notification-slide-in {
from {
opacity: 0;
transform: translateX(-50%) translateY(-10px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
.notification-banner.success {
background: var(--ok);
color: #fff;
}
.notification-banner.error {
background: var(--danger);
color: #fff;
}
.notification-banner-icon {
font-size: 16px;
font-weight: 700;
}
.notification-banner-message {
flex: 1;
}
.notification-banner-dismiss {
padding: 2px 6px;
border: none;
border-radius: 4px;
background: rgba(255,255,255,0.2);
color: inherit;
cursor: pointer;
font-size: 14px;
line-height: 1;
}
.notification-banner-dismiss:hover {
background: rgba(255,255,255,0.3);
}