fix: address code review feedback on tests and placeholder messages

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-01 07:51:07 +00:00
parent c814af1145
commit d095e30467
3 changed files with 20 additions and 8 deletions
+4 -4
View File
@@ -1546,8 +1546,8 @@
<!-- PDF via pdf.js (rendered by loadPDF above) — fallback canvas container -->
<div id="detail-original-canvas" class="pdf-canvas-wrapper" style="min-height: 400px; display: flex; justify-content: center; align-items: center; padding: 0.5rem;">
<div class="pdf-loading">
<i class="fas fa-spinner fa-spin" aria-hidden="true" style="font-size: 2rem; margin-bottom: 1rem;"></i>
<p>See PDF viewer above</p>
<i class="fas fa-file-pdf" aria-hidden="true" style="font-size: 2rem; margin-bottom: 1rem; color: #94a3b8;"></i>
<p>This PDF is displayed in the Document Previews section at the top of the page.</p>
</div>
</div>
{% endif %}
@@ -1570,8 +1570,8 @@
<!-- Processed files are typically PDFs — rendered by pdf.js above -->
<div style="min-height: 400px; display: flex; justify-content: center; align-items: center; padding: 0.5rem;">
<div class="pdf-loading">
<i class="fas fa-spinner fa-spin" aria-hidden="true" style="font-size: 2rem; margin-bottom: 1rem;"></i>
<p>See PDF viewer above</p>
<i class="fas fa-file-pdf" aria-hidden="true" style="font-size: 2rem; margin-bottom: 1rem; color: #94a3b8;"></i>
<p>This PDF is displayed in the Document Previews section at the top of the page.</p>
</div>
</div>
</div>
+13 -1
View File
@@ -655,7 +655,19 @@
navigator.clipboard.writeText(text.join('\n')).then(function() {
btn.innerHTML = '<i class="fas fa-check"></i> Copied!';
setTimeout(function() { btn.innerHTML = orig; }, 2000);
}).catch(function() {});
}).catch(function() {
try {
var ta = document.createElement('textarea');
ta.value = text.join('\n');
ta.style.cssText = 'position:fixed;opacity:0;';
document.body.appendChild(ta);
ta.select();
document.execCommand('copy');
document.body.removeChild(ta);
btn.innerHTML = '<i class="fas fa-check"></i> Copied!';
setTimeout(function() { btn.innerHTML = orig; }, 2000);
} catch(e) {}
});
}
// ── Initialise on load ──