Fix coverage filename→name, fix TasksProxy auto-save for multi-worker

This commit is contained in:
Floppyrj45
2026-02-19 16:04:42 +01:00
parent c72ba38221
commit 02a691a350
3 changed files with 22 additions and 4 deletions

View File

@@ -2198,9 +2198,9 @@ function renderCoverage() {
const x1 = ml + ((seg.startDate.getTime() - tMin) / tRange) * pw;
const w = Math.max(2, ((seg.duration_sec || 0) / (tRange / 1000)) * pw);
const color = lineColorMap[seg.line] || '#666';
const escapedFn = seg.filename.replace(/'/g, "\\'");
const escapedFn = (seg.filename||seg.name).replace(/'/g, "\\'");
svg += `<rect x="${x1}" y="${y + 1}" width="${w}" height="${rowH - 2}" fill="${color}" rx="2" opacity="0.8" style="cursor:pointer" onclick="coverageClickFile('${escapedFn}')">`;
svg += `<title>${seg.filename}\nBoard: ${seg.board_id || '?'}\nLine: ${seg.line || '?'} Point: ${seg.point || '?'}\nDuration: ${((seg.duration_sec || 0) / 3600).toFixed(1)}h\nStart: ${seg.date_str}</title>`;
svg += `<title>${(seg.filename||seg.name)}\nBoard: ${seg.board_id || '?'}\nLine: ${seg.line || '?'} Point: ${seg.point || '?'}\nDuration: ${((seg.duration_sec || 0) / 3600).toFixed(1)}h\nStart: ${seg.date_str}</title>`;
svg += `</rect>`;
});
});