feat: color pending proposal blocks by author (Claude blue/purple)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
BenStullsBets
2026-06-26 14:17:40 -07:00
parent 44ef0a21db
commit 2955e8d929
3 changed files with 13 additions and 2 deletions
+7
View File
@@ -503,6 +503,13 @@ describe("renderReview", () => {
expect(html).toContain("cw-ins-human"); // author-colored insertion
expect(html).not.toContain("&gt;&gt;"); // sanity: markers not escaped as text
});
test("renderReview: a proposal block colors its del/ins by author (claude default)", () => {
const proposals: ProposalView[] = [{ id: "p1", anchorStart: 0, anchorEnd: 5, replaced: "hello", replacement: "goodbye" }];
const html = renderReview("hello", "hello", [], proposals);
expect(html).toContain('cw-del-claude');
expect(html).toContain('cw-ins-claude');
});
});
import { renderTrackChanges as rtc2 } from "../src/trackChangesModel";