fix: name page and sections in the no-changes feedback text

On a verdict preview page with no flipped rows, Copy feedback produced only a generic acceptance line, so a pasted acceptance did not say which page or sections it covered.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-10-02 12:08:29 +08:00
co-authored by Claude
parent ef67c66264
commit 6e3a110e29
@@ -149,7 +149,7 @@ function updateCounts() {
function copyFeedback() {
const fb = collect();
const text = fb.length ? JSON.stringify(fb, null, 1) : "(no changes — all verdicts accepted as-is)";
const text = fb.length ? JSON.stringify(fb, null, 1) : `(no changes — all verdicts accepted as-is: ${document.title} — ${[...new Set(DATA.map(g => g[0]))].join(", ")})`;
const hint = document.getElementById("hint");
navigator.clipboard.writeText(text).then(
() => { hint.textContent = `Copied ${fb.length ? fb.length + " row(s)" : "acceptance note"} — paste into the chat.`; },