fix: render dashboard rankings as bar charts

This commit is contained in:
inman committed 2026-09-02 11:14:21 +08:00
1 parent de9f33dc45
commit e530b7a348
6 files changed
+101 -66

No files matched your search

@@ -246,6 +246,7 @@ test('operator UI exposes role-aware accounts, executive drill-through, original
assert.match(app, /data-operations-business|dataset\.operationsBusiness/);
assert.match(app, /operationsDashboardRankBar/);
assert.match(app, /operations-dashboard-rank-bar/);
assert.match(app, /sort\(\(left, right\) => Number\(right\.total/);
assert.doesNotMatch(app, /完成率|operationsDashboardCompletionRate|operationsDashboardDays/);
assert.match(app, /function operationsDashboardReadableResult/);
assert.match(app, /function operationsDashboardReadableInput/);
+2 -2
View File
@@ -1225,8 +1225,8 @@ test('operator page has a login gate and uses the durable task API', async () =>
const inpage = await readFile(new URL('../../chrome-extension/ltjt-order-assistant/inpage.js', import.meta.url), 'utf8');
assert.match(index, /id="loginPanel"/);
assert.match(index, /id="workbench"[^>]*hidden/);
assert.match(index, /styles\.css\?v=20260902-dashboard-ranking-bars-1/);
assert.match(index, /app\.js\?v=20260902-dashboard-ranking-bars-1/);
assert.match(index, /styles\.css\?v=20260902-dashboard-bar-chart-1/);
assert.match(index, /app\.js\?v=20260902-dashboard-bar-chart-1/);
assert.match(index, /id="statusDetailsPopover"/);
assert.match(index, /id="statusDetailsRefresh"/);
assert.match(app, /apiRequest\(`\/api\/tasks\?\$\{params\.toString\(\)\}`/);