Refactor campaign recipient and review presentation

This commit is contained in:
2026-07-31 02:48:56 +02:00
parent 5f7503598c
commit e689fdf495
30 changed files with 2175 additions and 1977 deletions
@@ -1,9 +1,13 @@
import { readFileSync } from "node:fs";
const source = readFileSync(
new URL("../src/features/campaigns/RecipientDataPage.tsx", import.meta.url),
"utf8"
).replace(/\s+/g, " ");
const source = [
"../src/features/campaigns/RecipientDataPage.tsx",
"../src/features/campaigns/recipients/RecipientAddressEditor.tsx",
"../src/features/campaigns/recipients/recipientProfileColumns.tsx"
]
.map((path) => readFileSync(new URL(path, import.meta.url), "utf8"))
.join("\n")
.replace(/\s+/g, " ");
function assertIncludes(fragment, message) {
if (!source.includes(fragment.replace(/\s+/g, " "))) throw new Error(message);