feat(panel): restore IDE mount compatibility, add composer dock mode, and refine chart tooltips

This commit is contained in:
fish
2026-11-14 20:49:00 +09:00
parent ef0505ad11
commit ad33e9cc62
45 changed files with 19178 additions and 1260 deletions
+478 -6
View File
@@ -44,13 +44,13 @@
.data-table th:first-child,
.data-table td:first-child {
padding-left: 7px;
padding-left: 2px;
}
.data-table th:last-child,
.data-table td:last-child {
text-align: right;
padding-right: 10px;
padding-right: 4px;
}
.data-table th {
@@ -88,13 +88,15 @@
flex-shrink: 0;
}
.steps-inline-scope-select {
flex: 0 1 180px;
.steps-inline-scope-select,
.steps-inline-model-select {
flex: 0 1 165px;
min-width: 72px;
max-width: 190px;
max-width: 175px;
}
.steps-inline-scope-select .select-trigger {
.steps-inline-scope-select .select-trigger,
.steps-inline-model-select .select-trigger {
height: 22px;
padding: 0 6px;
gap: 4px;
@@ -104,3 +106,473 @@
border: 1px solid var(--border-hairline);
background: var(--surface-subtle);
}
/* --- 3. 按模型汇总分析视图:双趋势图与极简模型总览 (Models Analytics Pane) --- */
.models-analytics-pane {
display: flex;
flex-direction: column;
gap: var(--space-3);
padding: var(--space-3) 0 2px;
}
.sstep-card {
display: flex;
flex-direction: column;
gap: 6px;
padding: var(--space-3) var(--space-4);
background: var(--surface-panel);
border: 1px solid var(--border-hairline);
border-radius: var(--radius-xs);
}
.sstep-card-head {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 6px;
min-width: 0;
}
.sstep-card-title-group {
display: inline-flex;
align-items: baseline;
gap: 6px;
min-width: 0;
flex-shrink: 0;
}
.sstep-card-title {
font-size: 12px;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
}
.sstep-card .seg-btn {
padding: 2px 6px;
font-size: 10.5px;
}
.sstep-fit-controls {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 6px;
min-width: 0;
}
.sstep-fit-model-select {
min-width: 96px;
max-width: 176px;
}
.sstep-fit-model-select .select-trigger {
height: 22px;
padding: 0 6px;
gap: 4px;
min-width: 0;
overflow: hidden;
font-size: 10.5px;
border: 1px solid var(--border-hairline);
background: var(--surface-subtle);
}
.sstep-chart-wrap {
position: relative;
width: 100%;
display: flex;
flex-direction: column;
gap: 2px;
}
.sstep-plot-stage {
position: relative;
width: 100%;
padding-top: 4px;
cursor: crosshair;
}
.sstep-svg {
width: 100%;
height: 106px;
display: block;
overflow: visible;
}
.sstep-fit-svg {
height: 136px;
}
.sstep-sci-grid line {
stroke: var(--border-hairline);
stroke-width: 0.9;
stroke-dasharray: 2 3;
}
.sstep-axis-spine {
stroke: var(--border-strong);
stroke-width: 1;
shape-rendering: crispEdges;
}
.sstep-axis-tick {
stroke: var(--border-strong);
stroke-width: 1;
shape-rendering: crispEdges;
}
.sstep-axis-label {
fill: var(--text-muted);
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
font-size: 9.5px;
user-select: none;
pointer-events: none;
}
.sstep-axis-label.is-y-inline {
paint-order: stroke;
stroke: var(--surface-panel);
stroke-width: 2.5px;
stroke-linejoin: round;
}
.sstep-line-card .trend-line {
stroke: var(--sstep-accent, var(--ctx-cached));
stroke-width: 1.9;
}
.sstep-multi-area {
fill: var(--sstep-series-color, var(--ctx-cached));
fill-opacity: 0.08;
stroke: none;
pointer-events: none;
}
.sstep-series-single-dot {
fill: var(--sstep-series-color, var(--ctx-cached));
stroke: var(--surface-panel);
stroke-width: 1.3;
}
.sstep-svg .trend-hover-dot {
stroke: var(--hover-dot-color, var(--sstep-accent, var(--accent-primary)));
}
.sstep-line-card .trend-peak-pill {
background: color-mix(in srgb, var(--sstep-accent, var(--ctx-cached)) 14%, var(--surface-panel));
border-color: color-mix(in srgb, var(--sstep-accent, var(--ctx-cached)) 30%, var(--border-hairline));
}
.sstep-node-dot {
fill: var(--surface-panel);
stroke: var(--dot-stroke, var(--sstep-accent, var(--ctx-cached)));
stroke-width: 1.45;
}
.sstep-node-dot.is-skipped {
fill: transparent;
stroke: var(--border-strong);
stroke-width: 1;
stroke-dasharray: 1.5 1.5;
opacity: 0.65;
}
.sstep-ci-band {
fill: var(--sstep-fit-accent, var(--ctx-cached));
fill-opacity: 0.14;
stroke: var(--sstep-fit-accent, var(--ctx-cached));
stroke-opacity: 0.24;
stroke-width: 0.75;
pointer-events: none;
}
.sstep-ci-band.is-multi {
fill-opacity: 0.1;
stroke-opacity: 0.18;
}
.sstep-fit-line {
stroke: var(--sstep-fit-accent, var(--ctx-cached));
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.sstep-ols-line {
stroke: color-mix(in srgb, var(--text-secondary) 72%, var(--surface-panel));
stroke-width: 1.1;
stroke-dasharray: 3.5 3;
}
.sstep-scatter-dot {
fill: color-mix(in srgb, var(--sstep-fit-accent, var(--ctx-cached)) 48%, var(--text-secondary) 52%);
fill-opacity: 0.42;
stroke: none;
}
.sstep-scatter-dot.is-multi {
fill: var(--sstep-fit-accent, var(--ctx-cached));
fill-opacity: 0.48;
}
.sstep-fit-svg .trend-hover-dot {
stroke: var(--hover-dot-color, var(--accent-primary));
}
.sstep-hover-raw-dot {
fill: var(--surface-panel);
stroke: var(--text-primary);
stroke-width: 1.6;
pointer-events: none;
}
.sstep-empty-hint {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
pointer-events: none;
z-index: 2;
}
.sstep-model-legend {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px 10px;
padding-top: 2px;
font-size: 10px;
color: var(--text-secondary);
}
.sstep-legend-item {
display: inline-flex;
align-items: center;
gap: 4px;
white-space: nowrap;
}
.sstep-legend-dot {
width: 6px;
height: 6px;
border-radius: var(--radius-pill);
background: var(--swatch-bg, var(--ctx-cached));
flex-shrink: 0;
}
.sstep-legend-line {
width: 11px;
height: 2px;
border-radius: 1px;
background: var(--swatch-bg, var(--ctx-cached));
flex-shrink: 0;
}
.sstep-fit-legend[hidden],
.sstep-model-legend[hidden] {
display: none !important;
}
.sstep-fit-foot {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 4px 8px;
padding-top: 2px;
font-size: 10px;
color: var(--text-muted);
}
.sstep-fit-legend {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
gap: 5px;
color: var(--text-secondary);
}
.sstep-fit-legend-ols {
display: inline-flex;
align-items: center;
gap: 4px;
}
.sstep-fit-legend-ols[hidden] {
display: none;
}
.sstep-fit-swatch {
display: inline-block;
flex-shrink: 0;
}
.sstep-fit-swatch.is-scatter {
width: 5.5px;
height: 5.5px;
border-radius: var(--radius-pill);
background: color-mix(in srgb, var(--sstep-fit-accent, var(--ctx-cached)) 48%, var(--text-secondary) 52%);
opacity: 0.68;
}
.sstep-fit-swatch.is-curve {
width: 11px;
height: 2px;
border-radius: 1px;
background: var(--sstep-fit-accent, var(--ctx-cached));
margin-left: 3px;
}
.sstep-fit-swatch.is-ci {
width: 10px;
height: 6.5px;
border-radius: 1px;
background: color-mix(in srgb, var(--sstep-fit-accent, var(--ctx-cached)) 22%, var(--surface-panel));
border: 0.75px solid color-mix(in srgb, var(--sstep-fit-accent, var(--ctx-cached)) 42%, transparent);
margin-left: 3px;
}
.sstep-fit-swatch.is-ols {
width: 10px;
height: 0;
border-top: 1.2px dashed color-mix(in srgb, var(--text-secondary) 75%, var(--surface-panel));
margin-left: 3px;
}
.sstep-fit-delta {
font-size: 10px;
}
/* --- 4. 极简高密度模型总览列表 (Minimalist Session Model Summary Cards) --- */
.smodel-section {
display: flex;
flex-direction: column;
gap: 6px;
}
.smodel-section-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
padding: 2px 1px 0;
}
.smodel-empty {
padding: var(--space-5) var(--space-3);
text-align: center;
font-size: 11px;
border: 1px dashed var(--border-hairline);
border-radius: var(--radius-xs);
}
.smodel-list {
display: flex;
flex-direction: column;
gap: 6px;
}
.smodel-card {
display: flex;
flex-direction: column;
gap: 5px;
padding: 7px 10px;
background: var(--surface-panel);
border: 1px solid var(--border-hairline);
border-radius: var(--radius-xs);
cursor: pointer;
transition:
background var(--dur-instant) var(--ease-fast),
border-color var(--dur-instant) var(--ease-fast);
}
.smodel-card:hover {
background: var(--surface-hover);
}
.smodel-card.is-fit-active {
border-color: var(--accent-primary-border);
background: color-mix(in srgb, var(--accent-primary) 4.5%, var(--surface-panel));
}
.smodel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
min-width: 0;
}
.smodel-ident {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
flex: 1 1 auto;
}
.smodel-name {
font-size: 12px;
font-weight: 600;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.smodel-calls-pill {
flex-shrink: 0;
font-size: 10px;
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;
gap: 8px;
flex-shrink: 0;
}
.smodel-tok {
font-size: 11.5px;
font-weight: 500;
color: var(--text-secondary);
}
.smodel-cost {
font-size: 12px;
font-weight: 700;
color: var(--text-primary);
}
.smodel-seg-bar {
height: 3.5px;
}
.smodel-foot {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 2px 10px;
font-size: 10.5px;
color: var(--text-secondary);
}
.smodel-perf {
color: var(--text-secondary);
white-space: nowrap;
}
.smodel-split {
color: var(--text-muted);
white-space: nowrap;
}