mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): add step anomaly diagnostics, >=100 tok/s integer speed formatting, and capsule alignment fix
This commit is contained in:
@@ -295,6 +295,248 @@
|
||||
animation: anim-popover-in var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
/* --- 2.6 单步异常整行语义着色、模型汇总微标、筛选条与悬停诊断卡 --- */
|
||||
.data-table tbody tr.is-anomaly-warn {
|
||||
background: color-mix(in srgb, var(--metric-warn) 11%, transparent);
|
||||
}
|
||||
|
||||
.data-table tbody tr.is-anomaly-warn:hover {
|
||||
background: color-mix(in srgb, var(--metric-warn) 18%, transparent);
|
||||
}
|
||||
|
||||
.data-table tbody tr.is-anomaly-warn td:first-child {
|
||||
box-shadow: inset 2px 0 0 var(--metric-warn);
|
||||
}
|
||||
|
||||
.data-table tbody tr.is-anomaly-warn td:first-child > span:not(.agent-badge):not(.turn-rail) {
|
||||
color: var(--metric-warn);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.data-table tbody tr.is-anomaly-danger {
|
||||
background: color-mix(in srgb, var(--metric-danger) 13%, transparent);
|
||||
}
|
||||
|
||||
.data-table tbody tr.is-anomaly-danger:hover {
|
||||
background: color-mix(in srgb, var(--metric-danger) 20%, transparent);
|
||||
}
|
||||
|
||||
.data-table tbody tr.is-anomaly-danger td:first-child {
|
||||
box-shadow: inset 2px 0 0 var(--metric-danger);
|
||||
}
|
||||
|
||||
.data-table tbody tr.is-anomaly-danger td:first-child > span:not(.agent-badge):not(.turn-rail) {
|
||||
color: var(--metric-danger);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.step-anomaly-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
vertical-align: middle;
|
||||
margin-left: 4px;
|
||||
padding: 0 3.5px;
|
||||
font-size: var(--fs-2xs);
|
||||
font-weight: 600;
|
||||
line-height: 1.35;
|
||||
border-radius: 3px;
|
||||
color: var(--metric-warn);
|
||||
background: var(--metric-warn-soft);
|
||||
border: 1px solid color-mix(in srgb, var(--metric-warn) 34%, transparent);
|
||||
cursor: help;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.step-anomaly-tag.is-danger {
|
||||
color: var(--metric-danger);
|
||||
background: var(--metric-danger-soft);
|
||||
border-color: color-mix(in srgb, var(--metric-danger) 36%, transparent);
|
||||
}
|
||||
|
||||
.step-anomaly-tag[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.smodel-anomaly-tag {
|
||||
margin-left: 0;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
transition:
|
||||
background-color var(--dur-instant) var(--ease-fast),
|
||||
border-color var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
.smodel-anomaly-tag:hover {
|
||||
background: color-mix(in srgb, var(--metric-warn) 22%, transparent);
|
||||
}
|
||||
|
||||
.smodel-anomaly-tag.is-danger:hover {
|
||||
background: color-mix(in srgb, var(--metric-danger) 22%, transparent);
|
||||
}
|
||||
|
||||
.step-anomaly-tip {
|
||||
position: absolute;
|
||||
z-index: 46;
|
||||
max-width: min(300px, calc(100% - 16px));
|
||||
min-width: 176px;
|
||||
padding: 7px 9px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
font-size: var(--fs-sm);
|
||||
line-height: 1.38;
|
||||
color: var(--text-primary);
|
||||
background: var(--surface-panel);
|
||||
border: 1px solid color-mix(in srgb, var(--metric-warn) 42%, var(--border-strong));
|
||||
border-radius: var(--radius-xs);
|
||||
box-shadow: var(--shadow-popover);
|
||||
pointer-events: none;
|
||||
animation: anim-popover-in var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
.step-anomaly-tip.is-danger {
|
||||
border-color: color-mix(in srgb, var(--metric-danger) 46%, var(--border-strong));
|
||||
}
|
||||
|
||||
.step-anomaly-tip[hidden],
|
||||
.step-anomaly-tip-sub[hidden],
|
||||
.step-anomaly-tip-list[hidden],
|
||||
.step-anomaly-tip-hint[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.step-anomaly-tip-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.step-anomaly-tip-title {
|
||||
font-weight: 600;
|
||||
color: var(--metric-warn);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.step-anomaly-tip.is-danger .step-anomaly-tip-title {
|
||||
color: var(--metric-danger);
|
||||
}
|
||||
|
||||
.step-anomaly-tip-sub {
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.step-anomaly-tip-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
padding-top: 4px;
|
||||
border-top: 1px solid var(--border-hairline);
|
||||
}
|
||||
|
||||
.step-anomaly-tip-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.step-anomaly-tip-row {
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.step-anomaly-tip-row.is-danger {
|
||||
color: var(--metric-danger);
|
||||
}
|
||||
|
||||
.step-anomaly-tip-detail {
|
||||
font-size: var(--fs-2xs);
|
||||
line-height: 1.35;
|
||||
color: var(--text-muted);
|
||||
word-break: break-word;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.step-anomaly-tip-hint {
|
||||
font-size: var(--fs-2xs);
|
||||
color: var(--text-muted);
|
||||
padding-top: 3px;
|
||||
border-top: 1px solid var(--border-hairline);
|
||||
}
|
||||
|
||||
.steps-anomaly-filterbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 4px 8px;
|
||||
border-top: 1px solid var(--border-hairline);
|
||||
background: color-mix(in srgb, var(--metric-warn) 8%, var(--surface-panel));
|
||||
font-size: var(--fs-xs);
|
||||
}
|
||||
|
||||
.steps-anomaly-filterbar[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.steps-anomaly-filter-label {
|
||||
font-weight: 600;
|
||||
color: var(--metric-warn);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.steps-anomaly-filter-clear {
|
||||
flex-shrink: 0;
|
||||
padding: 1px 7px;
|
||||
font-size: var(--fs-xs);
|
||||
}
|
||||
|
||||
.steps-anomaly-strip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 6px;
|
||||
padding: 4px 8px;
|
||||
border: 1px solid color-mix(in srgb, var(--metric-warn) 26%, var(--border-hairline));
|
||||
border-radius: var(--radius-xs);
|
||||
background: color-mix(in srgb, var(--metric-warn) 7%, var(--surface-panel));
|
||||
}
|
||||
|
||||
.steps-anomaly-strip[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.steps-anomaly-strip-meta {
|
||||
border: none;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 600;
|
||||
color: var(--metric-warn);
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.steps-anomaly-strip-meta:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.steps-anomaly-strip-tags {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
/* --- 3. 按模型汇总分析视图:双趋势图与极简模型总览 (Models Analytics Pane) --- */
|
||||
.models-analytics-pane {
|
||||
display: flex;
|
||||
@@ -517,6 +759,47 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sstep-hover-raw-dot.is-anomaly {
|
||||
stroke: var(--metric-warn);
|
||||
stroke-width: 1.85;
|
||||
}
|
||||
|
||||
.sstep-hover-raw-dot.is-danger {
|
||||
stroke: var(--metric-danger);
|
||||
}
|
||||
|
||||
.sstep-anomaly-dot,
|
||||
.sstep-scatter-dot.is-anomaly {
|
||||
fill: var(--surface-panel);
|
||||
fill-opacity: 1;
|
||||
stroke: var(--metric-warn);
|
||||
stroke-width: 1.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sstep-anomaly-dot.is-danger,
|
||||
.sstep-scatter-dot.is-anomaly.is-danger {
|
||||
stroke: var(--metric-danger);
|
||||
}
|
||||
|
||||
.trend-tip-anomaly {
|
||||
margin-top: 3px;
|
||||
padding-top: 3px;
|
||||
border-top: 1px solid var(--border-hairline);
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 600;
|
||||
color: var(--metric-warn);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.trend-tip-anomaly.is-danger {
|
||||
color: var(--metric-danger);
|
||||
}
|
||||
|
||||
.trend-tip-anomaly[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.sstep-empty-hint {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
|
||||
Reference in New Issue
Block a user