feat(panel): refine session picker, summary cards, and curve dots

- Declutter session dropdown rows by moving workspace tags to search and hover tooltips, compacting inline UUIDs and multi-agent step counts, separating the auto-follow option, and aligning right-hand step columns
- Align StepsDetailView model summary cards with ConsumptionView breakdown rows using share pills and right-aligned call counts, and restyle the session anomaly strip with a status dot and neutral pill tags
- Replace baseline anomaly rug ticks in SessionLineChart with borderless on-curve spline dots backed by anomaly-aware downsampling and exact cubic y-evaluation
- Compact the second row of ConsumptionView overview metrics by removing redundant sub-captions and matching the top-row label-over-hero-number hierarchy
This commit is contained in:
fish
2026-11-25 03:42:34 +09:00
parent 7a3e71a0e4
commit b6fafcd9f5
18 changed files with 856 additions and 342 deletions
+146 -43
View File
@@ -444,6 +444,30 @@ html[data-standalone="true"] .app-shell {
min-width: 0;
}
.session-select .select-menu {
min-width: 100%;
width: min(444px, calc(100vw - 28px));
max-width: calc(100vw - 24px);
}
.session-select .select-menu.has-search {
max-height: 304px;
}
.session-select .select-option {
padding: 5px 8px;
gap: 8px;
}
.session-select .select-option-check {
flex-shrink: 0;
}
.session-select .select-option-check[hidden] {
display: inline-flex !important;
visibility: hidden;
}
.session-right {
display: flex;
align-items: center;
@@ -911,21 +935,66 @@ html[data-standalone="true"] .app-shell {
background: transparent;
}
.select-option-text {
.select-option-body {
display: flex;
flex-direction: column;
gap: 1px;
flex: 1;
min-width: 0;
}
.select-option-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.select-option-sub {
font-size: var(--fs-xs);
line-height: 1.25;
font-family: var(--font-mono);
font-weight: 400;
opacity: 0.72;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.select-option.is-selected .select-option-sub {
color: var(--text-secondary);
opacity: 0.85;
}
.select-option.has-divider-after {
position: relative;
margin-bottom: 5px;
}
.select-option.has-divider-after::after {
content: '';
position: absolute;
left: 6px;
right: 6px;
bottom: -3px;
height: 1px;
background: var(--border-hairline);
pointer-events: none;
}
.select-option-meta {
font-size: var(--fs-md);
flex-shrink: 0;
font-family: var(--font-mono);
font-variant-numeric: tabular-nums;
text-align: right;
white-space: nowrap;
}
.select-option-meta.is-dim {
opacity: 0.48;
}
.select-checkbox {
display: inline-flex;
align-items: center;
@@ -3308,7 +3377,8 @@ html[data-standalone="true"] .app-shell {
.trend-hm-cell,
.trend-tooltip.is-tracking,
.trend-hover-dot.is-tracking,
.sstep-hover-raw-dot.is-tracking {
.sstep-hover-raw-dot.is-tracking,
.sstep-anomaly-dot {
transition: none !important;
}
.cons-item-list.is-bars-revealing .progress-track {
@@ -4953,11 +5023,10 @@ html[data-standalone="true"] .app-shell {
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));
gap: 4px 8px;
padding: 2px 2px 3px;
border: none;
background: transparent;
}
.steps-anomaly-strip[hidden] {
@@ -4965,18 +5034,35 @@ html[data-standalone="true"] .app-shell {
}
.steps-anomaly-strip-meta {
display: inline-flex;
align-items: center;
gap: 6px;
border: none;
background: transparent;
padding: 0;
font-size: var(--fs-xs);
font-weight: 600;
color: var(--metric-warn);
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
white-space: nowrap;
transition: color var(--dur-instant) var(--ease-fast);
}
.steps-anomaly-strip-meta::before {
content: '';
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--metric-warn);
flex-shrink: 0;
}
.steps-anomaly-strip.has-danger .steps-anomaly-strip-meta::before {
background: var(--metric-danger);
}
.steps-anomaly-strip-meta:hover {
text-decoration: underline;
color: var(--text-primary);
}
.steps-anomaly-strip-tags {
@@ -4986,6 +5072,41 @@ html[data-standalone="true"] .app-shell {
gap: 4px;
}
.steps-anomaly-strip .smodel-anomaly-tag,
.smodel-ident .smodel-anomaly-tag {
margin-left: 0;
padding: 1px 6px;
font-size: var(--fs-2xs);
font-weight: 500;
line-height: 1.35;
border-radius: var(--radius-pill);
border: none;
color: var(--text-secondary);
background: color-mix(in srgb, var(--text-primary) 6%, transparent);
cursor: pointer;
transition:
color var(--dur-instant) var(--ease-fast),
background-color var(--dur-instant) var(--ease-fast);
}
.steps-anomaly-strip .smodel-anomaly-tag:hover,
.smodel-ident .smodel-anomaly-tag:hover {
color: var(--text-primary);
background: color-mix(in srgb, var(--text-primary) 11%, transparent);
}
.steps-anomaly-strip .smodel-anomaly-tag.is-danger,
.smodel-ident .smodel-anomaly-tag.is-danger {
color: color-mix(in srgb, var(--metric-danger) 78%, var(--text-primary));
background: color-mix(in srgb, var(--metric-danger) 9%, transparent);
}
.steps-anomaly-strip .smodel-anomaly-tag.is-danger:hover,
.smodel-ident .smodel-anomaly-tag.is-danger:hover {
color: var(--metric-danger);
background: color-mix(in srgb, var(--metric-danger) 15%, transparent);
}
/* --- 3. 按模型汇总分析视图:双趋势图与极简模型总览 (Models Analytics Pane) --- */
.models-analytics-pane {
display: flex;
@@ -5235,16 +5356,16 @@ html[data-standalone="true"] .app-shell {
}
.sstep-anomaly-dot {
stroke: var(--metric-warn);
stroke-width: 1.5;
stroke-opacity: 0.82;
stroke-linecap: round;
fill: var(--metric-warn);
stroke: none;
pointer-events: none;
transition:
cx 240ms cubic-bezier(0.22, 1, 0.36, 1),
cy 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sstep-anomaly-dot.is-danger {
stroke: var(--metric-danger);
stroke-opacity: 0.92;
fill: var(--metric-danger);
}
.sstep-scatter-dot.is-anomaly {
@@ -5476,25 +5597,15 @@ html[data-standalone="true"] .app-shell {
white-space: nowrap;
}
.smodel-calls-pill {
flex-shrink: 0;
font-size: var(--fs-xs);
font-weight: 500;
padding: 1px 5px;
color: var(--text-secondary);
background: var(--surface-track);
border-radius: var(--radius-xs);
}
.smodel-totals {
display: inline-flex;
align-items: baseline;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.smodel-tok {
font-size: var(--fs-base-sm);
font-size: var(--fs-base);
font-weight: 500;
color: var(--text-secondary);
}
@@ -5512,22 +5623,13 @@ html[data-standalone="true"] .app-shell {
.smodel-foot {
display: flex;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
gap: 4px 10px;
font-size: var(--fs-md);
color: var(--text-secondary);
}
.smodel-split {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
gap: 4px 10px;
color: var(--text-secondary);
}
.smodel-split strong {
.smodel-foot strong {
color: var(--text-primary);
font-weight: 600;
}
@@ -8916,15 +9018,16 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
background: var(--accent-primary-soft);
}
[data-modern-ui="true"] .steps-anomaly-filterbar,
[data-modern-ui="true"] .steps-anomaly-strip {
[data-modern-ui="true"] .steps-anomaly-filterbar {
border: none;
border-radius: var(--radius-xs);
background: var(--metric-warn-soft);
background: var(--modern-surface-subtle);
margin: 4px 2px 2px;
}
[data-modern-ui="true"] .steps-anomaly-filterbar {
margin: 4px 2px 2px;
[data-modern-ui="true"] .steps-anomaly-strip {
border: none;
background: transparent;
}
/* --- 6. 设置表单、折叠面板、槽位排序与输入控件去边框 --- */