mirror of
https://github.com/vinta/awesome-python.git
synced 2026-10-06 17:05:16 +08:00
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:
@@ -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.`; },
|
||||
|
||||
Reference in New Issue
Block a user