Finalize metrics verification and backlog updates

This commit is contained in:
2026-06-05 21:49:57 +02:00
parent d3928d61c4
commit f069b74b08
15 changed files with 240 additions and 36 deletions

View File

@@ -192,6 +192,27 @@ test("toLeadFunnelCard maps blocked priority to deferred stage with blocker labe
assert.equal(card.nextAction, "Zurückstellung prüfen");
});
test("toLeadFunnelCard shows do-not-contact rechecks after the block window", () => {
const card = toLeadFunnelCard({
id: "lead-recheck",
companyName: "Agentur Recheck",
priority: "medium",
contactStatus: "do_not_contact",
blacklistStatus: "clear",
outreach: {
approvalStatus: "approved",
sendStatus: "sent",
responseStatus: "no_interest",
salesStatus: "do_not_pursue",
doNotContactUntil: Date.UTC(2026, 0, 1),
},
now: Date.UTC(2026, 0, 2),
});
assert.equal(card.stageId, "deferred");
assert.equal(card.nextAction, "Erneut prüfen");
});
test("dashboard-model exposes stable lead label helpers for UI mapping", () => {
assert.deepEqual(leadPriorityOptions, [
"high",