chore: sweep retired semantic-diff markup; full suite green

- Delete dead `authorBadge` function (no callers; grep-verified)
- Merge adjacent duplicate imports from trackChangesModel in test file

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
BenStullsBets
2026-06-26 17:57:16 -07:00
parent ae19df78fb
commit 02fbe9c77e
2 changed files with 1 additions and 12 deletions
-9
View File
@@ -642,15 +642,6 @@ function isCloseSentinel(m: string): boolean {
return m === SENT.claude.close || m === SENT.human.close;
}
function authorBadge(authors: Set<AuthorKind>): { cls: string; label: string } | null {
if (authors.size === 0) return null;
if (authors.size > 1) return { cls: "cw-mixed", label: "mixed" };
const only = [...authors][0];
return only === "claude"
? { cls: "cw-by-claude", label: "Claude" }
: { cls: "cw-by-human", label: "You" };
}
// Markdown emphasis / code delimiters whose RUNS must never be split by an
// injected sentinel — a sentinel between two run chars (e.g. `*|*`) breaks
// markdown-it's delimiter pairing (#33 CASE1).
+1 -3
View File
@@ -263,9 +263,7 @@ describe("wordDiffByAuthor", () => {
});
});
import { renderPlain } from "../src/trackChangesModel";
import { wordEditHunks, decorationPlan } from "../src/trackChangesModel";
import { renderPlain, wordEditHunks, decorationPlan } from "../src/trackChangesModel";
test("committed change: wordEditHunks(current, baseline) → start/end index current; replacement is baseline text", () => {
const baseline = "the light mode";