mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
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:
@@ -857,10 +857,11 @@ test('StepsDetailView total summary cards, session anomaly strip, click-to-filte
|
||||
metric: 'tps',
|
||||
});
|
||||
const lineAnomalyDots = lineChart.el.querySelectorAll('.sstep-anomaly-dot');
|
||||
assert.equal(lineAnomalyDots.length, 1, 'Line chart renders bottom rug tick marker even when steps > 64');
|
||||
assert.equal(lineAnomalyDots[0].tagName.toLowerCase(), 'line');
|
||||
assert.equal(lineAnomalyDots[0].classList.contains('sstep-anomaly-tick'), true);
|
||||
assert.equal(lineAnomalyDots.length, 1, 'Line chart renders on-curve anomaly dot even when steps > 64');
|
||||
assert.equal(lineAnomalyDots[0].tagName.toLowerCase(), 'circle');
|
||||
assert.equal(lineAnomalyDots[0].classList.contains('is-danger'), true);
|
||||
const dotCy = Number(lineAnomalyDots[0].getAttribute('cy'));
|
||||
assert.ok(dotCy > 10 && dotCy < 96, `Expected anomaly dot directly on curve (cy=${dotCy}), not at baseline`);
|
||||
|
||||
fitChart = createModelFitChart();
|
||||
fitChart.update({
|
||||
|
||||
Reference in New Issue
Block a user