feat(panel): polish compaction row popover, pill selects, steps header, scrollbar, and chart tooltips

# Conflicts:
#	sidecars/panel/index.html
This commit is contained in:
fish
2026-11-20 16:35:18 +09:00
parent e1c3134e72
commit 481f383763
23 changed files with 1062 additions and 321 deletions
@@ -412,11 +412,8 @@ test('ConsumptionView: Top Models color dot + % bar, clutter-free Client Sources
assert.equal(modelRows.length, 6);
assert.equal(sourceRows.length, 2);
// 1. Top Models: colored dot appears right after model name & 4-segment bar scales to 50% (not 100%)
const argonTitleDot = modelRows[0].querySelector('.cons-title-model-dot');
assert.ok(argonTitleDot && !argonTitleDot.hasAttribute('hidden'));
const argonDotColor = argonTitleDot.style.getPropertyValue('--dot-color');
assert.match(argonDotColor, /^hsl\(/);
// 1. Top Models: no color dot next to model name & 4-segment bar scales to 50% (not 100%)
assert.equal(modelRows[0].querySelector('.cons-title-model-dot'), null);
const argonSegSum = modelRows[0]
.querySelectorAll('.progress-seg')
@@ -429,7 +426,8 @@ test('ConsumptionView: Top Models color dot + % bar, clutter-free Client Sources
assert.equal(appTopItems.length, 3, 'Should show top 3 non-other models in single-line footer');
assert.equal(appTopItems[0].querySelector('.cons-source-top-name')?.textContent, '4-argon');
assert.equal(appTopItems[0].querySelector('.cons-source-top-pct')?.textContent, '50%');
assert.equal(appTopItems[0].querySelector('.cons-source-top-dot')?.style.getPropertyValue('--dot-color'), argonDotColor);
const argonDotColor = appTopItems[0].querySelector('.cons-source-top-dot')?.style.getPropertyValue('--dot-color');
assert.match(argonDotColor, /^hsl\(/);
assert.equal(appTopItems[1].querySelector('.cons-source-top-name')?.textContent, '4-carbon');
assert.equal(appTopItems[1].querySelector('.cons-source-top-pct')?.textContent, '31%');
assert.equal(appTopItems[2].querySelector('.cons-source-top-name')?.textContent, '3.8-flash-n');