diff --git a/webui/static/enrichment.js b/webui/static/enrichment.js index bb0ea640..9df8ea6c 100644 --- a/webui/static/enrichment.js +++ b/webui/static/enrichment.js @@ -2931,13 +2931,19 @@ function _renderFindingDetail(f) { } // Per-track old → new diff (cap the rendered list so huge albums stay sane). changed.slice(0, 40).forEach(t => { - const label = t.title || (t.file_path || '').split(/[\\/]/).pop(); + const fname = (t.file_path || '').split(/[\\/]/).pop(); + const label = t.title || fname || 'Unknown'; const rows = Object.entries(t.changes).map(([field, c]) => [ field.replace(/_/g, ' '), `${(c.old === '' || c.old == null) ? '∅' : c.old} → ${c.new}`, 'highlight', ]); html += `
${_escFinding(label)}
`; + // Show the physical filename so a wrong match is easy to spot before + // applying (skip when the label already IS the filename, i.e. no title). + if (fname && fname !== label) { + html += `
📄 ${_escFinding(fname)}
`; + } html += _gridRows(rows); }); if (changed.length > 40) {