fix: make dashboard metrics display-only

This commit is contained in:
inman committed 2026-09-02 13:13:20 +08:00
1 parent d034f649c4
commit b1fe53386c
7 files changed
+82 -45

No files matched your search

@@ -246,7 +246,8 @@ test('operator UI exposes role-aware accounts, executive drill-through, original
assert.match(app, /\/api\/operations-dashboard\?/);
assert.match(app, /\/api\/operations-dashboard\/tasks\/\$\{encodeURIComponent\(taskId\)\}/);
assert.match(app, /business_route_id/);
assert.match(app, /data-operations-status|dataset\.operationsStatus/);
assert.doesNotMatch(app, /data-operations-status|dataset\.operationsStatus/);
assert.match(app, /\$\('#operationsDashboardStatus'\)\.value = 'all'/);
assert.match(app, /data-operations-business|dataset\.operationsBusiness/);
assert.match(app, /function operationsDashboardRankScale/);
assert.match(app, /operationsDashboardRankBar/);
+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-mobile-share-1/);
assert.match(index, /app\.js\?v=20260902-dashboard-mobile-share-1/);
assert.match(index, /styles\.css\?v=20260902-dashboard-metrics-static-1/);
assert.match(index, /app\.js\?v=20260902-dashboard-metrics-static-1/);
assert.match(index, /id="statusDetailsPopover"/);
assert.match(index, /id="statusDetailsRefresh"/);
assert.match(app, /apiRequest\(`\/api\/tasks\?\$\{params\.toString\(\)\}`/);