提升观测系统

隔离taskflow
This commit is contained in:
2026-08-25 10:15:59 +08:00
parent c0d5a13350
commit 2c3105cc07
37 changed files with 1538 additions and 184 deletions
+56
View File
@@ -182,6 +182,62 @@ canvas { display: block; width: 100%; height: 100%; background: #070d18; }
.diagnosticEmpty { display: grid; min-height: 180px; place-content: center; gap: 8px; padding: 24px; color: #71839e; border: 1px dashed #29435e; border-radius: 10px; text-align: center; }
.diagnosticEmpty strong { color: #cbd8ea; }
.taskflowFramePane, .taskflowRuntimePane { display: grid; align-content: start; gap: 14px; }
.taskflowCaptureBar, .taskflowSelectors { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 11px 12px; border: 1px solid #29435e; border-radius: 9px; background: #0c1a2a; }
.taskflowCaptureBar label, .taskflowSelectors label { display: flex; align-items: center; gap: 7px; color: #91a5c0; font-size: 11px; }
.taskflowCaptureBar input, .taskflowSelectors select { min-width: 74px; padding: 7px 9px; color: #dce8f8; border: 1px solid #304664; border-radius: 7px; background: #101c2d; }
.taskflowCaptureBar button, .taskflowRuntimeHeader button { padding: 8px 12px; color: #062019; border: 1px solid #5ce4c2; border-radius: 7px; background: #5ce4c2; cursor: pointer; }
.taskflowCaptureBar button:disabled { opacity: .45; cursor: default; }
.taskflowCaptureBar span, .taskflowSelectors > span { color: #71839e; font-size: 11px; }
.taskflowError { margin: 0; padding: 10px 12px; color: #ff9bae; border: 1px solid #71334a; border-radius: 8px; background: #27101a; }
.taskflowGraphSummary, .taskflowRuntimeSummary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0; }
.taskflowGraphSummary > div, .taskflowRuntimeSummary > div { min-width: 0; padding: 10px; border: 1px solid #213653; border-radius: 9px; background: #0a1422; }
.taskflowGraphSummary dt, .taskflowRuntimeSummary dt { color: #71839e; font-size: 10px; }
.taskflowGraphSummary dd, .taskflowRuntimeSummary dd { overflow: hidden; margin: 5px 0 0; color: #5ce4c2; font: 700 13px/1.25 ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.taskflowDag { width: 100%; height: 430px; min-height: 300px; overflow: hidden; border: 1px solid #213653; border-radius: 10px; background: #07101c; }
.taskflowNode { width: 230px !important; min-height: 92px; padding: 10px !important; color: #a7bad2 !important; border: 1px solid #304766 !important; border-radius: 9px !important; background: #0e1a2b !important; box-shadow: 0 8px 22px #0006; }
.taskflowNodeExecuted { border-color: #2c8e78 !important; background: #0c201e !important; }
.taskflowNodeWaiting { border-color: #b9833e !important; background: #251b10 !important; }
.taskflowNodeLabel { display: grid; gap: 4px; min-width: 0; text-align: left; }
.taskflowNodeLabel strong { overflow: hidden; color: #e1ecf9; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.taskflowNodeLabel code { overflow: hidden; color: #6f89aa; font: 9px/1.2 ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.taskflowNodeLabel span { color: #91a5c0; font: 9px/1.25 ui-monospace, monospace; }
.react-flow__edge-path { stroke: #557594; stroke-width: 1.5; }
.react-flow__controls button { color: #dce8f8; border-color: #29435e; background: #101d2f; }
.react-flow__minimap { border: 1px solid #29435e; background: #0a1422; }
.taskflowTimeline, .taskflowRuntimeSection { overflow: hidden; border: 1px solid #213653; border-radius: 10px; background: #0a1422; }
.taskflowTimeline > header, .taskflowRuntimeSection > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #1d304a; background: #101d2f; }
.taskflowTimeline > header span, .taskflowRuntimeSection > header span { color: #71839e; font-size: 10px; }
.taskflowTimelineRows { display: grid; overflow-x: auto; padding: 9px; }
.taskflowTimelineRow { display: grid; grid-template-columns: 34px minmax(115px, .5fr) minmax(260px, 1.5fr) 78px 88px; align-items: center; gap: 8px; min-width: 720px; padding: 6px; border-bottom: 1px solid #16263b; color: #91a5c0; font-size: 10px; }
.taskflowTimelineRow:last-child { border-bottom: 0; }
.taskflowTimelineRow > code { color: #5ce4c2; }
.taskflowTimelineRow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taskflowTimelineRow > b { color: #dce8f8; font: 10px/1 ui-monospace, monospace; }
.taskflowTimelineRow > em { color: #be935b; font: 10px/1 ui-monospace, monospace; font-style: normal; }
.taskflowTimelineTrack { position: relative; height: 9px; overflow: hidden; border-radius: 99px; background: #09111d; }
.taskflowTimelineTrack i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.taskflowWait { background: #a16d36; }
.taskflowRun { background: #51dabc; box-shadow: 0 0 7px #51dabc88; }
.taskflowRuntimeHeader { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 16px 14px; border-bottom: 1px solid #20314b; background: #0b1524; }
.taskflowRuntimeHeader h2 { margin: 4px 0 0; font-size: 21px; }
.taskflowRuntimeHeader p { margin: 5px 0 0; color: #71839e; font-size: 11px; }
.taskflowWorkerGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 9px; padding: 11px; }
.taskflowWorkerGrid article { padding: 10px; border: 1px solid #1f334e; border-radius: 8px; background: #091321; }
.taskflowWorkerGrid article > header { display: flex; justify-content: space-between; color: #dce8f8; font-size: 11px; }
.taskflowWorkerGrid article > header span { color: #5ce4c2; font: 11px/1 ui-monospace, monospace; }
.taskflowUtilization { height: 6px; overflow: hidden; margin: 9px 0; border-radius: 99px; background: #18273b; }
.taskflowUtilization i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3aa58d, #5ce4c2); }
.taskflowWorkerGrid dl { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0; }
.taskflowWorkerGrid dl > div { display: flex; justify-content: space-between; gap: 5px; color: #71839e; font-size: 9px; }
.taskflowWorkerGrid dd { margin: 0; color: #aec0d8; font-family: ui-monospace, monospace; }
.taskflowActiveTask { display: block; overflow: hidden; margin-top: 8px; color: #e0a65d; font: 9px/1.3 ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.taskflowTable { width: 100%; border-collapse: collapse; font-size: 11px; }
.taskflowTable th, .taskflowTable td { padding: 9px 11px; border-bottom: 1px solid #182a42; text-align: right; }
.taskflowTable th:first-child, .taskflowTable td:first-child { text-align: left; }
.taskflowTable th { color: #71839e; font-weight: 500; }
.taskflowTable td { color: #c7d5e7; font-family: ui-monospace, monospace; }
.componentCard { margin-bottom: 13px; overflow: hidden; border: 1px solid #213653; border-radius: 11px; background: #0a1422; }
.componentCard > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; color: #dce8f8; background: #101d2f; cursor: pointer; }